コード例 #1
0
ファイル: add.py プロジェクト: BackupTheBerlios/wolfpack-svn
	def __init__(self, parent, title, definition):
		MakeAction.__init__(self, parent, title)
		self.definition = definition
		self.description = ''
		self.other = ''
		self.materials = ''
		self.skills = ''
コード例 #2
0
ファイル: add.py プロジェクト: BackupTheBerlios/wolfpack-svn
 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)
コード例 #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)
コード例 #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)
コード例 #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)
コード例 #6
0
	def __init__(self, parent, title, bodyid):
		MakeAction.__init__(self, parent, title)
		self.bodyid = bodyid
コード例 #7
0
	def make(self, player, arguments, nodelay=0):
		MakeAction.make(self, player, arguments, nodelay)
		castSpell(player, 56, 0, [self.bodyid])
コード例 #8
0
ファイル: add.py プロジェクト: BackupTheBerlios/wolfpack-svn
	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)
コード例 #9
0
ファイル: add.py プロジェクト: BackupTheBerlios/wolfpack-svn
	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)
コード例 #10
0
 def __init__(self, parent, title, bodyid):
     MakeAction.__init__(self, parent, title)
     self.bodyid = bodyid
コード例 #11
0
 def make(self, player, arguments, nodelay=0):
     MakeAction.make(self, player, arguments, nodelay)
     castSpell(player, 56, 0, [self.bodyid])
コード例 #12
0
 def __init__(self, parent, title, pos):
     MakeAction.__init__(self, parent, title)
     self.pos = pos
     return
コード例 #13
0
ファイル: go.py プロジェクト: BackupTheBerlios/wolfpack-svn
 def __init__(self, parent, title, pos):
     MakeAction.__init__(self, parent, title)
     self.pos = pos
     return