The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
auto loot, search ground for corpse?
Author Message
Sum
Apprentice
*

Posts: 40
Likes Given: 32
Likes Received: 5 in 4 posts
Joined: Feb 2016
Reputation: 0



Post: #6
RE: auto loot, search ground for corpse?
(02-25-2017 04:06 AM)zottolo Wrote:  foritems 2
if <type> == t_corpse
loot loot loot
endif
endfor

this way you can search corpses on the ground in radius of 2, if i got the question...

...but what if two players are trying to loot the same item at the same time? good luck ^_^

thanks for pointing me in the right direction zottolo Smile and thanks to everyone for your help. I got it working great now Big Grin


Code:
[plevel 1]
lootcheck


[FUNCTION lootcheck]
foritems 3
if (<type> == t_corpse )
FORCONT <uid>
CONT <src.findid.i_loot_bag>
ENDFOR
endif
endfor

I Actually found a better way this way will just dclick the corpse and work off the lootall event. this will allow you to loot corpses when other people kills are laying about Big Grin so simple yet so hard lol

[plevel 1]
lootcheck


[FUNCTION lootcheck]
foritems 3
if (<type> == t_corpse )
dclick
endif
(This post was last modified: 02-25-2017 05:29 PM by Sum.)
02-25-2017 05:08 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
auto loot, search ground for corpse? - Sum - 02-24-2017, 10:34 AM
RE: auto loot, search ground for corpse? - Sum - 02-25-2017 05:08 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)