1
Scripting Chat / Re: Execution Issues?
« on: June 08, 2011, 03:58:41 PM »
Sorry to detract from the OP, but why use #findcnt over #findkind?? if #findcnt = 0 then #findkind should always be -1?? no? That was my understanding of it. :S
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Code: [Select]Finditem %Shovels C_ , %Wherevermyshovelsare
For #Findindex 1 %ShovelsToGet
{
exevent drag #FindID
Wait 10
exevent dropc #BackpackID
Wait 10
}
For %xyz 1 %ShovelsToGet
{
Finditem %Shovels C_ , %Wherevermyshovelsare
if #kindkind = -1
{
display ok You've run out of shovels
halt
}
exevent drag #FindID #findstack
wait 10
exevent dropc #BackpackID
wait 10
}
if You_can't_ in #sysmsg
This will incorporate the new and old #sysmsg'sif You_can't_use_ in #sysmsg
{
break
}
if Target_cannot_be_seen in #sysmsg
{
break
}
if too_far in #sysmsg
{
break
}
until not_enough_wood in #sysmsg
return
for %TR_rune 1 64
{
for %TR_no 1 25
{
if %TR_x_ , %TR_rune , _ , %TR_no <> n/a
{
gosub TM_NGFS_RegisterVariables TheReapers_Log_Harvester std std TR_x_ , %TR_rune , _ , %TR_no TR_y_ , %TR_rune , _ , %TR_no TR_z_ , %TR_rune , _ , %TR_no TR_tt_ , %TR_rune , _ , %TR_no
}
}
}
gosub TM_NGFS_SaveVariables TheReapers_Log_Harvester