Page 1 of 2

This is an another KS farming script, just use

Posted: Wed Dec 05, 2012 5:38 am
by Mer-Ki-Vah
This is an another KS farming script,........... just use................ .

And pls help me to test (Rock5, Lisa ) this KS script.
1.To optimize KS script
2.To optimize this routin: ItemMoveToBank()
3.The main problem: for lagg reason they loots is not normally, 2 - 3 hours after starting to Miss!
-- It Startable anywhere from Logar house to KS insta
-- Your character is crafting from housekeepers in your house , and after go out
-- The important items moving to magicbox (transmutor), and the unimportant items are deleting
-- (You can setup here what is important or unimportant : -bagToMagicbox() -bagDeleting() )
-- Logar - Varanas - Honor certificate - DIA buying - Obsidian - Karzak camp - Altchar. inv - KS farm
-- It working with this options: -Heal -Repair -Ress -Sell -Potion control -Unstick -Backpack full control
-- If you use Magic Perfume than it autocall your Pet

Test for everyone who is interested.

Re: This is an another KS farming script, just use

Posted: Wed Dec 05, 2012 9:57 am
by rock5
Sorry, there is a bug when moving to the bank. It is fixed in the RC version so will be fixed in the next committed revision. It's probably about time I commit it. It's been pretty stable.

Re: This is an another KS farming script, just use

Posted: Wed Dec 05, 2012 10:44 am
by Mer-Ki-Vah
No no no, you misunderstood.

I write this routin, andit works well, but it isn't fast enough.

Code: Select all

function ItemMoveToBank()
	local bankID = charAttrGet("Bank");						--every characters are different gives back bankId= 32
	if bankID==0 then return end;
	local Bank 		= math.floor (bankID/10)				--(first usable branch Bank)
	local branchBank 	= (bankID-math.floor(bankID/10)*10)              --(a-math.floor(a/b)*b) numbers of branch Bank
	local bankSlots	= branchBank*40				  		--(*40  in branch are 40 slot) number of slots
	RoMScript('OpenBank()');
	RoMScript('ShowUIPanel(BagFrame)');
	RoMScript('ShowUIPanel(BankFrame)');
    local startslot = 240;
    local finishslot =240-bankSlots;		
	printf("\n  bankID=  %s  \n ",bankID);
	printf("\n  First branch bank number=  %s  Branch Bank= %s Bank slots numbers= %s \n ", Bank,branchBank,bankSlots);
	printf("\n  START=  %s  Finish= %s \n ", startslot,finishslot);
	local i = startslot
	local MaxCella  =0
	local _Bank = "bank"..tostring(Bank)					-- first bank name E.g..:"bank2"
	local bankIndex = (Bank+branchBank-1)*40				-- last usable bank slot, is it full ?
	local tele = bankFull()
	if tele then printf("\n  The Bank are FULL \n "); end
	local k = bankIndex
	if not tele then
		printf("\n  I am moving in the bank \n ");
		printf("\n  START.. ");
		local allapot = i
		repeat
			local item = inventory.BagSlot[i];
			if i ==allapot-math.floor (bankSlots/10) then
				allapot = i;
				printf(".. ");
			elseif i==finishslot+1 then
				printf("FULL \n")
			end
			if ((not item.Empty) and item.Available) then
				item:pickup();
				RoMScript("PickupBankItem("..k..")");
				k=k-1;
				i=i-1;
			end;
		until  (i==finishslot)
	end;
	sendMacro("CloseBank()");
	sendMacro("CloseAllWindows()");
    	if not sendMacro('BagFrame:IsVisible()') then
		RoMScript("BagFrame:Show()");          
	end
end

Re: This is an another KS farming script, just use

Posted: Wed Dec 05, 2012 11:15 am
by rock5
Please don't forget to use [ code] tags.

That's a very long function. I'm not sure of everything it is doing or how long it is taking. You could time different parts of it to see what is taking too long and fix it but why aren't you using the item:moveTo("bank") function. That should be fast enough.

Re: This is an another KS farming script, just use

Posted: Wed Dec 05, 2012 12:21 pm
by Mer-Ki-Vah
Why not using?
Becouse when i see the item:moveTo("bank") function, not used bank1..bank2 ...bank6 option, and moving back to the bags not good than.
Now i testing, and use its right.
But item:moveTo("bank") not fasted.

Thx

Re: This is an another KS farming script, just use

Posted: Wed Dec 05, 2012 1:15 pm
by rock5
Why do you need to put things in a certain bank page?

BTW I ran a little test to see how fast my method is. I moved 30 items to the bank and then back again and timed it.

Code: Select all

Command> st = os.clock() for i = 1,30 do inventory.BagSlot[i+60]:moveTo("bank")
end print(os.clock() - st)
7.7930000000006
Command> st = os.clock() for i = 1,30 do bank.BagSlot[i]:moveTo("bags") end prin
t(os.clock() - st)
7.4099999999999
So about 7.5s. That's with the 'fixed' bank class. Rev 744 wouldn't work properly like this.

Re: This is an another KS farming script, just use

Posted: Fri Dec 07, 2012 4:38 am
by Budzer
I have a question how much difference G/h there is with and without moving to bank option? Some time ago I thought about it, but paying 60d (180days) for rental seems too much (especially with current diamond prices). It is of course nice to have extra space, but difference (G/h) between 180 and 220 slots is obviously lower than 22%.

EDIT: Made some calculations. If moving 30 items takes 7,5s, than 80 items would take 20s. x2 it is 40s. + additional 10s for selling. My full buff char makes one loop in 6,5min 4:10 inside KS and 2:20 outside (full 180 slots). So additional 80 slots means 1:51 more time inside (probably more, as after first frogs drop/time falls) and 50s for moving items+selling, so in total 2:40 extra time. So without bank option it will be 2,16s/slot, with bank option 2,115s, so 2,12% increase in full buff mode, afterwards there will be lower gain or even decrease in performance. At current dias prices on my serv (only full buff time) it will take 491h to reach break-even. So if you don't have extra zodiac pets to maintain full buff (well partly) for whole 6h of HPt it is not worth it. If you have it's not worth bothering.

Re: This is an another KS farming script, just use

Posted: Wed Dec 12, 2012 1:17 am
by Mer-Ki-Vah
Well if you use bank than was about 30% + gold for me.
Produced gold my characters ~ 18-24kk/8 hours, with 2 honor.

Re: This is an another KS farming script, just use

Posted: Wed Dec 12, 2012 1:18 am
by Mer-Ki-Vah
Sry 18-24kk/12 hours :))))... this right.

Re: This is an another KS farming script, just use

Posted: Wed Dec 12, 2012 2:15 am
by lisa
Mer-Ki-Vah wrote:Sry 18-24kk/12 hours :))))... this right.
18-24 is a big variation, any idea why there is such a big difference from minimum to maximum ?

My mage sits at 1-1.2 KK/1H so that's 12-14.4kk/12H ?
Figures are usually the same even after 15 hours.

I don't usually have much deviation in my chars, they are usually running at around the same G/H to the last time (day) they did a run.

Or are your figures a calculation and not actual results?

Re: This is an another KS farming script, just use

Posted: Wed Dec 12, 2012 2:47 am
by Mer-Ki-Vah
Hey !
My calculation is right.Not need calculation. I start the bot 8AM -20PM, and its the profit.

1. S/R ( 3* loot rune + other drop ratings)
2. M/P ( 1* loot rune but the skill Purga very good)
3. K/S ( 2* loot rune but the skill Whirlwind shield very good)
4. Ch/R ( 2* loot rune and sry this char kill one by one)

Running combination of these characters 8 piece.

Re: This is an another KS farming script, just use

Posted: Wed Dec 12, 2012 2:58 am
by lisa
Mer-Ki-Vah wrote:2. M/P ( 1* loot rune but the skill Purga very good)
try with it set to use thunderstorm, works great.
I have it with thunderstorm set at 2 mobs.

Code: Select all

	<skills_mage>
		<skill name="MAGE_LIGHTNING"         		hotkey="MACRO" priority="80" />
		<skill name="PRIEST_RISING_TIDE"     		hotkey="MACRO" priority="80" />
		<skill name="MAGE_PLASMA_ARROW"       		hotkey="MACRO" priority="80" />	
		<skill name="MAGE_PURGATORY_FIRE"    		hotkey="MACRO" priority="100" />
		<skill name="MAGE_THUNDERSTORM"             hotkey="MACRO" priority="100" inbattle="false" mobcount="2"/>		
		<skill name="MAGE_ESSENCE_OF_MAGIC" 	  	hotkey="MACRO" priority="30" />
		<skill name="PRIEST_URGENT_HEAL"   	  		hotkey="MACRO" priority="100" hpper="60"  />
		<skill name="PRIEST_REGENERATE"    	  		hotkey="MACRO" priority="100" hpper="80" />		
		<skill name="MAGE_ENERGY_INFLUX" 	  		hotkey="MACRO" priority="30" inbattle="true" />
		<skill name="MAGE_ENERGY_WELL" 		  		hotkey="MACRO" priority="30" inbattle="true" />
		<skill name="PRIEST_HOLY_AURA"     	  		hotkey="MACRO" priority="100" inbattle="true" hpper="24" />
		<skill name="MAGE_ELEMENTAL_CATALYST" 	  	hotkey="MACRO" priority="30" inbattle="true" />	
		<skill name="PRIEST_MAGIC_BARRIER" 			hotkey="MACRO" priority="20" rebuffcut="60" inbattle="false" />
		<skill name="MAGE_FLAME"              	  	hotkey="MACRO" priority="60" />
		<skill name="MAGE_FIREBALL"        	  		hotkey="MACRO" priority="70" />
	</skills_mage>

Re: This is an another KS farming script, just use

Posted: Wed Dec 12, 2012 3:34 am
by Budzer
Mer-Ki-Vah wrote:Sry 18-24kk/12 hours :))))... this right.

So you are having 24M in 12h. What is extremely good. OK in first 6h I can get up to 20M, but later... that is other thing. Didn't make such calculations, but suppose I would get avg. 20M/12h. Still not sure if gain is from using bank, but I would probably test it, if I get some time to work with my script.

Re: This is an another KS farming script, just use

Posted: Wed Dec 12, 2012 3:40 am
by lisa
So you move items to your bank during the run and then when at merchant you move items back to bag for selling to vendor?
So some sort of portable bank access?

I don't have any loot runes, just honor party and housemaid luck pot.

Re: This is an another KS farming script, just use

Posted: Wed Dec 12, 2012 4:29 am
by Mer-Ki-Vah
Well in this script all is working for me. As I wrote in the title, just use if you are interested in.
With more use, even for perfecting the script.
If you download all the information in front of you KS.xml file. Good luck :)

Re: This is an another KS farming script, just use

Posted: Wed Dec 12, 2012 9:52 pm
by vo2male
I would test this today after work and see for myself ^_^
looks nice and organized...i hope i could run this flawlessly like how the author runs it..

Im planning to test this on my 1 and only KS Farmer.
Got few questions though, i can't quite understand what you mean.
1. How do i setup this?

Code: Select all

charAttrTable ={
[1] = {Bank=33,Pet=2,usableSlot=4,pName="Main1",			AltName="Alt1"},
			[2] = {Bank=23,Pet=2,usableSlot=2,pName="Main2",			AltName="Alt2"},
			[3] = {Bank=22,Pet=1,usableSlot=3,pName="Main3",			AltName="Alt3"},
			[4] = {Bank=22,Pet=2,usableSlot=2,pName="Main4",			AltName="Alt4"},
			[5] = {Bank=00,Pet=2,usableSlot=5,pName="Main5",			AltName="Alt5"},
			[6] = {Bank=00,Pet=1,usableSlot=2,pName="Main6",			AltName="Alt6"},
			[7] = {Bank=00,Pet=2,usableSlot=1,pName="Main7",			AltName="Alt7"},
			[8] = {Bank=00,Pet=0,usableSlot=7,pName="Main8",			AltName="Alt8"},
			[9] = {Bank=00,Pet=1,usableSlot=3,pName="Main9",			AltName="Alt9"},
			
			[10] ={Bank=00,Pet=0,usableSlot=3,pName="MainCharOther02",		AltName=""},
			[11] ={Bank=00,Pet=0,usableSlot=3,pName="MainCharOther03",		AltName=""},
			[12] ={Bank=00,Pet=0,usableSlot=3,pName="MainCharOther04",		AltName=""},
			[13] ={Bank=00,Pet=0,usableSlot=3,pName="MainCharOther05",		AltName=""},
			[14] ={Bank=00,Pet=0,usableSlot=3,pName="MainCharOther06",		AltName=""}
			}
			
Alt1= the name of the person i would invite?
pName= my KS Farmer character?
so if i only have 1 farmer id just ignore the other lines right?
2. also

Code: Select all

myKill()
3. Does 3 times LootX stack? i mean if i have 3 of them on 3 HD armors it means i have + 360% drop rate?

4. How much G/Hr will i gain if i only have 1 KS Farmer?
My M/P is lvl60/50 with 28K Hp and 1 hitting every mob (except Boss) in KS
i also have 3x Loot X runes

Edit***
i think im right on number 1.. just couldn't test it yet cause im at work now..
on number 2 i guess its my DIYCE? how about if i wont be using diyce and just use the skills listed in my profile? can i just ignore this?

Re: This is an another KS farming script, just use

Posted: Wed Dec 12, 2012 10:05 pm
by lisa
vo2male wrote:3. Does 3 times LootX stack? i mean if i have 3 of them on 3 HD armors it means i have + 360% drop rate?
loot runes are weapons only, so to have 3 loot runes you need to be able to equip 3 weapons at one time, S/R, R/S, that sort of combination and yes they stack.

Re: This is an another KS farming script, just use

Posted: Thu Dec 13, 2012 1:23 am
by vo2male
uhm.. where can i download the ROM streamline addon?? i searched in Curse Client and google but fail.. can someone pls upload it here? thanks a lot!


EDIT***
so there i could not test it because i dont have the StramLine Addon... and found that the project was abandoned :(

UPDATE**
Incorporated the worldtraveller userfunction instead and now testing :)

Re: This is an another KS farming script, just use

Posted: Thu Dec 13, 2012 2:26 am
by vo2male
Hmm strange..
im always rerunning this part

Code: Select all

 I'm IN.
Party member 1 has the name of *****
Use MACRO: PRIEST_URGENT_HEAL  =>  ***** (22845/27310)
Use MACRO: PRIEST_REGENERATE   =>   ***** (27310/27310)
Clearing target.
Moving to waypoint #26, (4706, 896)
We changed the option 'QUICK_TURN' from 'true' to 'true'.
We changed the option 'MAX_TARGET_DIST' from '200' to '50'.
Speed set to how you like it, fast.
Moving to waypoint #27, (4710, 901)
Moving to waypoint #28, (4687, 910)
Moving to waypoint #29, (4565, 911)
Use MACRO: MAGE_PURGATORY_FIRE =>   <UNKNOWN> (1000/1000)
   Loot distance = 53     -------   Loot name= Ousul Salamander
Player Teleported to X: 4503    Z: 932
Clearing target.
Picking up sigil "Healing Sigil"
   Loot distance = 76     -------   Loot name= Ousul Poison Frog
Player Teleported to X: 4560    Z: 939
Clearing target.
   Loot distance = 15     -------   Loot name= Ousul Salamander
Player Teleported to X: 4578    Z: 916
Clearing target.
Speed set to how you like it, normal.
Clearing target.
Use MACRO: Executing RoMScript "LeaveParty()".
Player address changed: 0x49A31900
Ranged skill found: MAGE_THUNDERSTORM
This script always shows after i just went in KS and start killing mobs near the portal.. and then it will leave party...run to KS again -->leave party at this point and run to KS again...

This is the whole print

Code: Select all

RoM windows size is 898x686, upper left corner at 445,30
Loading profile ****.xml
Testing 'ingamefunctions' macro. If it gets stuck here, please update the 'inga
efunctions' by copying the 'ingamefunctions' folder from 'rom/devtools' to the
ames 'interface/addons' folder.
MACRO Test: ok
Ranged skill found: MAGE_THUNDERSTORM
[DEBUG] CPU Frequency 2864.58
Waypoint files from C:/micromacro/scripts/ks:
  0: wander                  7: 1-10Pi../l3-4_bear_re  14: 1-10Pi../l7t_7-9_boa
  1: 1-10Pi../l10t_classha   8: 1-10Pi../l3t_3-4_bear  15: 1-10Pi../l9-10_bugs.
  2: 1-10Pi../l10t_postbox   9: 1-10Pi../l4t_5-7_beet  16: 1-10Pi../l9-10_bugs_
  3: 1-10Pi../l1t_start.xm  10: 1-10Pi../l4t_logar.xm  17: 1-10Pi../l9t_9-10_bu
  4: 1-10Pi../l2-3_wolf.xm  11: 1-10Pi../l5-7_beetle.  18: CommandLine.xml
  5: 1-10Pi../l2-3_wolf_re  12: 1-10Pi../l7-9_boar.xm  19: KS.xml
  6: 1-10Pi../l3-4_bear.xm  13: 1-10Pi../l7-9_boar_re  20: KS2.xml
  7: 1-10Pi../l3-4_bear_re  14: 1-10Pi../l7t_7-9_boar
Enter the number of the path you want to use and press Enter > 20
You chose 20
Loaded waypoint path KS2.xml
No return path with default naming KS2_return.xml found.
We use the normal waypoint path KS2.xml now.
Waypoint #181 is closer then #1. Hence we start with waypoint #181.
GM detection started


 KS farming START .......jiiihaaaa

Speed set to how you like it, normal.
We changed the option 'INV_AUTOSELL_FROMSLOT' from '1' to '4'.
We changed the option 'TARGET_LEVELDIF_BELOW' from '10' to '32'.
We changed the option 'AUTO_ELITE_FACTOR' from '5' to '2500'.
We changed the option 'MAX_TARGET_DIST' from '225' to '200'.
We changed the option 'COMBAT_DISTANCE' from '200' to '200'.
We changed the option 'LOOT_IN_COMBAT' from 'true' to 'true'.
We changed the option 'LOOT_DISTANCE' from '300' to '150'.
We changed the option 'LOOT_ALL' from 'true' to 'true'.
Use MACRO: Executing RoMScript "BagFrame:IsVisible()".
Moving to waypoint #181, (-15134, 11548)
Forced waypoint type 'TRAVEL' set by user.
Speed set to how you like it, normal.

Megyek kipakolok,eladom a cuccost.
Clearing target.
Moving to waypoint #182, (-15457, 11649)
Moving to waypoint #183, (-15840, 11742)
Moving to waypoint #184, (-16147, 11816)
Moving to waypoint #185, (-16413, 11881)
Moving to waypoint #186, (-16615, 11687)
Moving to waypoint #187, (-16603, 11485)
Moving to waypoint #188, (-16629, 11343)
We changed the option 'INV_AUTOSELL_TOSLOT' from '180' to '180'.
We changed the option 'INV_AUTOSELL_QUALITY' from 'white,green,blue,purple' to
white,green,blue,purple'.
We changed the option 'INV_AUTOSELL_ENABLE' from 'true' to 'true'.
We changed the option 'INV_AUTOSELL_IGNORE' from 'Monster Cards,Rare Magic Ston
,Herb of Hope' to 'Moa'.
Use MACRO: Executing RoMScript "BagFrame:IsVisible()".
We try to find NPC Pancer:
We successfully target NPC Pancer and try to open the dialog window.

  The Bank is empty

  A bank void
 We try to find NPC Pancer:
We successfully target NPC Pancer and try to open the dialog window.
Clearing target.
Moving to waypoint #1, (-16643, 11386)
Forced waypoint type 'TRAVEL' set by user.
I 'm   S T A R T I N G

 I invited altChar : ****
Moving to waypoint #2, (-16727, 11273)
Moving to waypoint #3, (-16852, 11253)
Moving to waypoint #4, (-17059, 11342)
Moving to waypoint #5, (-17160, 11075)
Moving to waypoint #6, (-17113, 10728)
Moving to waypoint #7, (-17050, 10311)
Moving to waypoint #8, (-16996, 9847)
Moving to waypoint #9, (-17122, 9885)
Moving to waypoint #10, (-17221, 9952)
Moving to waypoint #11, (-17354, 10046)
Moving to waypoint #12, (-17533, 10252)
Moving to waypoint #13, (-17643, 10451)
Moving to waypoint #14, (-17763, 10608)
Moving to waypoint #15, (-17938, 10602)
Moving to waypoint #16, (-18137, 10768)
Moving to waypoint #17, (-18306, 11069)
Moving to waypoint #18, (-18352, 11271)
Moving to waypoint #19, (-18413, 11538)
Moving to waypoint #20, (-18474, 11791)
Moving to waypoint #21, (-18523, 12053)
Moving to waypoint #22, (-18553, 12320)
Moving to waypoint #23, (-18566, 12457)
Moving to waypoint #24, (-18554, 12504)
Player address changed: 0x4E4C5F00
Ranged skill found: MAGE_THUNDERSTORM
Ez  KS ... zonaid = 107
Moving to waypoint #25, (4712, 847)

 I'm IN.
Party member 1 has the name of ****
Use MACRO: PRIEST_URGENT_HEAL  =>   **** (22845/27310)
Use MACRO: PRIEST_REGENERATE   =>   **** (27310/27310)
Clearing target.
Moving to waypoint #26, (4706, 896)
We changed the option 'QUICK_TURN' from 'true' to 'true'.
We changed the option 'MAX_TARGET_DIST' from '200' to '50'.
Speed set to how you like it, fast.
Moving to waypoint #27, (4710, 901)
Moving to waypoint #28, (4687, 910)
Moving to waypoint #29, (4565, 911)
Use MACRO: MAGE_PURGATORY_FIRE =>   <UNKNOWN> (1000/1000)
   Loot distance = 53     -------   Loot name= Ousul Salamander
Player Teleported to X: 4503    Z: 932
Clearing target.
Picking up sigil "Healing Sigil"
   Loot distance = 76     -------   Loot name= Ousul Poison Frog
Player Teleported to X: 4560    Z: 939
Clearing target.
   Loot distance = 15     -------   Loot name= Ousul Salamander
Player Teleported to X: 4578    Z: 916
Clearing target.
Speed set to how you like it, normal.
Clearing target.
Use MACRO: Executing RoMScript "LeaveParty()".
Player address changed: 0x49A31900
Ranged skill found: MAGE_THUNDERSTORM
Paused. (Delete) to continue, (CTRL+L) exit to shell, (CTRL+C) quit

Re: This is an another KS farming script, just use

Posted: Thu Dec 13, 2012 3:19 am
by rock5
vo2male wrote:EDIT***
so there i could not test it because i dont have the StramLine Addon... and found that the project was abandoned :(
Most, if not all, of the most popular all time favorite addons that are still very much used today, are marked as abandoned. It's silly really. If you search with Google on the curseforge site, not the curse site, you'll find it.
"streamline site:curseforge.com".