hs Yet Another KS Script

Additional botting resources. Addons may be either for the game itself or for the RoM bot.
Forum rules
Only post additional bot resources here. Please do not ask unrelated questions.
Post Reply
Message
Author
fox66
Posts: 11
Joined: Sun Jul 29, 2012 3:55 am
Location: france

hs Yet Another KS Script

#1 Post by fox66 » Wed Sep 19, 2012 6:29 am

I made some changes in waypoints it goes well I may want that detects the persso boss
persso mage /DRUID....

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
	<onLoad>
	ToPancer = 1
	StopAtBoss = 0
	repeat
	cprintf(cli.lightgreen,"\n          Kalin Shrine script\n")
	print("Type number before which boss you want to stop farm KS")
	print("		1. Iron Rune Warrior")
	print("		2. Yusalien")
	print("		3. Locatha")
	print("		4. Harp")
	print("		5. Full run")
	print("		6. Quit")
	print("\n StopAtBoss>")
	StopAtBoss = io.stdin:read()
	StopAtBoss = tonumber(StopAtBoss)
	until StopAtBoss and StopAtBoss > 0
	if StopAtBoss == 6 then error("Closing.",0) end	
	</onLoad>

	<!-- #  1 --><waypoint x="4714" z="885">
	if (not player:hasBuff("506687")) then
    inventory:useItem(207203);
    end  

	if (not player:hasBuff("506686")) then
    inventory:useItem(207202);
    end 

	if (not player:hasBuff("506684")) then
    inventory:useItem(207200);
    end	</waypoint>
	<!-- #  2 --><waypoint x="4626" z="913">changeProfileOption("MAX_TARGET_DIST", 90);
	        if( 60 > player.HP/player.MaxHP*100 ) then
         inventory:useItem(203494);
        end
	</waypoint>
	<!-- #  3 --><waypoint x="4456" z="912">	</waypoint>

	<!-- #  4 --><waypoint x="4447" z="913" >changeProfileOption("MAX_TARGET_DIST", 130);	</waypoint>
	<!-- #  5 --><waypoint x="4378" z="1029" >	</waypoint>
	<!-- #  6 --><waypoint x="4364" z="822" >
	
	if player.Class1 == 5 or player.Class2 == 5 then -- priest
		while (80 > player.HP/player.MaxHP*100) do
			player:cast("PRIEST_URGENT_HEAL");
			yrest(2300);
		end
	end
	if player.Class1 == 8 or player.Class2 == 8 then -- druid
		while (80 > player.HP/player.MaxHP*100) do
			player:cast("DRUID_RECOVER");
			yrest(2300);
		end
	end
	</waypoint>
	<!-- #  7 --><waypoint x="4193" z="792" >	</waypoint>
	<!-- #  8 --><waypoint x="4211" z="917" >	</waypoint>

	<!-- #  9 --><waypoint x="4207" z="911" >changeProfileOption("MAX_TARGET_DIST", 130);	</waypoint>
	<!-- # 10 --><waypoint x="4030" z="915" >	</waypoint>
	<!-- #  11 --><waypoint x="3954" z="1003" >	</waypoint>
	<!-- #  12 --><waypoint x="3853" z="773" >	</waypoint>
	<!-- #  13 --><waypoint x="3793" z="763" >	</waypoint>
	<!-- #  14 --><waypoint x="3754" z="747" >	</waypoint>

	<!-- # 15 --><waypoint x="3754" z="802">	</waypoint>
	<!-- # 16 --><waypoint x="3752" z="958">	</waypoint>
	<!-- # 17 --><waypoint x="3752" z="1121">	</waypoint>
	<!-- # 18 --><waypoint x="3797" z="1178">	</waypoint>
	<!-- # 19 --><waypoint x="3830" z="1199">changeProfileOption("MAX_TARGET_DIST", 110);	</waypoint>
	<!-- # 20 --><waypoint x="3891" z="1200">	</waypoint>
	<!-- # 21 --><waypoint x="3958" z="1176">	</waypoint>
	<!-- # 22 --><waypoint x="4010" z="1166">	</waypoint>
	<!-- # 23 --><waypoint x="4030" z="1207">	</waypoint>
	<!-- # 24 --><waypoint x="4033" z="1278">	</waypoint>
	<!-- # 25 --><waypoint x="4040" z="1359">	</waypoint>
	<!-- # 26 --><waypoint x="4064" z="1428">	</waypoint>
	<!-- # 27 --><waypoint x="4148" z="1439">	</waypoint>
	<!-- # 28 --><waypoint x="4212" z="1411">	</waypoint>
	<!-- # 29 --><waypoint x="4233" z="1336">changeProfileOption("MAX_TARGET_DIST", 50);	</waypoint>
	<!-- # 30 --><waypoint x="4232" z="1262">changeProfileOption("MAX_TARGET_DIST", 50);	</waypoint>
	<!-- # 31 --><waypoint x="4235" z="1153">	</waypoint>
	<!-- # 32 --><waypoint x="4269" z="1155">	</waypoint>
	<!-- # 33 --><waypoint x="4339" z="1150">	</waypoint>
	<!-- # 34 --><waypoint x="4421" z="1149">	</waypoint>
	<!-- # 35 --><waypoint x="4418" z="1278">	</waypoint>
	<!-- # 36 --><waypoint x="4418" z="1437">       </waypoint>
	<!-- # 37 --><waypoint x="4339" z="1438">	</waypoint>
	<!-- # 38 --><waypoint x="4267" z="1436">	</waypoint>
	<!-- # 39 --><waypoint x="4202" z="1444">	</waypoint>
	<!-- # 40 --><waypoint x="4164" z="1492">	</waypoint>
	<!-- # 41 --><waypoint x="4100" z="1500">	</waypoint>
	<!-- # 42 --><waypoint x="4052" z="1509">	</waypoint>
	<!-- # 43 --><waypoint x="3980" z="1532">	</waypoint>
	<!-- # 44 --><waypoint x="3911" z="1508">	</waypoint>
	<!-- # 45 --><waypoint x="3831" z="1441">	</waypoint>
	<!-- # 46 --><waypoint x="3777" z="1416">	</waypoint>
	<!-- # 47 --><waypoint x="3757" z="1362">	</waypoint>
	<!-- # 48 --><waypoint x="3763" z="1307">	</waypoint>
	<!-- # 49 --><waypoint x="3781" z="1238">changeProfileOption("MAX_TARGET_DIST", 150);
	    if inventory:itemTotalCount(0) == 0 then    
    sendMacro("LeaveParty();");
     yrest(4000)
    waitForLoadingScreen(); 
    player:update();
    __WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"));
    end 	</waypoint>
	<!-- # 50 --><waypoint x="3771" z="1176">	</waypoint>
	<!-- # 51 --><waypoint x="3728" z="1149">	</waypoint>
	<!-- # 52 --><waypoint x="3601" z="1157">	</waypoint>
	<!-- # 53 --><waypoint x="3474" z="1162">	</waypoint>
	<!-- # 54 --><waypoint x="3448" z="1211">	</waypoint>
	<!-- # 55 --><waypoint x="3454" z="1313">	</waypoint>
	<!-- # 56 --><waypoint x="3466" z="1408">	</waypoint>
	<!-- # 57 --><waypoint x="3427" z="1456">	</waypoint>
	<!-- # 58 --><waypoint x="3313" z="1444">	</waypoint>
	<!-- # 59 --><waypoint x="3198" z="1429">	</waypoint>
	<!-- # 60 --><waypoint x="3149" z="1446">	</waypoint>
	<!-- # 61 --><waypoint x="3127" z="1472">	</waypoint>
	<!-- # 62 --><waypoint x="3160" z="1514">	</waypoint>
	<!-- # 63 --><waypoint x="3169" z="1617">	</waypoint>
	<!-- # 64 --><waypoint x="3137" z="1716">	</waypoint>
	<!-- # 65 --><waypoint x="3111" z="1784">	</waypoint>
	<!-- # 66 --><waypoint x="3158" z="1813">	</waypoint>
	<!-- # 67 --><waypoint x="3172" z="1887">	</waypoint>
	<!-- # 68 --><waypoint x="3172" z="1969">	</waypoint>
	<!-- # 69 --><waypoint x="3169" z="2050">	</waypoint>
	<!-- # 70 --><waypoint x="3168" z="2138">	</waypoint>
	<!-- # 71 --><waypoint x="3178" z="2255">	</waypoint>
	<!-- # 72 --><waypoint x="3148" z="2287">	</waypoint>
	<!-- # 73 --><waypoint x="3059" z="2282">	</waypoint>
	<!-- # 74 --><waypoint x="2958" z="2288">       </waypoint>
	<!-- # 75 --><waypoint x="2927" z="2245">changeProfileOption("MAX_TARGET_DIST", 60);      </waypoint>
	<!-- # 76 --><waypoint x="2938" z="2157">     </waypoint>
	<!-- # 77 --><waypoint x="3045" z="2008">       </waypoint>
	<!-- # 78 --><waypoint x="2920" z="2012">	</waypoint>
	<!-- # 79 --><waypoint x="2867" z="1987">
    if inventory:itemTotalCount(0) == 0 then    
    sendMacro("LeaveParty();");
     yrest(4000)
    waitForLoadingScreen(); 
    player:update();
    __WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"));
    end </waypoint>
	<!-- # 80 --><waypoint x="2811" z="2029">	</waypoint>
	<!-- # 81 --><waypoint x="2806" z="2088">	</waypoint>
	<!-- # 82 --><waypoint x="2845" z="2148">	</waypoint>
	<!-- # 83 --><waypoint x="2857" z="2210">	</waypoint>
	<!-- # 84 --><waypoint x="2766" z="2266">	</waypoint>
	<!-- # 85 --><waypoint x="2705" z="2289">	</waypoint>
	<!-- # 86 --><waypoint x="2636" z="2242">	</waypoint>
	<!-- # 87 --><waypoint x="2628" z="2175">	</waypoint>
	<!-- # 88 --><waypoint x="2621" z="2106">	</waypoint>
	<!-- # 89 --><waypoint x="2614" z="2042">	</waypoint>
	<!-- # 90 --><waypoint x="2649" z="1989">	</waypoint>
	<!-- # 91 --><waypoint x="2688" z="1945">	</waypoint>
	<!-- # 92 --><waypoint x="2694" z="1912">	</waypoint>
	<!-- # 93 --><waypoint x="2693" z="1798">

       if StopAtBoss == 1 then
		sendMacro("LeaveParty();");
		yrest(4000)
		waitForLoadingScreen(); 
		player:update();
    	__WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"));
    end	</waypoint>
         <!-- Iron Rune Warrior - debut -->
 if(target.Name == "Ensia") or (target.Name == "Iron Rune Warrior") then
         player:updateBuffs();
         yrest(2300);
         if player.Class1 == 8 or player.Class2 == 8 then -- druid
         player:cast("DRUID_SAVAGE_BLESSING");
         player:cast("MAGE_ELEMENTAL_CATALYSIS");
         player:cast("MAGE_ELECTROSTATIC_CHARGE");
	 player:cast("MAGE_ESSENCE_OF_MAGIC");
	 player:cast("MAGE_ENERGY_INFLUX");
	changeProfileSkill("MAGE_FLAME", "AutoUse", true);
	changeProfileSkill("MAGE_FIREBALL", "AutoUse", true);
        player:cast("DRUID_RECOVER");
	changeProfileSkill("MAGE_FLAME", "Priority", 90);
	changeProfileSkill("MAGE_FIREBALL", "Priority", 100);
         end
         end
	<!-- # 94 --><waypoint x="2692" z="1731">	</waypoint>
	<!-- # 95 --><waypoint x="2692" z="1642">	</waypoint>
	<!-- # 96 --><waypoint x="2691" z="1579">	</waypoint>
	<!-- # 97 --><waypoint x="2677" z="1452">	
  <!-- Iron Rune Warrior - fin -->	
 if inventory:itemTotalCount(0) == 0 then  
    sendMacro("LeaveParty();");
     yrest(4000)
    waitForLoadingScreen(); 
    player:update();
    __WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"));
    end </waypoint>
	<!-- # 98 --><waypoint x="2710" z="1417">	</waypoint>
	<!-- # 99 --><waypoint x="2787" z="1427">	</waypoint>
	<!-- # 100 --><waypoint x="2896" z="1428">	</waypoint>
	<!-- # 101 --><waypoint x="3054" z="1424">	</waypoint>
	<!-- # 102 --><waypoint x="3113" z="1483">	</waypoint>
	<!-- # 103 --><waypoint x="3106" z="1561">	</waypoint>
	<!-- # 104 --><waypoint x="3096" z="1627">	</waypoint>
	<!-- # 105 --><waypoint x="3137" z="1685">	</waypoint>
	<!-- # 106 --><waypoint x="3151" z="1775">	    if inventory:itemTotalCount(0) == 0 then    
    sendMacro("LeaveParty();");
     yrest(4000)
    waitForLoadingScreen(); 
    player:update();
    __WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"));
    end  	</waypoint>
	<!-- # 107 --><waypoint x="3087" z="1804">	</waypoint>
	<!-- # 108 --><waypoint x="3031" z="1797">	</waypoint>
	<!-- # 109 --><waypoint x="2880" z="1795">	</waypoint>
	<!-- # 110 --><waypoint x="2734" z="1793">	</waypoint>
	<!-- # 111 --><waypoint x="2699" z="1728">      </waypoint>
	<!-- # 112 --><waypoint x="2855" z="1692">	</waypoint>
	<!-- # 113 --><waypoint x="2638" z="1703">	</waypoint>
	<!-- # 114 --><waypoint x="2532" z="1705">	</waypoint>
	<!-- # 115 --><waypoint x="2484" z="1677">changeProfileOption("MAX_TARGET_DIST", 150);
	    if inventory:itemTotalCount(0) == 0 then    
    sendMacro("LeaveParty();");
     yrest(4000)
    waitForLoadingScreen(); 
    player:update();
    __WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"));
    end    

	</waypoint>
	<!-- # 116 --><waypoint x="2425" z="1594">	</waypoint>
	<!-- # 117 --><waypoint x="2454" z="1541">	</waypoint>
	<!-- # 118 --><waypoint x="2528" z="1517">	</waypoint>
	<!-- # 119 --><waypoint x="2650" z="1515">changeProfileOption("MAX_TARGET_DIST", 110);	</waypoint>
	<!-- # 120 --><waypoint x="2751" z="1532">	</waypoint>
	<!-- # 121 --><waypoint x="2811" z="1527">changeProfileOption("MAX_TARGET_DIST", 60)	</waypoint>
	<!-- # 122 --><waypoint x="2936" z="1562">	</waypoint>
	<!-- # 123 --><waypoint x="2960" z="1511">	</waypoint>
	<!-- # 124 --><waypoint x="2946" z="1424">	</waypoint>
	<!-- # 125 --><waypoint x="2786" z="1426">	    if inventory:itemTotalCount(0) == 0 then    
    sendMacro("LeaveParty();");
     yrest(4000)
    waitForLoadingScreen(); 
    player:update();
    __WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"));
    end    
	</waypoint>
	<!-- # 126 --><waypoint x="2597" z="1433">	</waypoint>
	<!-- # 127 --><waypoint x="2593" z="1540">	</waypoint>
	<!-- # 128 --><waypoint x="2589" z="1771">	</waypoint>
	<!-- # 129 --><waypoint x="2590" z="1867">	</waypoint>
	<!-- # 130 --><waypoint x="2594" z="1974">
	if StopAtBoss == 2 then
		sendMacro("LeaveParty();");
		yrest(4000)
		waitForLoadingScreen(); 
		player:update();
    	__WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"));
    end		</waypoint>
	<!-- # 131 --><waypoint x="2590" z="2081">	</waypoint>
	<!-- # 132 --><waypoint x="2525" z="2086"></waypoint>	
         
         player:updateBuffs();
         yrest(2300);
         if player.Class1 == 8 or player.Class2 == 8 then -- druid
         player:cast("DRUID_SAVAGE_BLESSING");
         player:cast("MAGE_ELEMENTAL_CATALYSIS");
         player:cast("MAGE_ELECTROSTATIC_CHARGE");
	 player:cast("MAGE_ESSENCE_OF_MAGIC");
	 player:cast("MAGE_ENERGY_INFLUX");
	changeProfileSkill("MAGE_FLAME", "AutoUse", true);
	changeProfileSkill("MAGE_FIREBALL", "AutoUse", true);
        player:cast("DRUID_RECOVER");
	changeProfileSkill("MAGE_FLAME", "Priority", 90);
	changeProfileSkill("MAGE_FIREBALL", "Priority", 100);
         end
         end


	<!-- # 133 --><waypoint x="2457" z="2153">  <!-- Yusalien - debut -->	</waypoint>
	<!-- # 134 --><waypoint x="2329" z="2164">	</waypoint>
	<!-- # 135 --><waypoint x="2399" z="2200">	    if inventory:itemTotalCount(0) == 0 then    
    sendMacro("LeaveParty();");
     yrest(4000)
    waitForLoadingScreen(); 
    player:update();
    __WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"));
    end    
	</waypoint>
<!-- Yusalien - fin -->
	<!-- # 136 --><waypoint x="2581" z="2366">	</waypoint>
	<!-- # 137 --><waypoint x="2595" z="2496">	</waypoint>
	<!-- # 138 --><waypoint x="2595" z="2685">	</waypoint>
	<!-- # 139 --><waypoint x="2593" z="2846">	</waypoint>
	<!-- # 140 --><waypoint x="2570" z="2961">	</waypoint>
	<!-- # 141 --><waypoint x="2464" z="2946">	</waypoint>
	<!-- # 142 --><waypoint x="2342" z="2949">	</waypoint>
	<!-- # 143 --><waypoint x="2291" z="3004">	</waypoint>
	<!-- # 144 --><waypoint x="2307" z="3088">	</waypoint>
	<!-- # 145 --><waypoint x="2318" z="3228">	    if inventory:itemTotalCount(0) == 0 then    
    sendMacro("LeaveParty();");
     yrest(4000)
    waitForLoadingScreen(); 
    player:update();
    __WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"));
    end    
	</waypoint>
	<!-- # 146 --><waypoint x="2303" z="3284">	</waypoint>
	<!-- # 147 --><waypoint x="2178" z="3289">	</waypoint>
	<!-- # 148 --><waypoint x="2050" z="3274">	</waypoint>
	<!-- # 149 --><waypoint x="2056" z="3366">	</waypoint>
	<!-- # 150 --><waypoint x="2065" z="3441">
	if StopAtBoss == 3 then
		sendMacro("LeaveParty();");
		yrest(4000)
		waitForLoadingScreen(); 
		player:update();
    	__WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"));
    end		</waypoint>
	<!-- # 151 --><waypoint x="2163" z="3795">	</waypoint>
	<!-- # 152 --><waypoint x="2277" z="3802">	</waypoint>
	<!-- # 153 --><waypoint x="2401" z="3782">	</waypoint>
	<!-- # 154 --><waypoint x="2391" z="3604">	</waypoint>
	<!-- # 155 --><waypoint x="2394" z="3351">	</waypoint>
	<!-- # 156 --><waypoint x="2319" z="3310">	</waypoint>
	<!-- # 157 --><waypoint x="2062" z="3276">	</waypoint>
	<!-- # 158 --><waypoint x="1921" z="3312">	</waypoint>
	<!-- # 159 --><waypoint x="1807" z="3362">yrest(2000);	</waypoint>
	<!-- # 160 --><waypoint x="1797" z="3544">	</waypoint>
	<!-- #  1 --><waypoint x="1804" z="3768">
	if player.Class1 == 5 or player.Class2 == 5 then -- priest
		while (80 > player.HP/player.MaxHP*100) do
			player:cast("PRIEST_URGENT_HEAL");
			yrest(2300);
		end
	end
	if player.Class1 == 8 or player.Class2 == 8 then -- druid
		while (80 > player.HP/player.MaxHP*100) do
			player:cast("DRUID_RECOVER");
			yrest(2300);
		end
	end		</waypoint>
	<!-- #  2 --><waypoint x="1977" z="3939">	    if inventory:itemTotalCount(0) == 0 then    
    sendMacro("LeaveParty();");
     yrest(4000)
    waitForLoadingScreen(); 
    player:update();
    __WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"));
    end    
	</waypoint>
	<!-- #  3 --><waypoint x="2279" z="4011">	</waypoint>
	<!-- #  4 --><waypoint x="2309" z="4130">	</waypoint>
	<!-- #  5 --><waypoint x="2290" z="4245">	</waypoint>
	<!-- #  6 --><waypoint x="2340" z="4307">	</waypoint>
	<!-- #  7 --><waypoint x="2433" z="4273">	</waypoint>
	<!-- #  8 --><waypoint x="2542" z="4276">	</waypoint>
	<!-- #  9 --><waypoint x="2600" z="4352">	</waypoint>
	<!-- # 10 --><waypoint x="2605" z="4550">	</waypoint>
	<!-- # 11 --><waypoint x="2485" z="4583">	</waypoint>
	<!-- # 12 --><waypoint x="2564" z="4576">	</waypoint>
	<!-- # 13 --><waypoint x="2619" z="4625">	</waypoint>
	<!-- # 14 --><waypoint x="2586" z="4697">	</waypoint>
	<!-- # 15 --><waypoint x="2572" z="4834">	</waypoint>
	<!-- # 16 --><waypoint x="2530" z="4898">	</waypoint>
	<!-- # 17 --><waypoint x="2405" z="4912">	</waypoint>
	<!-- # 18 --><waypoint x="2212" z="4909">
	if StopAtBoss == 4 then
		sendMacro("LeaveParty();");
		yrest(4000)
		waitForLoadingScreen(); 
		player:update();
    	__WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"));
    end	
</waypoint>
	<!-- # 19 --><waypoint x="2170" z="4911">	</waypoint>


	<!-- # 20 --><waypoint x="2147" z="4912">	    if inventory:itemTotalCount(0) == 0 then    
    sendMacro("LeaveParty();");
     yrest(4000)
    waitForLoadingScreen(); 
    player:update();
    __WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"));
    end    
	</waypoint>

	<!-- # 21 --><waypoint x="2019" z="4913">	</waypoint>
	<!-- # 22 --><waypoint x="1902" z="4954">	</waypoint>
	<!-- # 23 --><waypoint x="1839" z="5011">	</waypoint>
	<!-- # 24 --><waypoint x="1682" z="5008">	</waypoint>
	<!-- # 25 --><waypoint x="1625" z="5085">	</waypoint>
	<!-- # 26 --><waypoint x="1624" z="5205">	</waypoint>
	<!-- # 27 --><waypoint x="1663" z="5243">	</waypoint>
	<!-- # 28 --><waypoint x="1858" z="5178">	</waypoint>
	<!-- # 29 --><waypoint x="1989" z="5178">	</waypoint>
	<!-- # 30 --><waypoint x="2059" z="5074">	</waypoint>
	<!-- # 31 --><waypoint x="2125" z="5007">	</waypoint>
	<!-- # 32 --><waypoint x="2253" z="4961">	</waypoint>
	<!-- # 33 --><waypoint x="2315" z="4966">	</waypoint>
	<!-- # 34 --><waypoint x="2355" z="5010">	</waypoint>
	<!-- # 35 --><waypoint x="2425" z="5047">	    if inventory:itemTotalCount(0) == 0 then    
    sendMacro("LeaveParty();");
     yrest(4000)
    waitForLoadingScreen(); 
    player:update();
    __WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"));
    end    
	</waypoint>
	<!-- # 36 --><waypoint x="2508" z="5130">	</waypoint>
	<!-- # 37 --><waypoint x="2595" z="5143">	</waypoint>
	<!-- # 38 --><waypoint x="2645" z="5192">	</waypoint>
	<!-- # 39 --><waypoint x="2642" z="5395">	</waypoint>
	<!-- # 40 --><waypoint x="2587" z="5438">	</waypoint>
	<!-- # 41 --><waypoint x="2419" z="5441">	</waypoint>
	<!-- # 42 --><waypoint x="2364" z="5320">	</waypoint>
	<!-- # 43 --><waypoint x="2359" z="5216">	</waypoint>
	<!-- # 44 --><waypoint x="2283" z="5104">	</waypoint>
	<!-- # 45 --><waypoint x="2191" z="5129">	</waypoint>
	<!-- # 46 --><waypoint x="2157" z="5211">	</waypoint>
	<!-- # 47 --><waypoint x="2160" z="5301">	</waypoint>
	<!-- # 48 --><waypoint x="2199" z="5383">	</waypoint>
	<!-- # 49 --><waypoint x="2256" z="5463">
	sendMacro("LeaveParty();");  
	           yrest(4000)	waitForLoadingScreen(); 	

<!--
	player:rest(3);
	player:target_Object("Great Door of the Inner Hall")
	player:rest(30);
	loadPaths("END.xml");	-->		</waypoint>
<!-- going to sold out -->	
	<!-- #  1 --><waypoint x="-15147" z="11542" y="136" tag="rerun">
	player:updateBuffs();
	 if not player.Buffs["May Establish Honor Party"] then
   inventory:useItem(202879);
  end

    while not RoMScript("UnitExists('party1')") do
        sendMacro('InviteByName("")');
        yrest(4000)
    end
    if (not player:hasBuff("506687")) then
    inventory:useItem(207203);
    end  

	if (not player:hasBuff("506686")) then
    inventory:useItem(207202);
    end 

	if (not player:hasBuff("506684")) then
    inventory:useItem(207200);
    end    
    player:mount();	</waypoint>
	<!-- #  2 --><waypoint x="-15764" z="11358" type="RUN">	</waypoint>
	<!-- #  3 --><waypoint x="-15967" z="11304" type="RUN">	</waypoint>
	<!-- #  4 --><waypoint x="-16078" z="11312" type="RUN">	</waypoint>
	<!-- #  5 --><waypoint x="-16249" z="11327" type="RUN">	</waypoint>
	<!-- #  6 --><waypoint x="-16450" z="11350" type="RUN">	</waypoint>
	<!-- #  7 --><waypoint x="-16607" z="11365" type="RUN">	</waypoint>
	<!-- #  8 --><waypoint x="-16618" z="11352" type="RUN">		
		changeProfileOption("HARVEST_DISTANCE", 200);  

		yrest(100);
	player:merchant("Pancer");
		yrest(100); 
	</waypoint>
	<!-- #  1 --><waypoint x="-16650" z="11463" type="RUN">	</waypoint>
	<!-- #  2 --><waypoint x="-16836" z="11573" type="RUN">	</waypoint>
	<!-- #  3 --><waypoint x="-17141" z="11250" type="RUN">	
        if player.Class1 == 5 or player.Class2 == 5 then -- priest
		while (80 > player.HP/player.MaxHP*100) do
			player:cast("PRIEST_URGENT_HEAL");
			yrest(2300);
		end
	end
	if player.Class1 == 8 or player.Class2 == 8 then -- druid
		while (80 > player.HP/player.MaxHP*100) do
			player:cast("DRUID_RECOVER");
			yrest(2300);
		end
            end	
        </waypoint>
	<!-- #  4 --><waypoint x="-17448" z="10703" type="RUN">	</waypoint>
	<!-- #  5 --><waypoint x="-17668" z="10680" type="RUN">	
	if player.Class1 == 5 or player.Class2 == 5 then -- priest
		while (80 > player.HP/player.MaxHP*100) do
			player:cast("PRIEST_URGENT_HEAL");
			yrest(2300);
		end
	end
	if player.Class1 == 8 or player.Class2 == 8 then -- druid
		while (80 > player.HP/player.MaxHP*100) do
			player:cast("DRUID_RECOVER");
			yrest(2300);
		end
	end	
</waypoint>
	<!-- #  6 --><waypoint x="-17936" z="10586" type="RUN">	</waypoint>
	<!-- #  7 --><waypoint x="-18160" z="10707" type="RUN">player:mount();	</waypoint>
	<!-- #  8 --><waypoint x="-18288" z="11068" type="RUN">	</waypoint>
	<!-- #  9 --><waypoint x="-18416" z="11681" type="RUN">	</waypoint>
	<!-- # 10 --><waypoint x="-18546" z="12468" type="RUN">	</waypoint>
	<!-- # 55 --><waypoint x="-18549" z="12522" type="RUN">	
	changeProfileOption("MAX_TARGET_DIST", 90);	
			yrest(30000);	
			player:update();
			</waypoint>

	
</waypoints>
--=== edited by lisa ===--
Please learn to use code tags
Attachments
KS.Xml
(21.26 KiB) Downloaded 292 times

stoyo
Posts: 12
Joined: Wed Apr 18, 2012 8:43 am

Re: hs Yet Another KS Script

#2 Post by stoyo » Wed Sep 19, 2012 12:06 pm

Is there a way i can put hide buff for waypoint 1-10 for my rogue?

User avatar
Ego95
Posts: 564
Joined: Tue Feb 28, 2012 12:38 pm
Contact:

Re: hs Yet Another KS Script

#3 Post by Ego95 » Mon Sep 24, 2012 2:39 pm

With lisas changeProfile userfunction you can use

Code: Select all

ChangeProfileSkill("ROGUE_HIDE", "Autouse=true")
at waypoint 1 and

Code: Select all

ChangeProfileSkill("ROGUE_HIDE", "Autouse=false")
at wp 10.

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: hs Yet Another KS Script

#4 Post by rock5 » Mon Sep 24, 2012 3:12 pm

I'm not sure if ChangeProfileSkill was a userfunction but now it is part of the bot.

I believe the correct usage is

Code: Select all

changeProfileSkill("ROGUE_HIDE", "AutoUse", true)

changeProfileSkill("ROGUE_HIDE", "AutoUse", false)
  • 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

User avatar
Ego95
Posts: 564
Joined: Tue Feb 28, 2012 12:38 pm
Contact:

Re: hs Yet Another KS Script

#5 Post by Ego95 » Mon Sep 24, 2012 5:23 pm

I'm not sure if ChangeProfileSkill was a userfunction but now it is part of the bot.

I believe the correct usage is

Code: Select all

changeProfileSkill("ROGUE_HIDE", "AutoUse", true)

changeProfileSkill("ROGUE_HIDE", "AutoUse", false)

Yes, thanks rock :D
Oh and there was an userfunction, but my fault, the correct name was profilechange

Post Reply

Who is online

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