Page 15 of 22

Re: Allmost foolproof KS run

Posted: Mon Feb 13, 2012 11:42 am
by lisa
rock5 wrote:Phirius Pots? Yeah sure, I meant pots that boost stats or damage etc.
Lol I never buy them either, don't think I ever have. I get the luck pots though as it proved to be a good profit.

Re: Allmost foolproof KS run

Posted: Thu Feb 16, 2012 12:24 am
by Germangold
have trouble to auto sell purple "trash" item from KS bosses

Code: Select all

<!-- Shopping options, how many of what do you want to keep in your inventory -->
		<option name="INV_MAX_SLOTS"  value="150" /> <!-- 60 fuer 2 bags, immer 30 mehr pro bag  -->
		<option name="INV_AUTOSELL_ENABLE"			value="true" />
		<option name="INV_AUTOSELL_FROMSLOT"		value="1" />
		<option name="INV_AUTOSELL_TOSLOT"			value="150" />
		<option name="INV_AUTOSELL_QUALITY"			value="white,green,blue,purple" />
		<option name="INV_AUTOSELL_IGNORE"			value="III" />
		
what i am doing wrong?

Re: Allmost foolproof KS run

Posted: Thu Feb 16, 2012 12:48 am
by lisa
unless the item has III in name those options should be fine. Do you have any other autosell options in your profile?

INV_AUTOSELL_NOSELL_STATSNUMBER
INV_AUTOSELL_NOSELL_DURA
INV_AUTOSELL_STATS_NOSELL

also default number of stats not to sell is 3

Code: Select all

			INV_AUTOSELL_NOSELL_STATSNUMBER = 3,-- If the item has this many or more named stats then don't sell
If the purple items have 3+ stats then they won't sell, you can change that value in your profile like any other profile option.
4 should still be safe.

Re: Allmost foolproof KS run

Posted: Thu Feb 16, 2012 1:11 am
by Germangold
thx lisa
change it to

Code: Select all

		<option name="INV_MAX_SLOTS"  value="150" /> <!-- 60 fuer 2 bags, immer 30 mehr pro bag  -->
		<option name="INV_AUTOSELL_ENABLE"			value="true" />
		<option name="INV_AUTOSELL_FROMSLOT"		value="1" />
		<option name="INV_AUTOSELL_TOSLOT"			value="150" />
		<option name="INV_AUTOSELL_QUALITY"			value="white,green,blue,purple" />
		<option name="INV_AUTOSELL_IGNORE"			value="III,kann nicht," />
		<option name="INV_AUTOSELL_NOSELL_STATSNUMBER"			value="4" />
works fine now

kann nicht = can't be sold

so it wont bother with item that cant be sold

Re: Allmost foolproof KS run

Posted: Thu Feb 23, 2012 10:28 am
by darkjack
Hi. i have new idea of ks farming but dont know really how to make it. I want farm only frogs then back and out instance, leave and invite to party and re run and again, again - bot leave instance and resp on respawn point for sell only when backback is full. Problem for me is how to make waypoints to go outside instance, leave and invite and back to ks - i dont want go to respwan point only out from instance. Any ideas?

ps. sry for my english

Re: Allmost foolproof KS run

Posted: Fri Feb 24, 2012 6:35 am
by silinky
easy enough i guess.
make a waypoint that only covers the frogs, and at the end of it do a bagitemcount check. if full, leave party, and load the seller waypoint. if not, go back to the entrance, and leave party out of instance, re invite and re enter. you can do a free space check even before the end of the frogs waypoints.

drawbacks: you will run alot back to the entrance, a lot of area changes, loading => possibility of client crash raises.
if you keep running back you will effectively spent 50% just running without profit.

i find it way more profitable to do full runs/or until my bags are full (i do checks on every waypoint), and run only back from npc.

Re: Allmost foolproof KS run

Posted: Fri Feb 24, 2012 11:29 am
by kilbord
Umh it doesnt leave party and inv again

Re: Allmost foolproof KS run

Posted: Tue Feb 28, 2012 8:38 pm
by rubenr
did your KS drops decreased?

i used to get 5 and a half bag until boss 2, now i get only 4 bags... :S

Re: Allmost foolproof KS run

Posted: Wed Feb 29, 2012 5:36 pm
by darkjack
Ok i make something like this and another waypoints for rerturn. Problem: bot some times stuck on 2th waypoint when enter the instance idk why he should go next 3th waypoint

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>

	<!-- # 1 --><waypoint x="-18560" z="12451" type="TRAVEL">
		sendMacro("LeaveParty();");
		yrest(1000)
	while not RoMScript("UnitExists('party1')") do
		sendMacro('InviteByName("Alt name")');
		yrest(3000)
	end

	</waypoint>
	<!-- # 2 --><waypoint x="-18549" z="12522" type="TRAVEL">	changeProfileOption("MAX_TARGET_DIST", 90);	
	yrest(10000);
	</waypoint>

	<!-- #  3 --><waypoint x="4755" z="900">	
	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>
	<!-- #  4 --><waypoint x="4626" z="913">changeProfileOption("MAX_TARGET_DIST", 90);
	        if( 60 > player.HP/player.MaxHP*100 ) then
         inventory:useItem(203494);
        end
	</waypoint>
	<!-- #  5 --><waypoint x="4456" z="912">	</waypoint>

	<!-- #  6 --><waypoint x="4447" z="913" >changeProfileOption("MAX_TARGET_DIST", 130);	</waypoint>
	<!-- #  7 --><waypoint x="4378" z="1029" >	</waypoint>
	<!-- #  8 --><waypoint x="4364" z="822" >	</waypoint>
	<!-- #  9 --><waypoint x="4193" z="792" >changeProfileOption("MAX_TARGET_DIST", 90);	</waypoint>
	<!-- #  10 --><waypoint x="4211" z="917" >
	if inventory:itemTotalCount(0) == 0 then    
   	sendMacro("LeaveParty();");
   	 waitForLoadingScreen(); 
	yrest(5000)
	loadPaths("returnway.xml")
end
	</waypoint>	
	<!-- #  11 --><waypoint x="4207" z="911" >changeProfileOption("MAX_TARGET_DIST", 130);	</waypoint>
	<!-- #  12 --><waypoint x="4042" z="913" y="700">	</waypoint>
	<!-- #  13 --><waypoint x="3932" z="913" y="700">	</waypoint>
	<!-- #  14--><waypoint x="3792" z="766" y="700">	</waypoint>
	<!-- #  15--><waypoint x="3755" z="766" y="700">	</waypoint>
	<!-- #  16 --><waypoint x="3756" z="955" y="751">	</waypoint>
	<!-- #  17 --><waypoint x="3752" z="1136" y="805">	</waypoint>
	<!-- #  18 --><waypoint x="3763" z="1179" y="805">	</waypoint>
	<!-- #  19 --><waypoint x="3903" z="1189" y="805">	</waypoint>
	<!-- #  20--><waypoint x="4012" z="1193" y="805">	</waypoint>
	<!-- # 21 --><waypoint x="4030" z="1305" y="805">
	if inventory:itemTotalCount(0) == 0 then    
   	sendMacro("LeaveParty();");
   	 waitForLoadingScreen(); 
	yrest(5000)
	loadPaths("returnway.xml")
end
	</waypoint>
	<!-- # 22 --><waypoint x="4067" z="1415" y="805">	</waypoint>
	<!-- # 23 --><waypoint x="4145" z="1429" y="805">	</waypoint>
	<!-- # 24 --><waypoint x="4224" z="1395" y="805">	</waypoint>
	<!-- # 25 --><waypoint x="4226" z="1272" y="805">	</waypoint>
	<!-- # 26 --><waypoint x="4227" z="1154" y="805">	</waypoint>
	<!-- # 27 --><waypoint x="4283" z="1149" y="805">	</waypoint>
	<!-- # 28 --><waypoint x="4405" z="1149" y="805">	</waypoint>
	<!-- # 29 --><waypoint x="4419" z="1273" y="843">	</waypoint>
	<!-- # 30 --><waypoint x="4419" z="1419" y="893">	</waypoint>
	<!-- # 31 --><waypoint x="4341" z="1439" y="906">	</waypoint>
	<!-- # 32 --><waypoint x="4252" z="1440" y="932">
	if inventory:itemTotalCount(0) == 0 then    
   	sendMacro("LeaveParty();");
   	 waitForLoadingScreen(); 
	yrest(5000)
	loadPaths("returnway.xml")
end
	</waypoint>
	<!-- # 33 --><waypoint x="4112" z="1482" y="932">	</waypoint>
	<!-- # 34 --><waypoint x="3984" z="1537" y="932">	</waypoint>
	<!-- # 35 --><waypoint x="3864" z="1448" y="932">	</waypoint>
	<!-- # 36 --><waypoint x="3744" z="1357" y="932">	</waypoint>
	<!-- # 37 --><waypoint x="3754" z="1193" y="932">	</waypoint>
	<!-- # 38 --><waypoint x="3818" z="1181" y="932">	</waypoint>
	<!-- # 39 --><waypoint x="3923" z="1154" y="805">	</waypoint>
	<!-- # 40 --><waypoint x="4016" z="1126" y="805">	</waypoint>
	<!-- # 41 --><waypoint x="4112" z="1045" y="679">	</waypoint>
	<!-- # 42 --><waypoint x="4169" z="996" y="679">	</waypoint>
	<!-- # 43 --><waypoint x="4162" z="918" y="679">	</waypoint>
	<!-- # 44 --><waypoint x="4030" z="915" >	</waypoint>
	<!-- # 45 --><waypoint x="4351" z="918" >	</waypoint>
	<!-- # 46 --><waypoint x="4516" z="914" >	</waypoint>
	<!-- # 47 --><waypoint x="4685" z="900" >	</waypoint>
	<!-- # 48 --><waypoint x="4703" z="825" y="679">
	if inventory:itemTotalCount(0) == 0 then    
   	sendMacro("LeaveParty();");
   	 waitForLoadingScreen(); 
	yrest(5000)
	loadPaths("returnway.xml")
end	
	</waypoint>
	<!-- # 49 --><waypoint x="4711" z="776" y="679">
	keyboardPress(key.VK_W)
	keyboardPress(key.VK_W)
	keyboardPress(key.VK_W)
	keyboardPress(key.VK_W)
	keyboardPress(key.VK_W)
	keyboardPress(key.VK_W)
	keyboardPress(key.VK_W)
	keyboardPress(key.VK_W)
	keyboardPress(key.VK_W)
	keyboardPress(key.VK_D)
	keyboardPress(key.VK_D)
	keyboardPress(key.VK_D)
	keyboardPress(key.VK_D)
	keyboardPress(key.VK_D)
	keyboardPress(key.VK_D)
	keyboardPress(key.VK_D)
	keyboardPress(key.VK_D)
	keyboardPress(key.VK_D)
	keyboardPress(key.VK_D)
	keyboardPress(key.VK_D)
	keyboardPress(key.VK_D)
	keyboardPress(key.VK_D)
	keyboardPress(key.VK_D)
	keyboardPress(key.VK_D)
	keyboardPress(key.VK_D)
	keyboardPress(key.VK_D)
	keyboardPress(key.VK_W)
	keyboardPress(key.VK_W)
	keyboardPress(key.VK_W)
	keyboardPress(key.VK_W)
	keyboardPress(key.VK_W)
	keyboardPress(key.VK_W)
	keyboardPress(key.VK_W)
	keyboardPress(key.VK_W)
	keyboardPress(key.VK_W)
	keyboardPress(key.VK_W)
	keyboardPress(key.VK_W)
	keyboardPress(key.VK_W)
	keyboardPress(key.VK_W)
	keyboardPress(key.VK_W)
		yrest(5000)
	waitForLoadingScreen(); 
    player:update();	
	</waypoint>

</waypoints>

Re: Allmost foolproof KS run

Posted: Thu Mar 01, 2012 6:27 am
by silinky
hi!

i do have a problem in my script, regarding waitforloadingscreen() i guess.

when i have multiple bots running ks, sometimes even with 1 bot, at zone changing the bot simply quits.

i made a screenshot since i was able to connect to my home pc with teamviewer. deleted the rest of info from here because i found out the problem is not related to these.

please see next post

Re: Allmost foolproof KS run

Posted: Thu Mar 01, 2012 9:04 am
by silinky
sorry for the double post, i think i found the problem.

here is the screenshot
screenie.png
so i guess the function tries to get the value when the loading screen is on, and this stops the script because it cannot get it, probably bc macros do not get run at loading screens.

can the userfunction be somehow modified to not activate when the client is waiting for loading screen?

Re: Allmost foolproof KS run

Posted: Thu Mar 01, 2012 9:06 am
by lisa
add a few seconds yrest after the waitforloadingscreen

Code: Select all

      sendMacro("LeaveParty();");
         waitForLoadingScreen(); 
yrest(3000)
         player:update();

Re: Allmost foolproof KS run

Posted: Thu Mar 01, 2012 9:12 am
by silinky
thank you mate :)

i will try it right now. hope it works

Re: Allmost foolproof KS run

Posted: Thu Mar 01, 2012 10:55 am
by Blackt3ars
Need help on this keeping getting stuck after 1 or 2 runs

and here is my wp

Edit : Thx pb solve

--=== Edited by Lisa ===--
Changed the quote tags to code tags.
Also deleted image, it had your chars name in it, I recognize the name too ;)

Re: Allmost foolproof KS run

Posted: Fri Mar 02, 2012 2:57 am
by silinky
lisa wrote:add a few seconds yrest after the waitforloadingscreen

Code: Select all

      sendMacro("LeaveParty();");
         waitForLoadingScreen(); 
yrest(3000)
         player:update();

ok, works perfectly so far :) thanks!

Re: Allmost foolproof KS run

Posted: Fri Mar 02, 2012 9:55 pm
by Blackt3ars
Problem solve as well using the same tips thx

Re: Allmost foolproof KS run

Posted: Wed Mar 14, 2012 9:24 pm
by Dimitryj
I just wondering how can I define a script in user prfile to check the target health and use purga if tharget have HP under 120k or buff and use falme agianst bosses.

if player:haveTarget() then
(if( 120000 > target.MaxHP) then
player:cast("MAGE_PURGATORY_FIRE");
elseif( 120000 > target.MaxHP ) then
player:cast("MAGE_ELEMENTAL_CATALYST");
player:cast("MAGE_ELEMENTAL_WEAKNESS");
player:cast("MAGE_FLAME");
player:cast("MAGE_FIREBALL");
player:cast("PRIEST_RISING_TIDE");
)
end

Like this, but im not sure its working. And where to put? In onSkillCast?

Re: Allmost foolproof KS run

Posted: Wed Mar 14, 2012 10:35 pm
by rock5
Dimitryj, please use [ code] tags in the future when posting code. Just use the "code" button at the top of the edit window.

You've repeated the if statement so it wont work like that and there are a couple of brackets that dont belong and a missing "end". This might work and, yes, try putting it in the onskillcast section of your profile.

Code: Select all

if player:haveTarget() then
	if( 120000 > target.MaxHP) then
		player:cast("MAGE_PURGATORY_FIRE");
	else
		player:cast("MAGE_ELEMENTAL_CATALYST");
		player:cast("MAGE_ELEMENTAL_WEAKNESS");
		player:cast("MAGE_FLAME");
		player:cast("MAGE_FIREBALL");
		player:cast("PRIEST_RISING_TIDE");
	end
end

Re: Allmost foolproof KS run

Posted: Thu Mar 15, 2012 10:12 am
by Dimitryj
Oh thanks!
:D Btw i wrote the post when I was sleepy and bearly can see anything :D

Re: Allmost foolproof KS run

Posted: Fri Mar 16, 2012 4:48 am
by Lordnika
hi all ...
i'm using this WP file for a long time now :) ..
but after lates patch..( i think ) the bot dosen't attk mobs
( is like all WP are put on RUN ...attak only if i'm attked )
i verify over and over again my profile file ...is nothing i can see rong
mob dif lvl is 50-50 ( i'm lvl 70 )... no names to attk specific targets ..
WP type are NORMAL .. no ideea !

i might miss something ..but i have no clue :/