Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Removing items on death
Author Message
htid4life
Journeyman
*

Posts: 163
Likes Given: 27
Likes Received: 4 in 3 posts
Joined: Mar 2012
Reputation: 2



Post: #1
Removing items on death
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 ?

[Image: htid.jpg]
07-18-2014 10:39 PM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,149
Likes Given: 220
Likes Received: 86 in 76 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #2
RE: Removing items on death

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
07-19-2014 12:25 AM
Find all posts by this user Like Post Quote this message in a reply
htid4life
Journeyman
*

Posts: 163
Likes Given: 27
Likes Received: 4 in 3 posts
Joined: Mar 2012
Reputation: 2



Post: #3
RE: Removing items on death
so im guessing empty would not work on this lol

[Image: htid.jpg]
07-19-2014 04:15 AM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 855
Likes Given: 102
Likes Received: 161 in 121 posts
Joined: Jul 2013
Reputation: 30



Post: #4
RE: Removing items on death
Argo.empty should work.
07-19-2014 07:34 PM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 815
Likes Given: 4
Likes Received: 190 in 156 posts
Joined: Jul 2012
Reputation: 6

Dimension Shard

Post: #5
RE: Removing items on death
you can set TAG.DeathFlags=02 on the npc, the body will automatically disappear when it die
07-20-2014 03:56 AM
Find all posts by this user Like Post Quote this message in a reply
htid4life
Journeyman
*

Posts: 163
Likes Given: 27
Likes Received: 4 in 3 posts
Joined: Mar 2012
Reputation: 2



Post: #6
RE: Removing items on death
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

[Image: htid.jpg]
07-20-2014 09:21 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,149
Likes Given: 220
Likes Received: 86 in 76 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #7
RE: Removing items on death
FORCONT <ARGO>
REMOVE
ENDFOR

This should work then.

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
07-20-2014 10:52 AM
Find all posts by this user Like Post Quote this message in a reply
htid4life
Journeyman
*

Posts: 163
Likes Given: 27
Likes Received: 4 in 3 posts
Joined: Mar 2012
Reputation: 2



Post: #8
RE: Removing items on death
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

[Image: htid.jpg]
07-21-2014 03:09 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,149
Likes Given: 220
Likes Received: 86 in 76 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #9
RE: Removing items on death
(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?

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
07-21-2014 03:27 AM
Find all posts by this user Like Post Quote this message in a reply
htid4life
Journeyman
*

Posts: 163
Likes Given: 27
Likes Received: 4 in 3 posts
Joined: Mar 2012
Reputation: 2



Post: #10
RE: Removing items on death
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

[Image: htid.jpg]
(This post was last modified: 07-21-2014 03:36 AM by htid4life.)
07-21-2014 03:34 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)

This forum uses Lukasz Tkacz MyBB addons.