Connection ErrorBad RequestSession ExpiredSign in requiredForbiddenNot FoundToo Many RequestsServer ErrorBad GatewayService UnavailableGateway TimeoutHTTP Version Not Supported
Session Expired
Your session has expired. Please log in to continue.
Sign in required
You need an account to do that. Sign in or create one — it only takes a minute.
Request Failed
We encountered an issue while processing your request.
Please check your internet connection and try again.
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")