Exemplo n.º 1
0
def onUse( char, item ):
	try:
		spell = calcSpellId(item)
	except:
		char.socket.sysmessage('This scroll seems to be broken.')
		return False

	magic.castSpell(char, spell + 1, MODE_SCROLL, [], None, item)

	return True
Exemplo n.º 2
0
def gate(char, args):
    runebook = wolfpack.finditem(args[0])
    target = args[1]

    if char and runebook:
        magic.castSpell(char, 52, MODE_BOOK, args=[target], target=runebook)
Exemplo n.º 3
0
 def make(self, player, arguments, nodelay=0):
     MakeAction.make(self, player, arguments, nodelay)
     castSpell(player, 56, 0, [self.bodyid])
Exemplo n.º 4
0
	def make(self, player, arguments, nodelay=0):
		MakeAction.make(self, player, arguments, nodelay)
		castSpell(player, 56, 0, [self.bodyid])
Exemplo n.º 5
0
def gate(char, args):
    runebook = wolfpack.finditem(args[0])
    target = args[1]

    if char and runebook:
        magic.castSpell(char, 52, MODE_BOOK, args=[target], target=runebook)