Hi guys,
The rest of my script is done and works great, (I'll post the finished product when done for everyone to see,) I'm having one problem in the following sub though, with regards to successfully stealing gold from an NPC.
Basically I reach the safe spot to steal just fine, open the paperdoll fine, open the NPC's backpack just fine, initiate the steal skill... but it doesn't actually click the pile of gold.
The targeting cursor seems to disappear but it doesn't actually click the pile of gold or steal it. Nor does it do it on the 2 stealing re-attempts. (The re-attempts are to ensure all gold is stolen over 3 attempts... instead of just half the pile.)
Anyone have any idea what I'm doing wrong? Thanks for any thoughts! The sub in question:
sub stealGold
{
gosub useRunebook stealgold 2 %rbMisc dangerYes
wait 20
set #lobjectid %npcID
event macro 17
wait 20
finditem ZJF CA_ , #contid
set #lobjectid #findid
wait 20
event macro 17
wait 40
finditem POF C_ , #contid
set #ltargetid #findid
wait 20
event macro 13 33
wait 20
event macro 22
wait 200
finditem POF C_ , #contid
set #ltargetid #findid
wait 20
event macro 13 33
wait 20
event macro 22
wait 200
finditem POF C_ , #contid
set #ltargetid #findid
wait 20
event macro 13 33
wait 20
event macro 22
wait 200
event macro 13 21
wait 2000
return
}