Total players online: 4



Take the Tour | Site Map

It is currently Wed Nov 14, 2018 11:56 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Sun Nov 04, 2018 7:39 pm 
Offline
Novice Scripter
Novice Scripter

Joined: 12/05/2009 22:45
Posts: 67

Groups:
I'm not sure what i am not missing here but it doesn't loot or open the corps. any help would be nice.

set %items POF_RWF

mainloop:
finditem YEM
if #FINDCNT > 0
gosub loot
wait 10
goto mainloop

sub loot
if #findDist < 2
{
set #LOBJECTID #FINDID
set %corps #FINDID
event macro 17
wait 10
repeat
finditem %items
if #FINDCNT > 0
{
Exevent Drag #findid #findstack
wait 10
Exevent Dropc #backpackid
wait 10
until #FINDCNT = 0
ignoreItem %corps`
}
}
goto mainloop


Top
  Profile 
PostPosted: Mon Nov 05, 2018 7:19 am 
Offline
Administrator
Administrator
User avatar

Joined: 08/12/2003 07:28
Posts: 18943
Location: Switzerland

Hints:

#LobjectKind

NEVER goto out of a sub!
Always RETURN from it!

ignoreItem %corps`
--> ignoreItem %corps


Mainloop
...
Goto Mainloop
--> While #true {}

Your repeat .. until and the IF are intermangled...

You use fixed waits. Thats very error-prone if you have a tiny bit of lag. Better wait for #ContSize && #ContName to become the correct value.

_________________
EUO Member and postwhore since: 19th Dezember, 2002; Loosing on freeshard Alexandria since: 5th January, 2005
Searches cure for cancer since: 17th November, 2003 on GRID.org & Worldcommunitygrid.org
Made scripts for Project 'Programmers for Alexandria' worth 50$
Image
Quote "mmorning": Where would theses boards be if Orn didn't miss all the sarcasm. Man its great having him here :)
Quote "author-unknown": Good idea. I gotta start doing that too. You're a trendsetter Orn. :)
Quote "dreyfus": #true is always #true


Top
  ProfileShow poster's scripts in the public script library 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Hosted by CalWeb Internet Services, Inc.