Crossfire Server, Trunk
spell_arrow.py
Go to the documentation of this file.
1 import Crossfire
2 
3 who = Crossfire.WhoAmI()
4 victim = Crossfire.WhoIsOther();
5 
6 spells = who.ReadKey("arrow_spell")
7 if spells and victim:
8  spells = spells.split(";")
9  for spell in spells:
10  if ":" in spell:
11  quantity, archetype = spell.split(":")
12  else:
13  quantity = 1
14  archetype = spell
15  spellob = Crossfire.CreateObjectByName(archetype)
16  if spellob:
17  for r in range(0, int(quantity)):
18  victim.Cast(spellob, 0, "")
19  spellob.Remove()
make_face_from_files.int
int
Definition: make_face_from_files.py:32