136 lines
3.8 KiB
Plaintext
136 lines
3.8 KiB
Plaintext
void main()
|
|
{
|
|
object oModule = GetModule();
|
|
object oLight1 = GetNearestObjectByTag("4Light14");
|
|
object oLight2 = GetNearestObjectByTag("4Light24");
|
|
object oLight3 = GetNearestObjectByTag("4Light34");
|
|
object oLight4 = GetNearestObjectByTag("4Light44");
|
|
object oLight5 = GetNearestObjectByTag("4Light54");
|
|
|
|
DestroyObject(oLight1, 3.0);
|
|
DestroyObject(oLight2, 3.0);
|
|
DestroyObject(oLight3, 3.0);
|
|
DestroyObject(oLight4, 3.0);
|
|
DestroyObject(oLight5, 3.0);
|
|
|
|
SetLocalInt (oModule, "ThentilFour", 20);
|
|
CreateObject(OBJECT_TYPE_PLACEABLE, "4Light24",GetLocation(GetNearestObjectByTag("ThentilZoneFour")));
|
|
|
|
int nMasterRoll = d100(1);
|
|
if(nMasterRoll <= 5)
|
|
{
|
|
int nDiceRoll = d100(1);
|
|
if(nDiceRoll <= 3)
|
|
{
|
|
CreateItemOnObject("morfiantbastard", OBJECT_SELF, 1);
|
|
}
|
|
else if(nDiceRoll <= 6)
|
|
{
|
|
CreateItemOnObject("morphiantdouble", OBJECT_SELF, 1);
|
|
}
|
|
else if(nDiceRoll <= 9)
|
|
{
|
|
CreateItemOnObject("morphiantheavy", OBJECT_SELF, 1);
|
|
}
|
|
else if(nDiceRoll <= 12)
|
|
{
|
|
CreateItemOnObject("morphiantlhammer", OBJECT_SELF, 1);
|
|
}
|
|
else if(nDiceRoll <= 15)
|
|
{
|
|
CreateItemOnObject("morphiantrapier", OBJECT_SELF, 1);
|
|
}
|
|
else if(nDiceRoll <= 18)
|
|
{
|
|
CreateItemOnObject("morphianttwobl", OBJECT_SELF, 1);
|
|
}
|
|
else if(nDiceRoll <= 21)
|
|
{
|
|
CreateItemOnObject("morfiantbattlea", OBJECT_SELF, 1);
|
|
}
|
|
else if(nDiceRoll <= 24)
|
|
{
|
|
CreateItemOnObject("morphiantgreat", OBJECT_SELF, 1);
|
|
}
|
|
else if(nDiceRoll <= 27)
|
|
{
|
|
CreateItemOnObject("morphiantkama", OBJECT_SELF, 1);
|
|
}
|
|
else if(nDiceRoll <= 30)
|
|
{
|
|
CreateItemOnObject("morphiantlongsw", OBJECT_SELF, 1);
|
|
}
|
|
else if(nDiceRoll <= 33)
|
|
{
|
|
CreateItemOnObject("morphiantscimit", OBJECT_SELF, 1);
|
|
}
|
|
else if(nDiceRoll <= 36)
|
|
{
|
|
CreateItemOnObject("morphiantwarham", OBJECT_SELF, 1);
|
|
}
|
|
else if(nDiceRoll <= 39)
|
|
{
|
|
CreateItemOnObject("morfiantclub", OBJECT_SELF, 1);
|
|
}
|
|
else if(nDiceRoll <= 42)
|
|
{
|
|
CreateItemOnObject("morphiantgreats", OBJECT_SELF, 1);
|
|
}
|
|
else if(nDiceRoll <= 45)
|
|
{
|
|
CreateItemOnObject("morphiantkatana", OBJECT_SELF, 1);
|
|
}
|
|
else if(nDiceRoll <= 48)
|
|
{
|
|
CreateItemOnObject("morphiantmace", OBJECT_SELF, 1);
|
|
}
|
|
else if(nDiceRoll <= 51)
|
|
{
|
|
CreateItemOnObject("morphiantshort", OBJECT_SELF, 1);
|
|
}
|
|
else if(nDiceRoll <= 54)
|
|
{
|
|
CreateItemOnObject("morfiantdagger", OBJECT_SELF, 1);
|
|
}
|
|
else if(nDiceRoll <= 57)
|
|
{
|
|
CreateItemOnObject("morphianthalberd", OBJECT_SELF, 1);
|
|
}
|
|
else if(nDiceRoll <= 60)
|
|
{
|
|
CreateItemOnObject("morphiantkukri", OBJECT_SELF, 1);
|
|
}
|
|
else if(nDiceRoll <= 63)
|
|
{
|
|
CreateItemOnObject("morphiantmornin", OBJECT_SELF, 1);
|
|
}
|
|
else if(nDiceRoll <= 66)
|
|
{
|
|
CreateItemOnObject("morphiantsickle", OBJECT_SELF, 1);
|
|
}
|
|
else if(nDiceRoll <= 69)
|
|
{
|
|
CreateItemOnObject("morphiantdirem", OBJECT_SELF, 1);
|
|
}
|
|
else if(nDiceRoll <= 72)
|
|
{
|
|
CreateItemOnObject("morphianthanda", OBJECT_SELF, 1);
|
|
}
|
|
else if(nDiceRoll <= 75)
|
|
{
|
|
CreateItemOnObject("morphiantlight", OBJECT_SELF, 1);
|
|
}
|
|
else if(nDiceRoll <= 78)
|
|
{
|
|
CreateItemOnObject("morphiantquarte", OBJECT_SELF, 1);
|
|
}
|
|
else if(nDiceRoll <= 81)
|
|
{
|
|
CreateItemOnObject("morphiantspear", OBJECT_SELF, 1);
|
|
}
|
|
else if(nDiceRoll = 85)
|
|
{
|
|
CreateItemOnObject("morphiantdwarfax", OBJECT_SELF, 1);
|
|
}
|
|
} }
|