Re-uploaded instead of migrated

Re-uploaded instead of migrated.
This commit is contained in:
Jaysyn904
2024-08-03 15:05:13 -04:00
parent 53776f5b96
commit defc8f9f6d
934 changed files with 643472 additions and 0 deletions

30
_module/nss/finalloot.nss Normal file
View File

@@ -0,0 +1,30 @@
//::///////////////////////////////////////////////
/*
Spawns in alot of magical loot for evil temple altar once only
Modified by: Dalantriel Jul 2002
*/
#include "NW_O2_CONINCLUDE"
void main()
{
if (GetLocalInt(OBJECT_SELF,"NW_DO_ONCE") != 0)
{
return;
}
object oLastOpener = GetLastOpener();
GenerateHighTreasure(oLastOpener, OBJECT_SELF);
GenerateHighTreasure(oLastOpener, OBJECT_SELF);
ExecuteScript("magictres", OBJECT_SELF);
ExecuteScript("magictres", OBJECT_SELF);
ExecuteScript("magictres", OBJECT_SELF);
ExecuteScript("magictres", OBJECT_SELF);
ExecuteScript("magictres", OBJECT_SELF);
int nGoldAmount = (d100() * 8) + d10();
CreateItemOnObject ("NW_IT_GOLD001", OBJECT_SELF, nGoldAmount);
SetLocalInt(OBJECT_SELF,"NW_DO_ONCE",1);
ShoutDisturbed();
}