Initial upload
Initial upload. PRC8 has been added. Module compiles, PRC's default AI & treasure scripts have been integrated. Started work on top hak for SLA / Ability / Scripting modifications.
This commit is contained in:
30
_module/nss/mod_dropitem.nss
Normal file
30
_module/nss/mod_dropitem.nss
Normal file
@@ -0,0 +1,30 @@
|
||||
// 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");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user