![Smile :)](./images/smilies/icon_e_smile.gif)
![Razz :P](./images/smilies/icon_razz.gif)
iam not sure the distance is gonna solve this issue. I changed it in the profile to 100 but still it attacks every single muschroom and sticks at 1 waypoint
Maybe you should avoid that area then?bloodslain wrote:typoi ment the bot
iam not sure the distance is gonna solve this issue. I changed it in the profile to 100 but still it attacks every single muschroom and sticks at 1 waypoint
Code: Select all
<onLeaveCombat>
if inventory:itemTotalCount(201171) > 4 then __WPL:setForcedWaypointType("RUN") end
</onLeaveCombat>
Or maybe you are taking too long to kill them. I have no trouble with mages. What class do you use? Also, do you do all the available quests in town first?bloodslain wrote:i just tryed to add this on top of the waypoint filebut it just got ignored ( or can i only use this command in the profile? )Code: Select all
<onLeaveCombat> if inventory:itemTotalCount(201171) > 4 then __WPL:setForcedWaypointType("RUN") end </onLeaveCombat>
problem is that every spot there is full of those dahm mushrooms
Code: Select all
<waypoints>
<onLoad>
settings.profile.mobs = {"Fungus"};
changeProfileOption("MAX_TARGET_DIST", 100);
</onLoad>
<!-- # 1 --><waypoint x="-3697" z="-8683">
repeat queststate = getQuestStatus("Testing Your Skill"); yrest(500) until queststate
if queststate == "not accepted" then
player:target_NPC("Leighton");
sendMacro("OnClick_QuestListButton(1,1)"); yrest(2000);
sendMacro("AcceptQuest()"); yrest(2000);
sendMacro("CloseWindows()");
yrest(2000);
end
</waypoint>
<!-- # 5 --><waypoint x="-3780" z="-8486"> </waypoint>
<!-- # 6 --><waypoint x="-3855" z="-7980"> </waypoint>
<!-- # 7 --><waypoint x="-3772" z="-7940" tag="funguspath"> if inventory:itemTotalCount(201171) > 4 then __WPL:setForcedWaypointType("RUN") end </waypoint>
<!-- # 8 --><waypoint x="-3819" z="-7819"> if inventory:itemTotalCount(201171) > 4 then __WPL:setForcedWaypointType("RUN") end </waypoint>
<!-- # 9 --><waypoint x="-3947" z="-7815"> if inventory:itemTotalCount(201171) > 4 then __WPL:setForcedWaypointType("RUN") end </waypoint>
<!-- # 10 --><waypoint x="-4032" z="-7835"> if inventory:itemTotalCount(201171) > 4 then __WPL:setForcedWaypointType("RUN") end </waypoint>
<!-- # 11 --><waypoint x="-3874" z="-8026"> if inventory:itemTotalCount(201171) > 4 then __WPL:setForcedWaypointType("RUN") end
if 5 > inventory:itemTotalCount(201171) then
__WPL:setWaypointIndex(__WPL:findWaypointTag("funguspath"));
end
</waypoint>
<!-- # 12 --><waypoint x="-3709" z="-7963"> </waypoint>
<!-- # 13 --><waypoint x="-3763" z="-8065"> </waypoint>
<!-- # 14 --><waypoint x="-3819" z="-8400"> </waypoint>
<!-- # 15 --><waypoint x="-3725" z="-8581"> </waypoint>
<!-- # 16 --><waypoint x="-3697" z="-8683">
player:target_NPC("Leighton");
sendMacro("OnClick_QuestListButton(3,1)"); yrest(2000);
sendMacro("CompleteQuest()"); yrest(2000);
sendMacro("CloseWindows()"); yrest(2000);
loadPaths("Pioneers/7 - Lively reward");
</waypoint>
</waypoints>
Code: Select all
<waypoints>
<!-- # 1 --><waypoint x="-3797" z="-8522">
-- Obtain Quest: Claiming armor
player:clearTarget();
player:rest(2);
player:target_NPC("Mallor");
player:rest(2);
sendMacro("OnClick_QuestListButton(1,1)"); yrest(2000);
sendMacro("AcceptQuest()"); yrest(2000);
sendMacro("CloseWindows()"); yrest(2000);
</waypoint>
<!-- # 5 --><waypoint x="-3776" z="-8575">
-- Finish Quest: claiming Armor
player:target_NPC("Shamp");
player:rest(2);
sendMacro("OnClick_QuestListButton(3,1)"); yrest(2000);
sendMacro("CompleteQuest()"); yrest(2000);
sendMacro("CloseWindows()"); yrest(2000);
sendMacro("UseItemByName('Armor Package');");
player:rest(2);
sendMacro("UseItemByName('Superior Traveling Robe');");
player:rest(2);
loadPaths("Pioneers/4 - Claim your potions");
</waypoint>
</waypoints>
1. Are you sure the name is right? I thought the mage robe was called "Superior Robe".bloodslain wrote:My problem is in the reward.Code: Select all
... sendMacro("UseItemByName('Armor Package');"); player:rest(2); sendMacro("UseItemByName('Superior Traveling Robe');"); player:rest(2); loadPaths("Pioneers/4 - Claim your potions"); </waypoint> </waypoints>
1. It opens the package but afterthis it doesnt equip it like it supposed to.
2. The reward is for every class different how can i build in a check?
Code: Select all
inventory:update();
inventory:useItem(201704); yrest(1000); -- Open Weapon Gift Bag
inventory:useItem(201705); yrest(1000); -- Open Armor Gift Bag
inventory:useItem(201706); yrest(1000); -- Open Potion Gift Bag
inventory:useItem(203343); yrest(1000); -- Open Supply Kit (Roping quest reward)
inventory:useItem(221536); -- Open Metal Ring (Roping quest reward)
inventory:useItem(221537); yrest(2000); -- Open Metal Ring (Roping quest reward)
inventory:update();
inventory:useItem(210512); -- Arm- Excellent Small Dagger
inventory:useItem(210513); -- Arm- Fine Dagger
inventory:useItem(210514); -- Arm- Fine Stort Staff
inventory:useItem(210515); -- Arm- Fine Wand
inventory:useItem(210516); -- Arm- Fine Long Sword
yrest(2000);
inventory:useItem(221582); -- Wear- Superior Traveling Dress (cloth scout)
inventory:useItem(221583); -- Wear- Superior Coat (cloth rogue)
inventory:useItem(221584); -- Wear- Superior Robe (cloth mage)
inventory:useItem(221585); -- Wear- Superior Traveling Robe (cloth priest)
inventory:useItem(221586); -- Wear- Superior Chaincoat (chain knight)
yrest(2000);
Code: Select all
repeat queststate = getQuestStatus(questname); yrest(500) until queststate
if queststate == "complete" then
--load waypoint file to run back to town
end
Well then instead of the load waypoint code, use a jump to waypoint code likebloodslain wrote:Well yeah that would be an option, alltough i dont want to call another waypoint script
I want to use 1 waypointscript for 1 questbut thnx for your input
![]()
Code: Select all
repeat queststate = getQuestStatus(questname); yrest(500) until queststate
if queststate == "complete" then
__WPL:setWaypointIndex( number);
__WPL:setForcedWaypointType( "RUN");
end
Code: Select all
!-- # 5 --><waypoint x="-3855" z="-7980"> </waypoint>
<!-- # 6 --><waypoint x="-3772" z="-7940" tag="funguspath"> if inventory:itemTotalCount(201168) > 9 then __WPL:setForcedWaypointType("RUN") else __WPL:setForcedWaypointType("NORMAL") end </waypoint>
<!-- # 7 --><waypoint x="-3819" z="-7819"> if inventory:itemTotalCount(201168) > 9 then __WPL:setForcedWaypointType("RUN") else __WPL:setForcedWaypointType("NORMAL") end </waypoint>
<!-- # 8 --><waypoint x="-3947" z="-7815"> if inventory:itemTotalCount(201168) > 9 then __WPL:setForcedWaypointType("RUN") else __WPL:setForcedWaypointType("NORMAL") end </waypoint>
<!-- # 9 --><waypoint x="-4032" z="-7835"> if inventory:itemTotalCount(201168) > 9 then __WPL:setForcedWaypointType("RUN") else __WPL:setForcedWaypointType("NORMAL") end </waypoint>
<!-- # 10 --><waypoint x="-3874" z="-8026"> if inventory:itemTotalCount(201168) > 9 then __WPL:setForcedWaypointType("RUN") else __WPL:setForcedWaypointType("NORMAL") end
if 10 > inventory:itemTotalCount(201168) then
__WPL:setWaypointIndex(__WPL:findWaypointTag("funguspath")); end
</waypoint>
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<waypoints type="NORMAL">
<onLoad> settings.profile.mobs = {"Fungus"};
changeProfileOption("TARGET_LEVELDIF_BELOW", 15);
changeProfileOption("MAX_TARGET_DIST", 120);
</onLoad>
<!-- # 1 --><waypoint x="-3705" z="-8629"> </waypoint>
<!-- # 2 --><waypoint x="-3717" z="-8540"> </waypoint>
<!-- # 3 --><waypoint x="-3702" z="-8520">
repeat queststate = getQuestStatus("Need More Fungus Stems"); yrest(500) until queststate
if queststate == "not accepted" then
player:harvest(110583) yrest(2000)
sendMacro("OnClick_QuestListButton(1,2);"); yrest(1500);
sendMacro("AcceptQuest()"); yrest(1500);
sendMacro("CloseWindows()"); yrest(1500);
end
</waypoint>
<!-- # 4 --><waypoint x="-3780" z="-8486"> </waypoint>
<!-- # 5 --><waypoint x="-3855" z="-7980"> __WPL:setForcedWaypointType("NORMAL") </waypoint>
<!-- # 6 --><waypoint x="-3717" z="-7984" tag="funguspath"> if inventory:itemTotalCount(201168) > 9 then __WPL:setWaypointIndex(__WPL:findWaypointTag("questdone")); __WPL:setForcedWaypointType("RUN") end </waypoint>
<!-- # 7 --><waypoint x="-3758" z="-7918"> if inventory:itemTotalCount(201168) > 9 then __WPL:setWaypointIndex(__WPL:findWaypointTag("questdone")); __WPL:setForcedWaypointType("RUN") end </waypoint>
<!-- # 8 --><waypoint x="-3804" z="-7843"> if inventory:itemTotalCount(201168) > 9 then __WPL:setWaypointIndex(__WPL:findWaypointTag("questdone")); __WPL:setForcedWaypointType("RUN") end </waypoint>
<!-- # 9 --><waypoint x="-3849" z="-7771"> if inventory:itemTotalCount(201168) > 9 then __WPL:setWaypointIndex(__WPL:findWaypointTag("questdone")); __WPL:setForcedWaypointType("RUN") end </waypoint>
<!-- # 10 --><waypoint x="-3886" z="-7711"> if inventory:itemTotalCount(201168) > 9 then __WPL:setWaypointIndex(__WPL:findWaypointTag("questdone")); __WPL:setForcedWaypointType("RUN") end </waypoint>
<!-- # 11 --><waypoint x="-3709" z="-7963" tag="questdone">
if 10 > inventory:itemTotalCount(201168) then
__WPL:setWaypointIndex(__WPL:findWaypointTag("funguspath")); end
</waypoint>
<!-- # 12 --><waypoint x="-3763" z="-8065"> </waypoint>
<!-- # 13 --><waypoint x="-3819" z="-8400"> </waypoint>
<!-- # 14 --><waypoint x="-3725" z="-8581"> </waypoint>
<!-- # 15 --><waypoint x="-3697" z="-8683">
player:target_NPC("Leighton");
sendMacro("OnClick_QuestListButton(3,1)"); yrest(1500);
sendMacro("CompleteQuest()"); yrest(1500);
sendMacro("CloseWindows()"); yrest(1500);
__WPL:setForcedWaypointType("NORMAL")
</waypoint>
</waypoints>
There is nothing in this code that should make it go into travel mode. I suggest you check the onevents in your profile. Maybe you have some code there that changes the waypoint type.Valleyguy wrote:Heres a freebie for anyone who takes the time to read this thread i am attaching my fungus daily altered from using your code here just a a play around thing i worked on testing your code. i tried several ways to change the sequence of item check but every time soon as it got to the item check line it immediately turned the waypoints into travel....
e.g. i tried
<!-- # 7 --><waypoint x="-3758" z="-7918"> if inventory:itemTotalCount(201168) > 9 __WPL:setForcedWaypointType("RUN") end </waypoint> (still turned on travel sooon as it hit this check
and tried
<!-- # 7 --><waypoint x="-3758" z="-7918"> if inventory:itemTotalCount(201168) > 9 then __WPL:setWaypointIndex(__WPL:findWaypointTag("questdone")); end</waypoint>
again soon as it hit the item check it just went into run mode
so the only way i got it to work correctly was
<!-- # 7 --><waypoint x="-3758" z="-7918"> if inventory:itemTotalCount(201168) > 9 then __WPL:setForcedWaypointType("RUN") else __WPL:setForcedWaypointType("NORMAL") end </waypoint>
problem with this is it gets to the wp kills 1 fungus does the item check turns Travel on then turns it back to Normal and goes to the next wp... with your very small fungus path it took me 4 circuits to get 10 stems![]()
I know theres a workaround here that will let the way-points work as always "Normal" until you meet the check i just don't have the scripting power and know the bot well enough yet to get it.
anyway heres the code i wrote for doing the 10 daily stems if anyone wants it i ran it all 10 times on a new character worked well.Code: Select all
<?xml version="1.0" encoding="utf-8"?> <waypoints type="NORMAL"> <onLoad> settings.profile.mobs = {"Fungus"}; changeProfileOption("TARGET_LEVELDIF_BELOW", 15); changeProfileOption("MAX_TARGET_DIST", 150); </onLoad> <!-- # 1 --><waypoint x="-3705" z="-8629"> </waypoint> <!-- # 2 --><waypoint x="-3717" z="-8540"> </waypoint> <!-- # 3 --><waypoint x="-3702" z="-8520"> repeat queststate = getQuestStatus("Need More Fungus Stems"); yrest(500) until queststate if queststate == "not accepted" then player:harvest(110583) yrest(2000) sendMacro("OnClick_QuestListButton(1,2);"); yrest(1500); sendMacro("AcceptQuest()"); yrest(1500); sendMacro("CloseWindows()"); yrest(1500); end </waypoint> <!-- # 4 --><waypoint x="-3780" z="-8486"> </waypoint> <!-- # 5 --><waypoint x="-3855" z="-7980"> </waypoint> <!-- # 6 --><waypoint x="-3717" z="-7984" tag="funguspath"> if inventory:itemTotalCount(201168) > 9 then __WPL:setForcedWaypointType("RUN") else __WPL:setForcedWaypointType("NORMAL") end </waypoint> <!-- # 7 --><waypoint x="-3758" z="-7918"> if inventory:itemTotalCount(201168) > 9 then __WPL:setForcedWaypointType("RUN") else __WPL:setForcedWaypointType("NORMAL") end </waypoint> <!-- # 8 --><waypoint x="-3804" z="-7843"> if inventory:itemTotalCount(201168) > 9 then __WPL:setForcedWaypointType("RUN") else __WPL:setForcedWaypointType("NORMAL") end </waypoint> <!-- # 9 --><waypoint x="-3849" z="-7771"> if inventory:itemTotalCount(201168) > 9 then __WPL:setForcedWaypointType("RUN") else __WPL:setForcedWaypointType("NORMAL") end </waypoint> <!-- # 10 --><waypoint x="-3886" z="-7711"> if inventory:itemTotalCount(201168) > 9 then __WPL:setForcedWaypointType("RUN") else __WPL:setForcedWaypointType("NORMAL") end </waypoint> <!-- # 11 --><waypoint x="-3950" z="-7674"> if inventory:itemTotalCount(201168) > 9 then __WPL:setForcedWaypointType("RUN") else __WPL:setForcedWaypointType("NORMAL") end </waypoint> <!-- # 12 --><waypoint x="-4015" z="-7690"> if inventory:itemTotalCount(201168) > 9 then __WPL:setForcedWaypointType("RUN") else __WPL:setForcedWaypointType("NORMAL") end </waypoint> <!-- # 13 --><waypoint x="-4061" z="-7747"> if inventory:itemTotalCount(201168) > 9 then __WPL:setForcedWaypointType("RUN") else __WPL:setForcedWaypointType("NORMAL") end </waypoint> <!-- # 14 --><waypoint x="-4046" z="-7824"> if inventory:itemTotalCount(201168) > 9 then __WPL:setForcedWaypointType("RUN") else __WPL:setForcedWaypointType("NORMAL") end </waypoint> <!-- # 15 --><waypoint x="-4032" z="-7897"> if inventory:itemTotalCount(201168) > 9 then __WPL:setForcedWaypointType("RUN") else __WPL:setForcedWaypointType("NORMAL") end </waypoint> <!-- # 16 --><waypoint x="-3989" z="-7945"> if inventory:itemTotalCount(201168) > 9 then __WPL:setForcedWaypointType("RUN") else __WPL:setForcedWaypointType("NORMAL") end </waypoint> <!-- # 17 --><waypoint x="-3930" z="-8004"> if inventory:itemTotalCount(201168) > 9 then __WPL:setForcedWaypointType("RUN") else __WPL:setForcedWaypointType("NORMAL") end </waypoint> <!-- # 18 --><waypoint x="-3874" z="-8026"> if inventory:itemTotalCount(201168) > 9 then __WPL:setForcedWaypointType("RUN") else __WPL:setForcedWaypointType("NORMAL") end if 10 > inventory:itemTotalCount(201168) then __WPL:setWaypointIndex(__WPL:findWaypointTag("funguspath")); end </waypoint> <!-- # 19 --><waypoint x="-3709" z="-7963"> </waypoint> <!-- # 20 --><waypoint x="-3763" z="-8065"> </waypoint> <!-- # 21 --><waypoint x="-3819" z="-8400"> </waypoint> <!-- # 22 --><waypoint x="-3725" z="-8581"> </waypoint> <!-- # 21 --><waypoint x="-3697" z="-8683"> player:target_NPC("Leighton"); sendMacro("OnClick_QuestListButton(3,1)"); yrest(1500); sendMacro("CompleteQuest()"); yrest(1500); sendMacro("CloseWindows()"); yrest(1500); </waypoint> </waypoints>
rock5 wrote:There is nothing in this code that should make it go into travel mode. I suggest you check the onevents in your profile. Maybe you have some code there that changes the waypoint type.
yea actually i found a way to code past my mistake till i was told about the profile thing lol if i was lvl 9 or lvl 11 the code never would have failed in the first place it was just that one pieces in that profile if lvl == 10 run for town! meh!bloodslain wrote:hehehe sound farmiliarhad the same problem while testing with an character.. but i knew my code should be correct so i was forced to look in my profile instantly
glad you figured it out yourself
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<!-- # 1 --><waypoint x="2479" z="30762" tag="npc"> </waypoint>
<!-- # 2 --><waypoint x="2619" z="30735"> </waypoint>
<!-- # 3 --><waypoint x="2704" z="30791"> </waypoint>
<!-- # 4 --><waypoint x="2680" z="30862"> </waypoint>
<!-- # 5 --><waypoint x="2547" z="31017"> </waypoint>
<!-- # 6 --><waypoint x="2573" z="31306"> </waypoint>
<!-- # 7 --><waypoint x="2562" z="31517"> </waypoint>
<!-- # 8 --><waypoint x="2451" z="31776"> </waypoint>
<!-- # 9 --><waypoint x="2430" z="31970"> </waypoint>
<!-- # 1 --><waypoint x="2416" z="32007"> </waypoint>
<!-- # 2 --><waypoint x="2381" z="32005"> </waypoint>
<!-- # 3 --><waypoint x="2373" z="31973">
player:target_NPC("Jaexis Spider skin");
sendMacro("OnClick_QuestListButton(3,1)"); yrest(1000);
sendMacro("CompleteQuest();") ; yrest(1000);
player:target_NPC("Jaexis Spider skin");
sendMacro("OnClick_QuestListButton(1,2)"); yrest(1000);
sendMacro("AcceptQuest();") ; yrest(1000);
</waypoint>
<!-- # 1 --><waypoint x="2412" z="31960"> </waypoint>
<!-- # 2 --><waypoint x="2566" z="31406"> </waypoint>
<!-- # 3 --><waypoint x="2547" z="31138"> </waypoint>
<!-- # 4 --><waypoint x="2550" z="31003"> </waypoint>
<!-- # 1 --><waypoint x="2539" z="30884" tag="items">
changeProfileOption("HARVEST_DISTANCE", 50);
player:target_Object(115605, 5500);
if inventory:itemTotalCount(115605) > 4 then __WPL:setWaypointIndex(__WPL:findWaypointTag("npc")); end
</waypoint>
<!-- # 2 --><waypoint x="2598" z="30881">
changeProfileOption("HARVEST_DISTANCE", 50);
player:target_Object(115605, 5500);
if inventory:itemTotalCount(115605) > 4 then __WPL:setWaypointIndex(__WPL:findWaypointTag("npc")); end </waypoint>
<!-- # 3 --><waypoint x="2641" z="30917"></waypoint>
<!-- # 4 --><waypoint x="2685" z="30808">
changeProfileOption("HARVEST_DISTANCE", 50);
player:target_Object(115605, 5500);
if inventory:itemTotalCount(115605) > 4 then __WPL:setWaypointIndex(__WPL:findWaypointTag("npc")); end </waypoint>
<!-- # 5 --><waypoint x="2668" z="30754"> </waypoint>
<!-- # 6 --><waypoint x="2636" z="30764">
changeProfileOption("HARVEST_DISTANCE", 50);
player:target_Object(115605, 5500);
if inventory:itemTotalCount(115605) > 4 then __WPL:setWaypointIndex(__WPL:findWaypointTag("npc")); end </waypoint>
<!-- # 7 --><waypoint x="2590" z="30735"> </waypoint>
<!-- # 8 --><waypoint x="2526" z="30766">
changeProfileOption("HARVEST_DISTANCE", 50);
player:target_Object(115605, 5500);
if inventory:itemTotalCount(115605) > 4 then __WPL:setWaypointIndex(__WPL:findWaypointTag("npc")); end </waypoint>
<!-- # 9 --><waypoint x="2500" z="30831">
changeProfileOption("HARVEST_DISTANCE", 50);
player:target_Object(115605, 5500);
if inventory:itemTotalCount(115605) > 4 then __WPL:setWaypointIndex(__WPL:findWaypointTag("npc")); else
__WPL:setWaypointIndex(__WPL:findWaypointTag("items"));end </waypoint>
</waypoints>
I quite often add the mobs for a particular waypoint file to it's onLoad section like thiswizzyslo wrote:Now works with correct id didn't know that is onother id in backpack to.
It's posible to do same function as changeProfileOption(); but for friends? I'm using lot's of character and easy to forgot add to averybudy that option. Happend to me lot's of times.
Code: Select all
settings.profile.mobs = {"Boar","Bear"};
Code: Select all
<onLoad>
settings.profile.friends = {"friend1","friend2"};
</onLoad>
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 1 guest