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
Loot help
Author Message
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #11
RE: Loot help
Using this will mean that anyone hitting the npc will give him the loot, no matter if it was only one hit or if it was 4 days ago, if you want ONLY the killer (last hit done) to create this item in the corpse then use my solution, if not you can use Artyk's idea, however try to keep in mind that you'll have to remove the tag to prevent what I said ... or you can check all the attackers to do check in real time:

This will be only when the killer (last hit done) have the tag:
Code:
ON=@DeathCorpse
ref1=<attacker.last> // this will retrieve the uid of the character who last hitted this one. If you use <attacker.max> youl'll retrieve the uid of the character who damaged the most, I suggest you to read attacker in wiki for more information.
if (<ref1.tag0.loot1>)
argo.newloot i_katana
endif

This for everyone with the tag:
Code:
ON=@DeathCorpse
for 0 <eval <attacker>-1>
ref1=<attacker.<dlocal._for>.uid> // this will retrieve the uid of the attacker of the respective loop
if (<ref1.tag0.loot1>)
  argo.newloot i_katana
  break // stop the FOR
endif
endfor
02-12-2015 11:23 PM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes XuN's post
Post Reply 


Messages In This Thread
Loot help - pushim - 02-10-2015, 11:33 PM
RE: Loot help - Coruja - 02-11-2015, 12:31 AM
RE: Loot help - pushim - 02-11-2015, 12:38 AM
RE: Loot help - Extreme - 02-11-2015, 01:24 AM
RE: Loot help - pushim - 02-11-2015, 06:45 AM
RE: Loot help - Jim - 02-11-2015, 05:42 PM
RE: Loot help - Artyk - 02-11-2015, 10:45 PM
RE: Loot help - pushim - 02-12-2015, 12:23 AM
RE: Loot help - XuN - 02-12-2015, 02:19 AM
RE: Loot help - Artyk - 02-12-2015, 10:53 PM
RE: Loot help - XuN - 02-12-2015 11:23 PM
RE: Loot help - pushim - 02-13-2015, 07:44 AM
RE: Loot help - pushim - 02-19-2015, 03:52 PM
RE: Loot help - richm - 02-20-2015, 01:38 AM
RE: Loot help - pushim - 02-20-2015, 06:50 AM

Forum Jump:


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