Skip to content
#1635
Auto-translated
Vampire Lord
Help! The script isn't working. Why?
function share()
MessageBox( GetMapDataPath().."marketclosed.txt");
if HasArtefact("Linaas", 57) then
QuestionBox( GetMapDataPath().."proposalswap.txt","swap","noswap");
else MessageBox( GetMapDataPath().."goodbye.txt");
end
function noswap()
MessageBox( GetMapDataPath().."theworseswap.txt");
Trigger(OBJECT_TOUCH_TRIGGER, "proposalswap", nil );
end;
function swap()
MessageBox( GetMapDataPath().."commitswap.txt");
RemoveArtefact("Linaas",57);
GiveBorderguardKey(1,7);
end;
Trigger(OBJECT_TOUCH_TRIGGER, "proposalswap", "share");
This is one of those cases where the location of the function matters.
function share()
MessageBox( GetMapDataPath().."marketclosed.txt");
if HasArtefact("Linaas", 57) then
QuestionBox( GetMapDataPath().."proposalswap.txt","swap","noswap");
else MessageBox( GetMapDataPath().."goodbye.txt");
end
end
function noswap()
MessageBox( GetMapDataPath().."theworseswap.txt");
Trigger(OBJECT_TOUCH_TRIGGER, "proposalswap", nil );
end;
function swap()
MessageBox( GetMapDataPath().."commitswap.txt");
RemoveArtefact("Linaas",57);
GiveBorderguardKey(1,7);
end;
Trigger(OBJECT_TOUCH_TRIGGER, "proposalswap", "share")

Statistics

Welcome our newest member: Emil

Users Online 1 users 1050 guests