31 whoami = Crossfire.WhoAmI()
32 msg = Crossfire.ScriptParameters()
35 said = whoami.ReadKey(
'greet_enemy')
38 e =
';' +
str(whoami.Enemy.Count) +
';'
39 if said.find(e) != -1:
41 msg = Crossfire.ScriptParameters()
43 msg = msg.replace(
'%m', whoami.Name)
44 msg = msg.replace(
'%e', whoami.Enemy.Name)
46 said = said +
str(whoami.Enemy.Count) +
';'
47 whoami.WriteKey(
'greet_enemy', said, 1)
50 if whoami.Enemy !=
None and whoami.Enemy.Type == Crossfire.Type.PLAYER: