Example #1
0
	def __init__(self, parent, title, definition):
		MakeAction.__init__(self, parent, title)
		self.definition = definition
		self.description = ''
		self.other = ''
		self.materials = ''
		self.skills = ''
Example #2
0
 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)
Example #3
0
 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)
Example #4
0
 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)
Example #5
0
 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])
Example #8
0
	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)
Example #9
0
	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)
Example #10
0
 def __init__(self, parent, title, bodyid):
     MakeAction.__init__(self, parent, title)
     self.bodyid = bodyid
Example #11
0
 def make(self, player, arguments, nodelay=0):
     MakeAction.make(self, player, arguments, nodelay)
     castSpell(player, 56, 0, [self.bodyid])
Example #12
0
 def __init__(self, parent, title, pos):
     MakeAction.__init__(self, parent, title)
     self.pos = pos
     return
Example #13
0
 def __init__(self, parent, title, pos):
     MakeAction.__init__(self, parent, title)
     self.pos = pos
     return