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
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)
def make(self, player, arguments, nodelay=0): MakeAction.make(self, player, arguments, nodelay) castSpell(player, 56, 0, [self.bodyid])