31 lines
738 B
Plaintext
31 lines
738 B
Plaintext
|
// HardCore Module Destruction of dropped object
|
||
|
// Archaegeo 2002 Jun 24th
|
||
|
|
||
|
// This script goes in OnUnAquireItem and destroys the Death Amulet if
|
||
|
// it is dropped on ground (ie not destroyed elsewhere). To disable,
|
||
|
// change DEATHSYSTEM to 0 in hc_death_inc
|
||
|
|
||
|
#include "rpo_inc"
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
|
||
|
object oPC=GetModuleItemLostBy();
|
||
|
object oDropped = GetModuleItemLost();
|
||
|
string sDTag=GetTag(oDropped);
|
||
|
if(GetIsObjectValid(oDropped))
|
||
|
{
|
||
|
if (sDTag=="jw_wolf_item"&&GetLocalInt(oPC,"iswolf")==1)
|
||
|
{
|
||
|
object oWolf=CreateItemOnObject("jw_wolf_item", oPC, 1);
|
||
|
|
||
|
SendMessageToPC(oPC,"OOC: Please do not try to lose that item");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
}
|