help for script in rorazan daily

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
supermario
Posts: 31
Joined: Tue Apr 09, 2013 12:15 pm

help for script in rorazan daily

#1 Post by supermario » Tue Jun 11, 2013 1:30 pm

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
Attachments
Roz_alfa.xml
dem of battle
(4.55 KiB) Downloaded 180 times
Last edited by supermario on Wed Jun 12, 2013 2:48 am, edited 1 time in total.

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: help for script in rorazan daily

#2 Post by lisa » Tue Jun 11, 2013 6:11 pm

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.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

supermario
Posts: 31
Joined: Tue Apr 09, 2013 12:15 pm

Re: help for script in rorazan daily

#3 Post by supermario » Wed Jun 12, 2013 3:22 am

I have update the post with the original file (better).
thank

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 0 guests