11 player = Crossfire.WhoIsActivator()
12 params = Crossfire.ScriptParameters()
16 if type(player) == Crossfire.Player:
18 currentstep = player.QuestGetState(questname)
21 if rule.find(
"-") == -1:
25 startstep =
int(rule.split(
"-")[0])
26 endstep =
int(rule.split(
"-")[1])
27 if currentstep >= startstep
and currentstep <= endstep:
32 Crossfire.SetReturnValue(0)
35 Crossfire.SetReturnValue(1)
36 msg = Crossfire.WhoAmI().Message
37 if type(player) == Crossfire.Player:
39 player.Message(msg.strip())
41 player.Message(
"You cannot apply the %s now." % Crossfire.WhoAmI().Name)