Exemplo n.º 1
0
	def __init__(self, parent, title, definition):
		MakeAction.__init__(self, parent, title)
		self.definition = definition
		self.description = ''
		self.other = ''
		self.materials = ''
		self.skills = ''
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 6
0
	def __init__(self, parent, title, bodyid):
		MakeAction.__init__(self, parent, title)
		self.bodyid = bodyid
Exemplo n.º 7
0
	def make(self, player, arguments, nodelay=0):
		MakeAction.make(self, player, arguments, nodelay)
		castSpell(player, 56, 0, [self.bodyid])
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 10
0
 def __init__(self, parent, title, bodyid):
     MakeAction.__init__(self, parent, title)
     self.bodyid = bodyid
Exemplo n.º 11
0
 def make(self, player, arguments, nodelay=0):
     MakeAction.make(self, player, arguments, nodelay)
     castSpell(player, 56, 0, [self.bodyid])
Exemplo n.º 12
0
 def __init__(self, parent, title, pos):
     MakeAction.__init__(self, parent, title)
     self.pos = pos
     return
Exemplo n.º 13
0
 def __init__(self, parent, title, pos):
     MakeAction.__init__(self, parent, title)
     self.pos = pos
     return