I'm just in the middle of writing my first script and would like to add a few snippets. Why re event the wheel but I don't want to use them until I understand completely what I am using. An example is I want to make sure my backpack is open and if it is not open to open it to a set position. TM has this snippet that works perfect
gosub TM_CheckBackpack 200 200
sub TM_CheckBackpack
namespace push
namespace local CP
set !cnt %0
set !x %1
set !y %2
finditem * C_ , #BACKPACKID
if #FINDKIND = -1
{
event macro 8 7 ; open backpackid
gosub GumpAndSizeWait container_gump 230_204
if !cnt > 0
{
contpos !x !y
wait 10
}
}
namespace pop
return
Its the set !cnt %0
line. What is the value of %0? I used the search button but didn't find what I was looking for. Thanks in advance!