-
spawni
- Posts: 100
- Joined: Wed Sep 28, 2011 11:21 am
#1
Post
by spawni » Sat Oct 01, 2011 11:41 am
hi folks,
next try for me: cyclops lair (90 percent-script of the board)
Everything works fine until waypoint 61 - the script stucks - i think because the script uses mob-names in french /spain - i need german or at least an ID for the mob - it is the fist boss after podag - the Zurhidon
Any tip where to find the id? id would be better - or next problem i see to come is, that the german name is Zurhidon Beschützer with an "ü"-letter in it (is there a way to mask it?)
hope you can help me
- code-snippet:
Code: Select all
<!-- # 63 --><waypoint x="5844" z="3283" y="47" type="TRAVEL"> </waypoint>
<!-- # 64 --><waypoint x="5844" z="3283" y="47"> </waypoint>
<!-- # 65 --><waypoint x="5853" z="3042" y="47"> player:clearTarget();
settings.profile.mobs = {"Protector de Zurhidon"};
changeProfileOption("ANTI_KS", "true");
player:target(player:findNearestNameOrId("Protector de Zurhidon"))
if player:haveTarget() then player:fight();
end </waypoint>
<!-- # 66 --><waypoint x="5574" z="3025" y="47" type="TRAVEL"> </waypoint>
<!-- # 67 --><waypoint x="5574" z="3025" y="47">
player:clearTarget();
settings.profile.mobs = {"Negociador de Zurhidon"};
changeProfileOption("ANTI_KS", "true");
player:target(player:findNearestNameOrId("Negociador de Zurhidon"))
if player:haveTarget() then player:fight();
end
if inventory:itemTotalCount(0) == 0 then
sendMacro("LeaveParty();");
yrest(4000);
waitForLoadingScreen();
player:update();
player:mount();
__WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"));
end
</waypoint>
<!-- # 68 --><waypoint x="5559" z="3267" y="47">
player:clearTarget();
settings.profile.mobs = {"Protector de Zurhidon"};
changeProfileOption("ANTI_KS", "true");
player:target(player:findNearestNameOrId("Protector de Zurhidon"))
if player:haveTarget() then player:fight();
end
if inventory:itemTotalCount(0) == 0 then
sendMacro("LeaveParty();");
yrest(4000);
waitForLoadingScreen();
player:update();
player:mount();
__WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"));
end
</waypoint>
<!-- # 69 --><waypoint x="5844" z="3283" y="47" type="TRAVEL"> </waypoint>
<!-- # 70 --><waypoint x="5844" z="3283" y="47"> </waypoint>
<!-- # 71 --><waypoint x="5853" z="3042" y="47"> player:clearTarget();
settings.profile.mobs = {"Protector de Zurhidon"};
changeProfileOption("ANTI_KS", "true");
player:target(player:findNearestNameOrId("Protector de Zurhidon"))
if player:haveTarget() then player:fight();
end </waypoint>
<!-- # 72 --><waypoint x="5574" z="3025" y="47" type="TRAVEL"> </waypoint>
<!-- # 73 --><waypoint x="5574" z="3025" y="47">
player:clearTarget();
settings.profile.mobs = {"Negociador de Zurhidon"};
changeProfileOption("ANTI_KS", "true");
player:target(player:findNearestNameOrId("Negociador de Zurhidon"))
if player:haveTarget() then player:fight();
end
if inventory:itemTotalCount(0) == 0 then
sendMacro("LeaveParty();");
yrest(4000);
waitForLoadingScreen();
player:update();
player:mount();
__WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"));
end
</waypoint>
<!-- # 74 --><waypoint x="5576" z="3066" y="47">changeProfileOption("ANTI_KS", "false"); </waypoint>
<!-- # 75 --><waypoint x="5596" z="3023" y="47"> </waypoint>
<!-- # 76 --><waypoint x="5962" z="3108" y="47">player:cast("ROGUE_VANISH");
player:target_NPC("Esclavo de Zurhidon");
sendMacro("ChoiceOption(1);");
player:target_NPC("Esclavo de Zurhidon");
sendMacro("ChoiceOption(1);"); </waypoint>
-
Nero
- Posts: 98
- Joined: Wed Aug 10, 2011 9:07 am
#2
Post
by Nero » Sat Oct 01, 2011 11:57 am
1. Go to runesdatabase.com
2. Find relevant npc and open his page (i.e. www. runesdatabase.com /npc/
101348/zurhidon-protector)
3. Number in the link is your ID.
To change your code, you also need to lose " 's, as in
Code: Select all
settings.profile.mobs = {"Protector de Zurhidon"};
goes into
Code: Select all
settings.profile.mobs = {101348};
Btw. I could swear it was (ID), not {ID}.. oh well
-
spawni
- Posts: 100
- Joined: Wed Sep 28, 2011 11:21 am
#3
Post
by spawni » Sat Oct 01, 2011 12:18 pm

thank you very much!
-
rock5
- Posts: 12173
- Joined: Tue Jan 05, 2010 3:30 am
- Location: Australia
#4
Post
by rock5 » Sat Oct 01, 2011 12:22 pm
settings.profile.mobs is a table of ids or names. Tables are created with curly brackets {}.
- 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.”
-
spawni
- Posts: 100
- Joined: Wed Sep 28, 2011 11:21 am
#5
Post
by spawni » Sun Oct 02, 2011 1:09 am
I don´t get it - script stucks at wp61 - tried everthing (id, english mobnames, german-mob names masked) - player goes into boss-room - walks arround the Zurhidon Protectors - do nothing - than script ends
hope you can help me - what is wrong?
Code: Select all
<!-- # 61 --><waypoint x="5155" z="3159" y="47"> changeProfileOption("COMBAT_RANGED_PULL", true);changeProfileOption("MAX_TARGET_DIST",20); </waypoint>
<!-- # 62 --><waypoint x="5559" z="3267" y="47">
player:clearTarget();
settings.profile.mobs = {"Zurhidon-Besch/195/188tzer"};
changeProfileOption("ANTI_KS", "true");
player:target(player:findNearestNameOrId("Zurhidon-Besch/195/188tzer"))
if player:haveTarget() then player:fight();
end
if inventory:itemTotalCount(0) == 0 then
sendMacro("LeaveParty();");
yrest(4000);
waitForLoadingScreen();
player:update();
player:mount();
__WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"));
end
</waypoint>
<!-- # 63 --><waypoint x="5844" z="3283" y="47" type="TRAVEL"> </waypoint>
<!-- # 64 --><waypoint x="5844" z="3283" y="47"> </waypoint>
<!-- # 65 --><waypoint x="5853" z="3042" y="47"> player:clearTarget();
settings.profile.mobs = {"Zurhidon-Besch/195/188tzer"};
changeProfileOption("ANTI_KS", "true");
player:target(player:findNearestNameOrId("Zurhidon-Besch/195/188tzer"))
if player:haveTarget() then player:fight();
end </waypoint>
<!-- # 66 --><waypoint x="5574" z="3025" y="47" type="TRAVEL"> </waypoint>
<!-- # 67 --><waypoint x="5574" z="3025" y="47">
player:clearTarget();
settings.profile.mobs = {"Zurhidon-Unterh/195/164ndler"};
changeProfileOption("ANTI_KS", "true");
player:target(player:findNearestNameOrId("Zurhidon-Unterh/195/164ndler"))
if player:haveTarget() then player:fight();
end
if inventory:itemTotalCount(0) == 0 then
sendMacro("LeaveParty();");
yrest(4000);
waitForLoadingScreen();
player:update();
player:mount();
__WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"));
end
</waypoint>
<!-- # 68 --><waypoint x="5559" z="3267" y="47">
player:clearTarget();
settings.profile.mobs = {"Zurhidon-Besch/195/188tzer"};
changeProfileOption("ANTI_KS", "true");
player:target(player:findNearestNameOrId("Zurhidon-Besch/195/188tzer"))
if player:haveTarget() then player:fight();
end
if inventory:itemTotalCount(0) == 0 then
sendMacro("LeaveParty();");
yrest(4000);
waitForLoadingScreen();
player:update();
player:mount();
__WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"));
end
</waypoint>
<!-- # 69 --><waypoint x="5844" z="3283" y="47" type="TRAVEL"> </waypoint>
<!-- # 70 --><waypoint x="5844" z="3283" y="47"> </waypoint>
<!-- # 71 --><waypoint x="5853" z="3042" y="47"> player:clearTarget();
settings.profile.mobs = {"Zurhidon-Besch/195/188tzer"};
changeProfileOption("ANTI_KS", "true");
player:target(player:findNearestNameOrId("Zurhidon-Besch/195/188tzer"))
if player:haveTarget() then player:fight();
end </waypoint>
<!-- # 72 --><waypoint x="5574" z="3025" y="47" type="TRAVEL"> </waypoint>
<!-- # 73 --><waypoint x="5574" z="3025" y="47">
player:clearTarget();
settings.profile.mobs = {"Zurhidon-Unterh/195/164ndler"};
changeProfileOption("ANTI_KS", "true");
player:target(player:findNearestNameOrId("Zurhidon-Unterh/195/164ndler"))
if player:haveTarget() then player:fight();
end
if inventory:itemTotalCount(0) == 0 then
sendMacro("LeaveParty();");
yrest(4000);
waitForLoadingScreen();
player:update();
player:mount();
__WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"));
end
</waypoint>
<!-- # 74 --><waypoint x="5576" z="3066" y="47">changeProfileOption("ANTI_KS", "false"); </waypoint>
<!-- # 75 --><waypoint x="5596" z="3023" y="47"> </waypoint>
<!-- # 76 --><waypoint x="5962" z="3108" y="47">
player:target_NPC("Zurhidon-Sklavin");
sendMacro("ChoiceOption(1);");
player:target_NPC("Zurhidon-Sklavin");
sendMacro("ChoiceOption(1);"); </waypoint>
<!-- # 77 --><waypoint x="5999" z="3129" y="47"> </waypoint>
<!-- # 78 --><waypoint x="6011" z="3162" y="47"> </waypoint>
<!-- # 79 --><waypoint x="6050" z="3135" y="57">player:target_Object("Geschenk der Zurhidon",3000,true,true);settings.profile.mobs = {""};
</waypoint>
<!-- # 80 --><waypoint x="6047" z="3155" y="58"> changeProfileOption("COMBAT_RANGED_PULL", false);changeProfileOption("MAX_TARGET_DIST", 50) </waypoint>
<!-- # 81 --><waypoint x="5905" z="3290" y="47"> </waypoint>
-
lisa
- Posts: 8332
- Joined: Tue Nov 09, 2010 11:46 pm
- Location: Australia
#6
Post
by lisa » Sun Oct 02, 2011 3:54 am
have you checked the min and max level in your profile?
-
spawni
- Posts: 100
- Joined: Wed Sep 28, 2011 11:21 am
#7
Post
by spawni » Sun Oct 02, 2011 4:02 am
thx for the idea - but bot attacks all cyclops bevor this wp -
i have 30 below that will be attacked (char is 67) in my profile - the zurhidon protector is 52
-
lisa
- Posts: 8332
- Joined: Tue Nov 09, 2010 11:46 pm
- Location: Australia
#8
Post
by lisa » Sun Oct 02, 2011 4:37 am
so the code with
Code: Select all
player:target(player:findNearestNameOrId("Zurhidon-Besch/195/188tzer"))
Isn't actually targeting the mob?
Maybe add in some prints to test the code, the more information you can find out the better.
Code: Select all
player:target(player:findNearestNameOrId("Zurhidon-Besch/195/188tzer"))
if player:haveTarget() then
printf("Targeting Besch\n")
player:fight();
end
-
spawni
- Posts: 100
- Joined: Wed Sep 28, 2011 11:21 am
#9
Post
by spawni » Sun Oct 02, 2011 6:13 am
script works fine now - it was the target-distance - in my case distance of 224 works fine
-
Loveyouhatefrog
- Posts: 4
- Joined: Thu Oct 06, 2011 8:13 am
#10
Post
by Loveyouhatefrog » Sun Nov 20, 2011 2:28 pm
I am having the same problem he had..I changed the distance still doesnt help..
-
spawni
- Posts: 100
- Joined: Wed Sep 28, 2011 11:21 am
#11
Post
by spawni » Mon Nov 21, 2011 5:42 am
which language do you use?
-
spawni
- Posts: 100
- Joined: Wed Sep 28, 2011 11:21 am
#12
Post
by spawni » Mon Nov 21, 2011 1:10 pm
@Loveyouhatefrog
my code-snippets for the zurhidon-boss which works fine for at least 95% - 5% of the times a bug in CA let respawn the mobs and script stucks.
I have changed all names to id - so language should make no difference - hope it helps
Code: Select all
<!-- Am Unterhändler angekommen -->
<!-- # 62 --><waypoint x="5559" z="3267" y="47">
player:clearTarget();
settings.profile.mobs = {101348};
changeProfileOption("ANTI_KS", "true");
player:target(player:findNearestNameOrId(101348))
if player:haveTarget() then player:fight();
end
if inventory:itemTotalCount(0) == 0 then
sendMacro("LeaveParty();");
yrest(4000);
waitForLoadingScreen();
player:update();
player:mount();
__WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"));
end
</waypoint>
<!-- # 63 --><waypoint x="5844" z="3283" y="47" type="TRAVEL"> </waypoint>
<!-- # 64 --><waypoint x="5844" z="3283" y="47"> </waypoint>
<!-- # 65 --><waypoint x="5853" z="3042" y="47"> player:clearTarget();
settings.profile.mobs = {101348};
changeProfileOption("ANTI_KS", "true");
player:target(player:findNearestNameOrId(101348))
if player:haveTarget() then player:fight();
end </waypoint>
<!-- # 66 --><waypoint x="5574" z="3025" y="47" type="TRAVEL"> </waypoint>
<!-- # 67 --><waypoint x="5574" z="3025" y="47">
player:clearTarget();
settings.profile.mobs = {101347};
changeProfileOption("ANTI_KS", "true");
player:target(player:findNearestNameOrId(101347))
if player:haveTarget() then player:fight();
end
if inventory:itemTotalCount(0) == 0 then
sendMacro("LeaveParty();");
yrest(4000);
waitForLoadingScreen();
player:update();
player:mount();
__WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"));
end
</waypoint>
<!-- # 68 --><waypoint x="5559" z="3267" y="47">
player:clearTarget();
settings.profile.mobs = {101348};
changeProfileOption("ANTI_KS", "true");
player:target(player:findNearestNameOrId(101348))
if player:haveTarget() then player:fight();
end
if inventory:itemTotalCount(0) == 0 then
sendMacro("LeaveParty();");
yrest(4000);
waitForLoadingScreen();
player:update();
player:mount();
__WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"));
end
</waypoint>
<!-- # 69 --><waypoint x="5844" z="3283" y="47" type="TRAVEL"> </waypoint>
<!-- # 70 --><waypoint x="5844" z="3283" y="47"> </waypoint>
<!-- # 71 --><waypoint x="5853" z="3042" y="47"> player:clearTarget();
settings.profile.mobs = {101348};
changeProfileOption("ANTI_KS", "true");
player:target(player:findNearestNameOrId(101348))
if player:haveTarget() then player:fight();
end </waypoint>
<!-- # 72 --><waypoint x="5574" z="3025" y="47" type="TRAVEL"> </waypoint>
<!-- # 73 --><waypoint x="5574" z="3025" y="47">
player:clearTarget();
settings.profile.mobs = {101347};
changeProfileOption("ANTI_KS", "true");
player:target(player:findNearestNameOrId(101347))
if player:haveTarget() then player:fight();
end
</waypoint>
<!-- # 74 --><waypoint x="5576" z="3066" y="47">changeProfileOption("ANTI_KS", "false"); </waypoint>
<!-- # 75 --><waypoint x="5596" z="3023" y="47"> </waypoint>
<!-- # 76 --><waypoint x="5962" z="3108" y="47">
player:target_NPC(111611);
sendMacro("ChoiceOption(1);");
player:target_NPC(111611);
sendMacro("ChoiceOption(1);"); </waypoint>
<!-- # 77 --><waypoint x="5999" z="3129" y="47"> </waypoint>
<!-- # 78 --><waypoint x="6011" z="3162" y="47"> </waypoint>
<!-- # 79 --><waypoint x="6050" z="3135" y="57">player:target_Object(101354,3000,true,true);settings.profile.mobs = {""}; </waypoint>
<!-- # 81 --><waypoint x="5905" z="3290" y="47"> </waypoint>
<!-- # 82 --><waypoint x="5714" z="3312" y="47"> </waypoint>
<!-- # 83 --><waypoint x="5316" z="3163" y="49"> </waypoint>
Who is online
Users browsing this forum: Ahrefs [Bot] and 3 guests