Log in

View Full Version : Only pickup money Above amount of cap



hans1234
10-28-2012, 08:02 PM
Like the title is telling you.
I am looking for a sort kind of instruction that wont pick up gold anymore if the cap drop below the 20.
I hope some one could help me with this
Already thanks.

steinertibia
10-29-2012, 07:24 PM
hey ^^

try that, i haven't tested it but it should work, you need to make 2 settings, one with gold in your lootlist, one without.



cap = 20 -- how much cap to stop looting gold

while true do
if (Self.Cap() >= cap) then
loadSettings("lootlistwithgold", "Looter") -- Setting with Gold in Looting
else
loadSettings("lootlistwithoutgold", "Looter") -- Setting without Gold in Looting
end
end


Hope this helps you.

Regards

hans1234
10-29-2012, 09:42 PM
Thanks, i didnt tested it actualy.
i did not test it because i can compose it with my empty vials.
If i drop empty vials below 20 cap i got enough cap for gold again.
Now the problem is how i drop the vials ?
I already searched posts but non of them worked.
Already thanks.

Spectrus
10-29-2012, 10:31 PM
You can add a one liner in your script, that will cause the bot to drop all empty vials once per loop around the spawn.



Self.DropFlasks(Self.Position().x, Self.Position().y, Self.Position().z)

hans1234
10-30-2012, 05:40 PM
You can add a one liner in your script, that will cause the bot to drop all empty vials once per loop around the spawn.



Self.DropFlasks(Self.Position().x, Self.Position().y, Self.Position().z)


Sorry but i dont understand that code. where i have to add it in my scripter ? I have to make a function or a label ?
Maybe u could make the code for me so i only have to paste it in my scripter. u can do that for me Spectrus ? Small empty vials
Already thanks.

Electrofaust
10-30-2012, 11:45 PM
Sorry but i dont understand that code. where i have to add it in my scripter ? I have to make a function or a label ?
Maybe u could make the code for me so i only have to paste it in my scripter. u can do that for me Spectrus ? Small empty vials
Already thanks.

Walker -> Add Script -> Enter dat code

Lukasz
10-31-2012, 05:04 AM
thanks for your help

Electrofaust
11-01-2012, 01:33 AM
hey ^^

try that, i haven't tested it but it should work, you need to make 2 settings, one with gold in your lootlist, one without.



cap = 20 -- how much cap to stop looting gold

while true do
if (Self.Cap() >= cap) then
loadSettings("lootlistwithgold", "Looter") -- Setting with Gold in Looting
else
loadSettings("lootlistwithoutgold", "Looter") -- Setting without Gold in Looting
end
end


Hope this helps you.

Regards

Crashed my client. Ô.o