Amon_PRC8/_module/nss/ls_aruina.nss
Jaysyn904 c5cffc37af Initial Commit
Initial Commit [v1.01]
2025-04-03 19:00:46 -04:00

45 lines
1.6 KiB
Plaintext

//:://////////////////////////////////////////////
//::// Aruina LEWT
//:://///////////////////////////////////////////
void main()
{
location lObject1 = GetLocation(GetObjectByTag("RedHandTable"));
location lObject2 = GetLocation(GetObjectByTag("RedHandChest"));
object oObject1 = GetObjectByTag("RedHandTable");
object oObject2 = GetObjectByTag("RedHandChest");
ExecuteScript("suicidethentil", oObject1);
ExecuteScript("suicidethentil", oObject2);
DestroyObject (GetObjectByTag("RedHandTable"));
DestroyObject (GetObjectByTag("RedHandTable"));
DestroyObject (GetObjectByTag("RedHandChest"));
DestroyObject (GetObjectByTag("RedHandChest"));
DestroyObject (GetObjectByTag("RedHandChest"));
CreateObject(OBJECT_TYPE_CREATURE, "dv_at_animtable", lObject1, FALSE);
CreateObject(OBJECT_TYPE_CREATURE, "dv_at_animchest", lObject1, FALSE);
CreateObject(OBJECT_TYPE_CREATURE, "dv_at_anim_flying_che", lObject1, FALSE);
CreateObject(OBJECT_TYPE_CREATURE, "dv_at_animchest", lObject1, FALSE);
CreateObject(OBJECT_TYPE_CREATURE, "dv_at_anim_flying_che", lObject2, FALSE);
CreateObject(OBJECT_TYPE_CREATURE, "dv_at_animtable", lObject2, FALSE);
CreateObject(OBJECT_TYPE_CREATURE, "dv_at_animtable", lObject2, FALSE);
ExecuteScript("uberloot", OBJECT_SELF);
int nDiceRoll = d100(1);
if(nDiceRoll <= 10)
{
CreateItemOnObject("Aruina1", OBJECT_SELF, 1);
}
else if(nDiceRoll <= 20)
{
CreateItemOnObject("Aruina2", OBJECT_SELF, 1);
}
else if(nDiceRoll <= 30)
{
CreateItemOnObject("Aruina3", OBJECT_SELF, 1);
}
ExecuteScript("prc_npc_death", OBJECT_SELF);
ExecuteScript("prc_pwondeath", OBJECT_SELF);
}