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
pushim
Journeyman
*

Posts: 60
Likes Given: 20
Likes Received: 2 in 2 posts
Joined: Dec 2013
Reputation: 0



Post: #12
RE: Loot help
perfect, looking in the wiki can achieve understand, thanks Big Grin
02-13-2015 07:44 AM
Find all posts by this user Like Post Quote this message in a reply
pushim
Journeyman
*

Posts: 60
Likes Given: 20
Likes Received: 2 in 2 posts
Joined: Dec 2013
Reputation: 0



Post: #13
RE: Loot help
i have a problem

ON=@DeathCorpse
ref1=<attacker.last>
if (<ref1.TAG0.LOOT1>)
SAY The tag is ok
NEWLOOT i_katana
endif

i can't execute the NEWLOOT, i thought the script worked but was part of the desires line
02-19-2015 03:52 PM
Find all posts by this user Like Post Quote this message in a reply
richm
Journeyman
*

Posts: 58
Likes Given: 4
Likes Received: 4 in 3 posts
Joined: Aug 2014
Reputation: 0



Post: #14
RE: Loot help
SERV.NEWITEM i_katana
NEW.CONT=<ARGO.FINDLAYER(21).UID>

that might work? I use something similar but under the @death trigger to put loots on dead NPCs.
02-20-2015 01:38 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes richm's post
pushim
Journeyman
*

Posts: 60
Likes Given: 20
Likes Received: 2 in 2 posts
Joined: Dec 2013
Reputation: 0



Post: #15
RE: Loot help
change deathcorpse by death and it worked, thx Big Grin
02-20-2015 06:50 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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