![]() |
auto loot, search ground for corpse? - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: auto loot, search ground for corpse? (/Thread-auto-loot-search-ground-for-corpse) |
auto loot, search ground for corpse? - Sum - 02-24-2017 10:34 AM Hello all, I have a auto loot script which is working just fine. My players are asking for a command to auto loot off a corpse on the ground. I have not been able to achieve this as i use the @itemdclick for loot all and @kill for loot gold . I can't find anyway at all to search for a corpse on the ground. Is this even possible? Here is what i have for my script now for my loot system : using version 56d nightly Code: /////////////Auto loot system by Admin Oric 2017 Spawn of Sosaria//////// RE: auto loot, search ground for corpse? - zottolo - 02-25-2017 04:06 AM 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 ^_^ RE: auto loot, search ground for corpse? - Catalan_mistral - 02-25-2017 04:10 AM Think he wants to kill an npc and the corpse is automatically looted without having to actually click the corpse. RE: auto loot, search ground for corpse? - Sum - 02-25-2017 05:17 AM (02-25-2017 04:10 AM)Catalan_mistral Wrote: Think he wants to kill an npc and the corpse is automatically looted without having to actually click the corpse. what Catalan said.I dont want them to have to dclick, i honestly dont see why they cant just dclick like the good old days lol.I use more2 to id the killer so no one else can loot the corpse. but i will try what you have suggested Zotolo and thanks you both for your replies ![]() RE: auto loot, search ground for corpse? - Criminal - 02-25-2017 07:29 AM you can try something like @kill if <isevent.e_lootall> for 0 <eval <argo.rescount>-1> try uid.<findcont.<eval <argo.rescount>-1>.uid>.cont=<uid> endfor RE: auto loot, search ground for corpse? - Sum - 02-25-2017 05:08 PM (02-25-2017 04:06 AM)zottolo Wrote: foritems 2 thanks for pointing me in the right direction zottolo ![]() ![]() Code: [plevel 1] 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 ![]() [plevel 1] lootcheck [FUNCTION lootcheck] foritems 3 if (<type> == t_corpse ) dclick endif RE: auto loot, search ground for corpse? - zottolo - 02-25-2017 11:31 PM Its my pleasure! RE: auto loot, search ground for corpse? - Artyk - 02-27-2017 12:07 AM If the point is to automatically give all the loot to the killer, maybe you can place a function under @DeathCorpse When an npc dies and leave a corpse, bounce all the loot to the killer ![]() |