I don't have a great way to explain it and I am sure others can do a better job but I will give it a shot
if C in #charStatus
{
findItem NUF C_ , #backpackID
if #findKind = -1
halt
set #lobjectID #findID
set #ltargetKind 1
event macro 17 0
wait 5
}
First you always need to close, very important. Second it goes with the statement if C in #charStatus is true then the script will do what is within those then go to the next, if it is false then it will go on. it is hard for me to explain when to use them but after altering some scripts and working on your own, you will get a better feel for it.