SphereCommunity
Autoloop corpse - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Requests (/Forum-Script-Requests)
+--- Thread: Autoloop corpse (/Thread-Autoloop-corpse)



Autoloop corpse - massis87 - 10-05-2017 06:15 PM

someone have an autoloot (my corpse) script for take all items in my body and put on my backpack without bugs?


RE: Autoloop corpse - darksun84 - 10-05-2017 07:44 PM

Try this:
Code:
[TYPEDEF t_corpse]
ON=@DClick
if <link> == <src>
FORCONT <uid> 0  //we don't need to search in the subcontainers, just grab them.
   bounce
ENDFOR
src.sysmessage @70 You auto-looted your corpse
endif



RE: Autoloop corpse - massis87 - 10-07-2017 03:58 PM

also loot hair and beard. but dont display in backpack. is it normal?


RE: Autoloop corpse - darksun84 - 10-07-2017 07:16 PM

It loots the beard and hair ?


RE: Autoloop corpse - massis87 - 10-08-2017 01:24 AM

[attachment=424]

one corpse is dclicked (autoloot, but loot hairs and beard xD)
on corpse isnt dclicked.


RE: Autoloop corpse - darksun84 - 10-08-2017 01:33 AM

Code:
[TYPEDEF t_corpse]
ON=@DClick
if <link> == <src>
FORCONT <uid> 0  //we don't need to search in the subcontainers, just grab them.
   if (<type> != t_hair) && (<type> != t_beard)
        bounce
    endif
ENDFOR
src.sysmessage @70 You auto-looted your corpse
endif
Should works now


RE: Autoloop corpse - massis87 - 10-09-2017 10:13 AM

yep i fix like that.
corpes keep 2 items into it.


RE: Autoloop corpse - darksun84 - 10-09-2017 08:16 PM

that's the beard and hair i think Big Grin