Page 1 of 1

help for script in rorazan daily

Posted: Tue Jun 11, 2013 1:30 pm
by supermario
I have try in different mode but dont run, :(
so help is needed.
this is my script, i have take parts from different source but this dont help me.
there are problem with check condition...anyone can show me where is the error?
file is attach with tag and text..sorry but in copy-paste all the formatting it was lost.

thank a lot

Re: help for script in rorazan daily

Posted: Tue Jun 11, 2013 6:11 pm
by lisa
function checkCondition()
queststate = getQuestStatus("Demonstration");
if queststate == "complete" then
__WPL:setWaypointIndex(__WPL:findWaypointTag("complete"));
end
end
function checkCondition()
queststate = getQuestStatus("Demonstration");
if queststate == "incomplete" then
__WPL:setWaypointIndex(__WPL:findWaypointTag("incomplete"));
end
I don't think you understand what a function is.

I tried to think of a way to explain it but I came up with nothing.
Basically when you do this

function Somefunctionname()

end

You create the function with the name of Somefunctionname, it won't actually do the code unless you later call the function using
Somefunctionname()

If you just want to do some code where you are writing it then don't create a function and just do the code, using your code as an example.

Code: Select all

 queststate = getQuestStatus("Demonstration");
 if queststate == "complete" then
 __WPL:setWaypointIndex(__WPL:findWaypointTag("complete"));
 end
 if queststate == "incomplete" then
 __WPL:setWaypointIndex(__WPL:findWaypointTag("incomplete"));
 end
so without the creation of the functions it will just do the code right there and then.

Also please try to use code tags when posting code.

Re: help for script in rorazan daily

Posted: Wed Jun 12, 2013 3:22 am
by supermario
I have update the post with the original file (better).
thank