Пример #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
Пример #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)
Пример #3
0
 def make(self, player, arguments, nodelay=0):
     MakeAction.make(self, player, arguments, nodelay)
     castSpell(player, 56, 0, [self.bodyid])
Пример #4
0
	def make(self, player, arguments, nodelay=0):
		MakeAction.make(self, player, arguments, nodelay)
		castSpell(player, 56, 0, [self.bodyid])
Пример #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)