PDA

View Full Version : How is this wrong...



Wyildarren
05-09-2013, 08:27 AM
This is just beyond me, works fine on all bounties that don't involve the guard...


--- SyntaxError: compile error
bountygetwl:11: syntax error, unexpected tIDENTIFIER, expecting $end
wait_while {running?('go2')}
^
[ Next Bounty: +0:15:00, 0:15:00 remaining. ]
bountygetwl:11:in `create_block'
--- Lich: cannot execute bountygetwl, aborting.
--- Lich: bountygetwl has exited.

Full script\/\/\/

#Gets bounty in the Landing

Begin:
start_script "go2", [ "3785" ]
wait_while {running?('go2')}
fput "ask Rheteger about bounty"
match "OnCooldown", "I'm kind of busy right now"
match "Got1", "You have already been assigned a task"
match "Begin", "All done with that assignment"
match "AskGuard", "He's the Landing's West Gate guard"
match "AskGuard", "Reporting back on a successfully completed task"
match "Gems", "The local gem dealer"
match "Forage", "The local healer"
match "Skins", "The local furrier Ghaerdish"
matchwait

Got1:
start_script "go2", [ "228" ]
wait_while {running?('go2')}
echo 'Gotcha!'
exit

OnCooldown:
start_script "go2", [ "228" ]
wait_while {running?('go2')}
echo 'Still on Cooldown.'
exit

AskGuard:
start_script "go2", [ "420" ]
wait_while {running?('go2')}
fput "ask guard about bounty"
match "Hega's Inn", "Usage:"
match "Got1", "Ah, so you're from the Adventurer's Guild?"
match "Begin", "Ah, so you have returned"
matchwait

Hega's Inn:
start_script "go2", [ "3809" ]
wait_while {running?('go2')}
fput "ask guard about bounty"
match "Begin", "Usage:"
match "Got1", "Ah, so you're from the Adventurer's Guild?"
match "Begin", "Ah, so you have returned"
matchwait

Gems:
start_script "go2", [ "gemshop" ]
wait_while {running?('go2')}
fput "ask dealer about bounty"
goto "Got1"

Forage:
start_script "go2", [ "3824" ]
wait_while {running?('go2')}
fput "ask Akrash about bounty"
goto "Got1"

Skins:
start_script "go2", [ "furrier" ]
wait_while {running?('go2')}
fput "ask Ghaerdish about bounty"
goto "Got1"

Tillmen
05-09-2013, 12:42 PM
Hega's Inn isn't a valid goto label. Try Hegas_Inn

wandererjs
05-09-2013, 05:02 PM
Hega's Inn isn't a valid goto label. Try Hegas_Inn

"No one here... carries with him.... a label?"

Wyildarren
05-09-2013, 08:59 PM
Thank you :up: