SphereCommunity
Removing items on death - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Removing items on death (/Thread-Removing-items-on-death)

Pages: 1 2


Removing items on death - htid4life - 07-18-2014 10:39 PM

hey guys im after a lil script or help to remove all items on a corpse after a npc dies..

anyone know how able to script it for me ?


RE: Removing items on death - Extreme - 07-19-2014 12:25 AM

http://wiki.sphere.torfo.org/index.php/@DeathCorpse


RE: Removing items on death - htid4life - 07-19-2014 04:15 AM

so im guessing empty would not work on this lol


RE: Removing items on death - XuN - 07-19-2014 07:34 PM

Argo.empty should work.


RE: Removing items on death - Coruja - 07-20-2014 03:56 AM

you can set TAG.DeathFlags=02 on the npc, the body will automatically disappear when it die


RE: Removing items on death - htid4life - 07-20-2014 09:21 AM

yea .empty works but if i add

argo.empty
newloot=i_katana_vanq

it removes the vanq item too lol

ya coruja i didnt wanna remove the body just empty all the crappy default loot instead of going through npcs and removing there loot


RE: Removing items on death - Extreme - 07-20-2014 10:52 AM

FORCONT <ARGO>
REMOVE
ENDFOR

This should work then.


RE: Removing items on death - htid4life - 07-21-2014 03:09 AM

that works Extreme but again if i do

Code:
on=@deathcorpse
FORCONT <ARGO>
REMOVE
ENDFOR

newloot=i_katana

it also removes the katana even tho i added that after the endfor


RE: Removing items on death - Extreme - 07-21-2014 03:27 AM

(07-21-2014 03:09 AM)htid4life Wrote:  that works Extreme but again if i do

Code:
on=@deathcorpse
FORCONT <ARGO>
REMOVE
ENDFOR

newloot=i_katana

it also removes the katana even tho i added that after the endfor
ARGO.NEWLOOT I_KATANA?


RE: Removing items on death - htid4life - 07-21-2014 03:34 AM

Basiclly

Using

FORCONT <ARGO>
REMOVE
ENDFOR

works but it removes all rare loot that i add after that..heres abit of the script

Code:
on=@deathcorpse
FORCONT <ARGO>
REMOVE
ENDFOR

for 8
  if <eval {1 100}> < 33
  newloot { random_weapon 1 random_food 1 random_reagent 1 random_scroll 1 random_potion}
  endif
endfor



if (<src.magery> > 200)
NEWLOOT random_scroll,<HVAL ((<MAGERY>*2)+100)/90>
NEWLOOT random_reagent,<HVAL ((<MAGERY>*2)+100)/0>
NEWLOOT random_reagent,<HVAL ((<MAGERY>*2)+100)/90>
NEWLOOT random_reagent,<HVAL ((<MAGERY>*2)+100)/90>
IF !(<R15>)
serv.log Adding Scroll Of Reags
newloot i_scroll_bagmagic
endif
endif

if i remove the
FORCONT <ARGO>
REMOVE
ENDFOR

the loot works but with that there it dont