Initial Commit
Initial Commit [v1.01]
This commit is contained in:
59
_module/nss/tc_3template2.nss
Normal file
59
_module/nss/tc_3template2.nss
Normal file
@@ -0,0 +1,59 @@
|
||||
void main()
|
||||
{
|
||||
object oModule = GetModule();
|
||||
object oLight1 = GetNearestObjectByTag("3Light13");
|
||||
object oLight2 = GetNearestObjectByTag("3Light23");
|
||||
object oLight3 = GetNearestObjectByTag("3Light33");
|
||||
object oLight4 = GetNearestObjectByTag("3Light43");
|
||||
object oLight5 = GetNearestObjectByTag("3Light53");
|
||||
|
||||
DestroyObject(oLight1, 3.0);
|
||||
DestroyObject(oLight2, 3.0);
|
||||
DestroyObject(oLight3, 3.0);
|
||||
DestroyObject(oLight4, 3.0);
|
||||
DestroyObject(oLight5, 3.0);
|
||||
|
||||
SetLocalInt (oModule, "ThentilThree", 20);
|
||||
CreateObject(OBJECT_TYPE_PLACEABLE, "3Light23",GetLocation(GetNearestObjectByTag("ThentilZoneThree")));
|
||||
|
||||
int nDiceRoll = d100(1);
|
||||
if(nDiceRoll <= 25)
|
||||
{
|
||||
object oTarget;
|
||||
oTarget = GetObjectByTag("Thentil3Ring");
|
||||
|
||||
DestroyObject(oTarget, 0.0);
|
||||
}
|
||||
else if(nDiceRoll <= 30)
|
||||
{
|
||||
int nSubRoll = d100(1);
|
||||
if(nSubRoll <= 14)
|
||||
{
|
||||
CreateItemOnObject("EXPBOOK001", OBJECT_SELF, 1);
|
||||
}
|
||||
else if(nSubRoll <= 28)
|
||||
{
|
||||
CreateItemOnObject("EXPBOOK002", OBJECT_SELF, 1);
|
||||
}
|
||||
else if(nSubRoll <= 42)
|
||||
{
|
||||
CreateItemOnObject("EXPBOOK003", OBJECT_SELF, 1);
|
||||
}
|
||||
else if(nSubRoll <= 56)
|
||||
{
|
||||
CreateItemOnObject("EXPBOOK004", OBJECT_SELF, 1);
|
||||
}
|
||||
else if(nSubRoll <= 70)
|
||||
{
|
||||
CreateItemOnObject("EXPBOOK005", OBJECT_SELF, 1);
|
||||
}
|
||||
else if(nSubRoll <= 84)
|
||||
{
|
||||
CreateItemOnObject("EXPBOOK", OBJECT_SELF, 1);
|
||||
}
|
||||
else if(nSubRoll <= 100)
|
||||
{
|
||||
CreateItemOnObject("EXPBOOK006", OBJECT_SELF, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user