38 player = Crossfire.WhoIsActivator()
39 event = Crossfire.WhatIsEvent()
40 who = Crossfire.WhoAmI()
42 if event.Subtype == Crossfire.EventType.APPLY
and who.Type == Crossfire.Type.BOOK:
44 skill = player.CheckArchInventory(
"skill_literacy")
47 if who.Level > skill.Level + 5:
54 if player.Type != Crossfire.Type.PLAYER:
56 if player.Owner
is None:
60 if player.Type != Crossfire.Type.PLAYER:
63 params = Crossfire.ScriptParameters()
66 currentstep = player.QuestGetState(questname)
68 condition, target = rule.split(
">")
69 if condition.find(
"-") == -1:
70 startstep =
int(condition)
73 startstep =
int(condition.split(
"-")[0])
74 endstep=
int(condition.split(
"-")[1])
75 if currentstep >= startstep
and currentstep <= endstep:
78 player.QuestStart(questname,
int(target))
80 player.QuestSetState(questname,
int(target))