Hello,
i make a script for Swamp Trolls in Venore. 99% works fine.
But i have a big problem with change a medicine pouch in NPC.
Can someone help me with that?
Script is >>here<<
Hello,
i make a script for Swamp Trolls in Venore. 99% works fine.
But i have a big problem with change a medicine pouch in NPC.
Can someone help me with that?
Script is >>here<<
Last edited by Drakke; 01-10-2015 at 02:39 AM.
What exactly you need help with?
I made a script for venore swamp trolls too, and change in the pouches.
I'm guessing you can't use the belongings of a deceased or whatever the item is called?
It's not in item.xml, so you need to use the itemid for it, same with most crap items you get from it such as cape, broken piggy bank etc you also need the itemid to toss it to the ground.
Don't have the script here so can't show you my code for it ;p
@Drakke, no, opening these things is not a problem, throwing garbage too.
I have problem in looping action. As long as the medicine should be to exchange NPC will say "Sorry, you do not have"
while NPC doeas dont say ("sorry, you dont..." then
change medicine
throw garbage
move valuable loot
end
![]()
I have it something like this, to do one thing at a time, but not hard to change so everything is in one go
Lua Code:local valuables = {'names'} local trash = {most of them needs to be on id and not name} while itemcount('medicine pouch') > 0 do Say blabla Say blabla Useitem('id') end for i=1,#valuables do while itemcount(valuables[i],mainbp) > 0 do moveitems(valuables[i],lootbp,100) end end for j=1,#trash do while itemcount(trash[j]) > 0 do moveitems(trash[j],ground,100) end end
@Drakke
There is one problem with that action...
Its stops when bot does not see a medicine in opened BP. When im backing from hunt i have ~30/40 of them.
I try to make something like this...
WPT
Lua Code:local AAA = getsettings(blablabla) local BBB = AAA+0 while BBB == 0 then change medicine throw trash, etc end
Action1 - blablabla
Lua Code:0
Action2 - Stop
Lua Code:local AAA = getsettings(blablabla) local BBB = AAA+1 getnewmessage if NPC says "sorry, you dont have" then setsettings('blablabla', BBB) end
And WPT Afterall
setsettings('blablabla', '0')
but its very slow
Thx, its working very well
REP+
SOLVED!