Initial commit
Adding all of the current content for Anphillia Unlimited.
This commit is contained in:
26
_module/nss/anph_altar_close.nss
Normal file
26
_module/nss/anph_altar_close.nss
Normal file
@@ -0,0 +1,26 @@
|
||||
void main ()
|
||||
{
|
||||
object oAltar = OBJECT_SELF;
|
||||
object oPC = GetLastClosedBy ();
|
||||
int nNum;
|
||||
|
||||
nNum = GetLocalInt (oAltar, "NeededNumber");
|
||||
if (nNum == 0)
|
||||
{
|
||||
nNum = Random (14 + 1);
|
||||
SetLocalInt (oAltar, "NeededNumber", nNum);
|
||||
}
|
||||
|
||||
object oItem = GetFirstItemInInventory (oAltar);
|
||||
while (GetIsObjectValid (oItem))
|
||||
{
|
||||
if (GetTag (oItem) == "NW_IT_GOLD001")
|
||||
{
|
||||
FloatingTextStringOnCreature (IntToString (nNum), oPC);
|
||||
}
|
||||
DestroyObject (oItem);
|
||||
oItem = GetNextItemInInventory (oAltar);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user