Alexandria Uptime: 51.42 Days
Total players online: 3

Take the Tour | Site Map

It is currently Fri May 24, 2019 11:15 pm

All times are UTC - 8 hours

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

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

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

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

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

PostPosted: Mon Nov 05, 2018 7:19 am 
User avatar

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



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

ignoreItem %corps`
--> ignoreItem %corps

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 &
Made scripts for Project 'Programmers for Alexandria' worth 50$
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

  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 12 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.