Page 1 of 1

cyclops lair - problem with mob-names

Posted: Sat Oct 01, 2011 11:41 am
by spawni
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>

Re: cyclops lair - problem with mob-names

Posted: Sat Oct 01, 2011 11:57 am
by Nero
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

Re: cyclops lair - problem with mob-names

Posted: Sat Oct 01, 2011 12:18 pm
by spawni
:D thank you very much!

Re: cyclops lair - problem with mob-names

Posted: Sat Oct 01, 2011 12:22 pm
by rock5
settings.profile.mobs is a table of ids or names. Tables are created with curly brackets {}.

Re: cyclops lair - problem with mob-names

Posted: Sun Oct 02, 2011 1:09 am
by spawni
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>

Re: cyclops lair - problem with mob-names

Posted: Sun Oct 02, 2011 3:54 am
by lisa
have you checked the min and max level in your profile?

Re: cyclops lair - problem with mob-names

Posted: Sun Oct 02, 2011 4:02 am
by spawni
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

Re: cyclops lair - problem with mob-names

Posted: Sun Oct 02, 2011 4:37 am
by lisa
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


Re: cyclops lair - problem with mob-names

Posted: Sun Oct 02, 2011 6:13 am
by spawni
script works fine now - it was the target-distance - in my case distance of 224 works fine

Re: cyclops lair - problem with mob-names

Posted: Sun Nov 20, 2011 2:28 pm
by Loveyouhatefrog
I am having the same problem he had..I changed the distance still doesnt help..

Re: cyclops lair - problem with mob-names

Posted: Mon Nov 21, 2011 5:42 am
by spawni
which language do you use?

Re: cyclops lair - problem with mob-names

Posted: Mon Nov 21, 2011 1:10 pm
by spawni
@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>