Skip to content
User Avatar
#1620
Auto-translated
Guys, help! The script isn't working. Why?
function procurementspellscroll()
MessageBox( GetMapDataPath().."losskey.txt");
if HasBorderguardKey(1, 3) then
QuestionBox( GetMapDataPath().."petitionkey.txt","open","stayclosed");
else MessageBox( GetMapDataPath().."verysorry.txt");
end;
function stayclosed()
MessageBox( GetMapDataPath().."refusalkey.txt");
Trigger(OBJECT_TOUCH_TRIGGER, "petitionkey", nil );
end;
function open()
MessageBox( GetMapDataPath().."keypickup.txt");
ChangeHeroStat("Linaas", STAT_DEFENCE, 4);
end;
Trigger(OBJECT_TOUCH_TRIGGER, "petitionkey", "procurementspellscroll");