def __init__(self, parent, title, definition): MakeAction.__init__(self, parent, title) self.definition = definition self.description = '' self.other = '' self.materials = '' self.skills = ''
def make(self, player, arguments, nodelay=0): node = wolfpack.getdefinition(WPDT_MULTI, self.definition) count = node.childcount for i in range(0, count): subnode = node.getchild(i) if subnode.name == "id": # Found the display id dispid = hex2dec(subnode.value) player.socket.sysmessage(tr("Where do you want to place the multi '%s'?") % self.definition) player.socket.attachmultitarget("commands.add.addmulti", dispid - 0x4000, [self.definition, False], 0, 0, 0) MakeAction.make(self, player, arguments, nodelay)
def make(self, player, arguments, nodelay=0): node = wolfpack.getdefinition(WPDT_MULTI, self.definition) count = node.childcount for i in range(0, count): subnode = node.getchild(i) if subnode.name == 'id': # Found the display id dispid = hex2dec(subnode.value) player.socket.sysmessage( tr("Where do you want to place the multi '%s'?") % self.definition) player.socket.attachmultitarget("commands.add.addmulti", dispid - 0x4000, [self.definition, False], 0, 0, 0) MakeAction.make(self, player, arguments, nodelay)
def make(self, player, arguments, nodelay=0): player.socket.sysmessage( tr("Where do you want to place the item '%s'?") % self.definition) player.socket.attachtarget("commands.add.additem", [self.definition, False]) MakeAction.make(self, player, arguments, nodelay)
def make(self, player, arguments, nodelay=0): player.socket.sysmessage( tr("Where do you want to spawn the npc '%s'?") % self.definition) player.socket.attachtarget("commands.add.addnpc", [self.definition]) MakeAction.make(self, player, arguments, nodelay)
def __init__(self, parent, title, bodyid): MakeAction.__init__(self, parent, title) self.bodyid = bodyid
def make(self, player, arguments, nodelay=0): MakeAction.make(self, player, arguments, nodelay) castSpell(player, 56, 0, [self.bodyid])
def make(self, player, arguments, nodelay=0): player.socket.sysmessage("Where do you want to place the item '%s'?" % self.definition) player.socket.attachtarget("commands.add.additem", [self.definition, False]) MakeAction.make(self, player, arguments, nodelay)
def make(self, player, arguments, nodelay=0): player.socket.sysmessage("Where do you want to spawn the npc '%s'?" % self.definition) player.socket.attachtarget("commands.add.addnpc", [self.definition]) MakeAction.make(self, player, arguments, nodelay)
def __init__(self, parent, title, pos): MakeAction.__init__(self, parent, title) self.pos = pos return