Beispiel #1
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)
Beispiel #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)
Beispiel #3
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)
Beispiel #4
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 make(self, player, arguments, nodelay=0):
		MakeAction.make(self, player, arguments, nodelay)
		castSpell(player, 56, 0, [self.bodyid])
Beispiel #6
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)
Beispiel #7
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)
Beispiel #8
0
 def make(self, player, arguments, nodelay=0):
     MakeAction.make(self, player, arguments, nodelay)
     castSpell(player, 56, 0, [self.bodyid])