daily sascilia
daily sascilia
Can any1 help me with a scrit to Accept daily quest "peace in the camp" and when its comeplet to go and finish and after accept it again
Re: daily sascilia
so no1 can help me with this ?
Re: daily sascilia
This is a very basic quest. If you are going to be a botter then you will need to learn how to make a simple script like this. If someone made this for you they wouldn't be doing you a favour. But I'll give you some tips to get started.
First plan what the script has to do.
- It needs to accept the quest near Harnidy.
- walk to killing area
- kill until quest is finished
- return to Harnidy
- Complete quest.
- check if you've done all 10.
Note: because the first and last waypoint is at the same location and it's tricky to get the waypoint to start at the right point, I usually just make it one waypoint that does "complete quest, check if you've done 10, accept quest".
Now we will create the basic waypoint file using createpath and edit it later.
- Starting next to Harnidy, start the createpath script and mark your first point there
- Then make your way to the killing area marking waypoints along the way.
- When you first get to the killing area take note of your location and make a comment in the waypoint file by pressing "Numpad_0" and type something like "-- killstart"
- Now walk in a circle around the killing area, marking waypoints and keeping your distance from obstacle such as rocks and trees until you are back at the "killstart" waypoint. The size of the area you cover will depend on how fast the mobs respawn.
- At this point the script will have to decide if it should go around again, because it hasn't finished the quest, or if it should return to Harnidy to complete it, so we will need to mark this point too. Press "Numpad_0" again and type "-- killend".
- Now walk back to Harnidy marking waypoints along the way.
- You are done so press "Numpad_3" to save the file.
Now comes the editing. It helps to have another daily script to copy and paste commands from but I'll assume you don't have one. It also helps to have a proper script editor. Notepade++ is often recommended and is free. So if you don't have one, get it.
Before we start editing though, I'll explain about xml tags and where to pull the lua code. Lua code is the things you want the bot to do at those waypoints. Nearly all xml tags start with <tag name> and end with </tag name>. They can have other information such as the waypoints that have "x", "y","z" values included in the tag. There is really only 3 valid tags used in waypoint files. The waypoints tag that starts and ends the whole waypoint file. The waypoint tag that starts and ends each waypoint and the onload tag that you can add to execute code when the file is first loaded. All lua code must go between either the waypoint or onload tags. If you accidentally put code outside of tags, it wont get executed.
So after opening the file the first thing we will do is add the code for waypoint 1. Remember I said we would do "complete quest, check if you've done 10, accept quest". It would look something like this
Next look for the "-- killstart" comment. We are going to mark this waypoint so that we can loop to it if we need to go around again to kill more mobs. We add a 'tag' argument to the waypoint (not to be confused with 'xml tags' I was talking about earlier). This is not lua but an added argument that is added near the x,z,y values. Edit this bit
to
Next find "-- killend". This is the waypoint where you check to see if you need to kill more grass. Change the comment to
Note: if the quest state is not "incomplete" then it will head back to the npc.
And that's it. As your first basic waypoint file that should work.
First plan what the script has to do.
- It needs to accept the quest near Harnidy.
- walk to killing area
- kill until quest is finished
- return to Harnidy
- Complete quest.
- check if you've done all 10.
Note: because the first and last waypoint is at the same location and it's tricky to get the waypoint to start at the right point, I usually just make it one waypoint that does "complete quest, check if you've done 10, accept quest".
Now we will create the basic waypoint file using createpath and edit it later.
- Starting next to Harnidy, start the createpath script and mark your first point there
- Then make your way to the killing area marking waypoints along the way.
- When you first get to the killing area take note of your location and make a comment in the waypoint file by pressing "Numpad_0" and type something like "-- killstart"
- Now walk in a circle around the killing area, marking waypoints and keeping your distance from obstacle such as rocks and trees until you are back at the "killstart" waypoint. The size of the area you cover will depend on how fast the mobs respawn.
- At this point the script will have to decide if it should go around again, because it hasn't finished the quest, or if it should return to Harnidy to complete it, so we will need to mark this point too. Press "Numpad_0" again and type "-- killend".
- Now walk back to Harnidy marking waypoints along the way.
- You are done so press "Numpad_3" to save the file.
Now comes the editing. It helps to have another daily script to copy and paste commands from but I'll assume you don't have one. It also helps to have a proper script editor. Notepade++ is often recommended and is free. So if you don't have one, get it.
Before we start editing though, I'll explain about xml tags and where to pull the lua code. Lua code is the things you want the bot to do at those waypoints. Nearly all xml tags start with <tag name> and end with </tag name>. They can have other information such as the waypoints that have "x", "y","z" values included in the tag. There is really only 3 valid tags used in waypoint files. The waypoints tag that starts and ends the whole waypoint file. The waypoint tag that starts and ends each waypoint and the onload tag that you can add to execute code when the file is first loaded. All lua code must go between either the waypoint or onload tags. If you accidentally put code outside of tags, it wont get executed.
So after opening the file the first thing we will do is add the code for waypoint 1. Remember I said we would do "complete quest, check if you've done 10, accept quest". It would look something like this
Code: Select all
CompletQuestByName("Peace in the camp") yrest(1000)
if RoMScript("Daily_count()") == 10 then
error("Not really an error but the end of the script")
end
AcceptQuestByName("Peace in the camp")
Code: Select all
<waypoint X=nnn Y=nnn Z=nnn>
Code: Select all
<waypoint X=nnn Y=nnn Z=nnn tag="killstart">
Code: Select all
if getQuestStatus("Peace in the camp") ~= "incomplete" then
__WPL:setWaypointIndex(__WPL:findWaypointTag("killstart"))
end
And that's it. As your first basic waypoint file that should work.
- You should be aware of a few online reference if you are not already aware of them.
Lua commands http://www.lua.org/manual/5.2/
Rom in game functions http://runesofmagic.gamepedia.com/List_of_Functions
RoMBot wiki which is very out of date but you might learn some basics http://www.solarstrike.net/wiki/index.p ... le=RoM_Bot
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: daily sascilia
thanks roc I have been trying to make quest waypoints for a while and always get stuck now this is a good place for me to keep coming back to for tips
Who is online
Users browsing this forum: Google [Bot] and 10 guests