136
Scripting Chat / Re: Another Question
« on: October 26, 2013, 11:24:27 AM »
Thanks for the example lol clear as Mud Makes sense thanks for showing me how it works.
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.
set %clipper JFF
set %plant QLI_OLI_BCF_VWE_BWE_UAF_JWE_IWE_EXE_UWE_ICF_BXE_YVE_CCF_NWE_MWE_DXE_TCF_NXE_BKP_ZJP_MKP_AKP_CKP_OKP_NKP_LKP_TXE_ZBF_AIF_GWE_VWE_WTE_ZBF_BWE_BCF_CCF_SVE_IWE_MWE_YVE_REK_QVE_BFK_WTE_FWE_NXE_CYE_JDF_WWE_ISN
set %clipping KKY
finditem %clipper JFF, #BACKPACKID
if #FINDKIND = -1
{
finditem %clipper JFF , #CHARID
if #FINDKIND = -1
{
display OK No clippers found in backpack !
halt
}
}
set %clipper #FINDID
display OK Click on the container holding the plants
set #TARGCURS 1
while #TARGCURS = 1
{
}
set %secureID #LTARGETID
set #LOBJECTID %secureID
event macro 17 0
wait 2s
getmoreplant:
finditem %plant C_ , %secureID
if #FINDKIND = -1
{
display OK Completed!
halt
}
set %dragStack 1
exevent drag #FINDID %dragStack 1
exevent dropc #BACKPACKID
wait 2s
retryUseClipper:
finditem %plant C_ , #BACKPACKID
if #FINDKIND = -1
{
goto getmoreplant
}
set #LOBJECTID %clipper
set #LTARGETID #FINDID
event macro 17 0
target 2s
event macro 22 0
wait 2s
finditem %clipping C_ , #BACKPACKID
if #FINDKIND = -1
{
goto retryUseClipper
}
exevent drag #FINDID #FINDSTACK
exevent dropc %secureID
wait 2s
goto getmoreplant