desc "Butchering Sheep"
if GotItems(502, 1) goto Sheep1
else if GotItems(502,10) goto Sheep2
else if GotItems(502,20) goto Sheep3
else if GotItems(502,30) goto Sheep4
else if GotItems(502,40) goto Sheep5
else if GotItems(502,50) goto Sheep6
else goto MainMenu
and the error is:
> Syntax Error: Expected '(' after function-name. Got: identifier 'gotitems' (Line 72)
Line 72 starts at else if GotItems(502,10) goto Sheep2
Here's the full quest:
The quest works if I use IF instead of else if, but then the quest doesnt continue and it stays on the same state.
Post your quests here!
2 posts • Page 1 of 1
Last edited by Garsor on Sat Aug 08, 2015 12:45 pm, edited 1 time in total.
Not sure whats causing the error but there are a few things I noticed
- You don't need to use a back slash when you use apostrophes now ( this may be messing up the parser )
- You need to reverse the order it checks ( so start from highest to lowest amount ). Let's say a player has 60 sheep carcasses. The server will check the first statement, does the player have 1 sheep carcass? Yes so it will always go to Sheep1. None of the other statements will be evaluated.
Who is online
Users browsing this forum: No registered users and 2 guests