hey raphael, I want to edit these persistents to when I'm attacked by any player, the bot will run execute the same actions it would if it were without supplies (go to dp and refill)
auto(800, 1000)
if itemcount(getuseroption('mpId', 'all')) < getuseroption('mpCheck') and $posz == 10 and $lootbodies < 1 and $battlesigned
then
setsetting("Persistent/Scripts/ForceRefillLower/Enabled","no")
settargeting("off")
gotolabel("leave lower")
end
if itemcount(getuseroption('hpId', 'all')) < getuseroption('hpCheck') and $posz == 10 and $lootbodies < 1 and $battlesigned
then
setsetting("Persistent/Scripts/ForceRefillLower/Enabled","no")
settargeting("off")
gotolabel("leave lower")
end
if $cap < getuseroption('capCheck') and $posz == 10 and $lootbodies < 1 and $battlesigned
then
setsetting("Persistent/Scripts/ForceRefillLower/Enabled","no")
settargeting("off")
gotolabel("leave lower")
end
auto(800, 1000)
if itemcount(getuseroption('mpId', 'all')) < getuseroption('mpCheck') and $posz == 9 and $lootbodies < 1 and $battlesigned
then
setsetting("Persistent/Scripts/ForceRefill/Enabled","no")
settargeting("off")
gotolabel("leave normal")
end
if itemcount(getuseroption('hpId', 'all')) < getuseroption('hpCheck') and $posz == 9 and $lootbodies < 1 and $battlesigned
then
setsetting("Persistent/Scripts/ForceRefill/Enabled","no")
settargeting("off")
gotolabel("leave normal")
end
if $cap < getuseroption('capCheck') and $posz == 9 and $lootbodies < 1 and $battlesigned
then
setsetting("Persistent/Scripts/ForceRefill/Enabled","no")
settargeting("off")
gotolabel("leave normal")
end
auto(800, 1000)
if $lootbodies == 0 and $battlesigned then
local mpId, hpId = tonumber(getuseroption('mpId')), tonumber(getuseroption('hpId'))
local mpCheck, hpCheck, capCheck = tonumber(getuseroption('mpCheck')), tonumber(getuseroption('hpCheck')), tonumber(getuseroption('capCheck'))
if itemcount(mpId) < mpCheck or itemcount(hpId) < hpCheck or $cap < capCheck or $pattacker.id ~= 0 then
if $posz == 10 then
gotolabel("leave lower")
else
gotolabel("leave normal")
end
setsetting("Persistent/Scripts/ForceRefill/Enabled", "no")
settargeting("off")
end
end
There's no need for two hotkeys, use a single one.
08-06-2014, 02:05 PM
Raphael
Quote:
Originally Posted by Phsycoze
Hi, i need an action to advertising
waatt
08-06-2014, 03:40 PM
Imba
Quote:
Originally Posted by Raphael
waatt
I think he wants to be just like one of those 1lvl spammers on rook.
08-07-2014, 08:05 PM
Simona
how can I put hotkeys for example I want sd on delete so when i press delete it will sd the target im attacking ?
08-07-2014, 10:53 PM
Raphael
Quote:
Originally Posted by Simona
how can I put hotkeys for example I want sd on delete so when i press delete it will sd the target im attacking ?
if $posz == X and local time > 4:15 and local time < 4:59 and $pzone then
logout()
it's possible?
if $posz == X and timebetween('4:15', '4:59') and $pzone then
logout()
end
08-08-2014, 11:49 PM
lele
Quote:
Originally Posted by Raphael
if $posz == X and timebetween('4:15', '4:59') and $pzone then
logout()
end
thanks bro!
08-09-2014, 03:14 PM
Phsycoze
Quote:
Originally Posted by Imba
I think he wants to be just like one of those 1lvl spammers on rook.
If u dont know, dont say anything, thanks
Quote:
Originally Posted by Raphael
waatt
Mals, estava pelo celular, eu preciso de uma action para fazer anuncios no adversting para vender house, itens, etc...
valeu
08-09-2014, 03:30 PM
Imba
Quote:
Originally Posted by Phsycoze
If u dont know, dont say anything, thanks
Mals, estava pelo celular, eu preciso de uma action para fazer anuncios no adversting para vender house, itens, etc...
valeu
I wouldnt have to guess, if you could write whats on ur mind LOL, and this is english board so write in english so i can understand it also, else 'dont say anything, thanks'
08-09-2014, 04:45 PM
chacalzito
would have some hotkey to attack vis hur?
08-09-2014, 08:07 PM
Raphael
Quote:
Originally Posted by Phsycoze
If u dont know, dont say anything, thanks
Mals, estava pelo celular, eu preciso de uma action para fazer anuncios no adversting para vender house, itens, etc...
valeu
You should try and be more polite to those who are trying to help you.
init start
-- Time between messages sent, in ms
local interval = {120000, 180000}
-- Message to be sent
local msg = 'some cool message'
init end
Also, please keep your comments in English, this is an English forum.
08-09-2014, 10:45 PM
Kejtarn
Quote:
Originally Posted by Raphael
Okey, i'll try and find a char with access to place to test it.
@Raphael I also tried your code with no success, any update on this? Would be really useful. Thanks!
Regarding your juicy root collecting code, also possible to make it move the root to loot backpack, sort of like how manas get moved to supplies bp in most scripts?
08-09-2014, 11:30 PM
Raphael
Quote:
Originally Posted by Kejtarn
@Raphael I also tried your code with no success, any update on this? Would be really useful. Thanks!
Regarding your juicy root collecting code, also possible to make it move the root to loot backpack, sort of like how manas get moved to supplies bp in most scripts?
I still haven't managed to get a char with enough level to go there, I'm afraid.
Yes, it would be possible, but first I'd need to make it work.
08-09-2014, 11:32 PM
Raphael
Quote:
Originally Posted by Kejtarn
@Raphael I also tried your code with no success, any update on this? Would be really useful. Thanks!
Regarding your juicy root collecting code, also possible to make it move the root to loot backpack, sort of like how manas get moved to supplies bp in most scripts?
Sorry, would you be kind enough to test this other version?
init start
-- local SCRIPT_VERSION = '1.0.1'
-- DO NOT EDIT BELOW THIS LINE --
local readyRootIds = {21104, 21105}
local lootId = 21291
local function findrootspots()
for x, y in screentiles(ORDER_RADIAL) do
if table.find(readyRootIds, topuseitem(x, y, $posz).id) then
return {x = x, y = y}
end
end
return nil
end
init end
auto(100)
if $lootsaround == 0 and $targetingtarget.hppc == 0 then
local bestSpot = findrootspots()
while bestSpot ~= nil do
pausewalking(6^9) -- Yeah babe!
if bestSpot ~= nil then
local lootCount = itemcount(lootId)
if itemcount(lootId) > lootCount then
increaseamountlooted(lootId, itemcount(lootId) - lootCount)
end
end
-- If starting conditions are no longer met, abort mission!
if $lootsaround ~= 0 or $targetingtarget.hppc ~= 0 then
break
end
bestSpot = findrootspots()
end
pausewalking(0) -- Orgasm.
end
08-10-2014, 12:04 AM
Kejtarn
Quote:
Originally Posted by Raphael
Sorry, would you be kind enough to test this other version?
init start
-- local SCRIPT_VERSION = '1.0.1'
-- DO NOT EDIT BELOW THIS LINE --
local readyRootIds = {21104, 21105}
local lootId = 21291
local function findrootspots()
for x, y in screentiles(ORDER_RADIAL) do
if table.find(readyRootIds, topuseitem(x, y, $posz).id) then
return {x = x, y = y}
end
end
return nil
end
init end
auto(100)
if $lootsaround == 0 and $targetingtarget.hppc == 0 then
local bestSpot = findrootspots()
while bestSpot ~= nil do
pausewalking(6^9) -- Yeah babe!
if bestSpot ~= nil then
local lootCount = itemcount(lootId)
I need a hotkey for using obsidian knife on minotaur, minotaur guard, minotaur archer and minotaur mage korpses.
I'll work on it.
08-10-2014, 06:20 PM
Leonardo
Quote:
Originally Posted by Siton
Maybe is possible to make hotkey to use rusty remover on rusty armor in dead monster 'X','X' and if armor 'x',x', put in lootbp ?
What's the problem of looting, unrust and then throw the trash away ? Anyway I think it already does that, just add the items on your looting and should be fine.
08-10-2014, 07:12 PM
Phsycoze
Hi, i need an action to take all items from floor and put on my bp.. i tryed pickupitem() but it only take one item then stop.
thanks