Initial commit
Initial commit.
This commit is contained in:
20
_module/nss/use_gong.nss
Normal file
20
_module/nss/use_gong.nss
Normal file
@@ -0,0 +1,20 @@
|
||||
void main()
|
||||
{
|
||||
int iBang = GetLocalInt(OBJECT_SELF,"hasbanged");
|
||||
object oPC = GetLastUsedBy();
|
||||
PlaySound("as_cv_bell2");
|
||||
|
||||
if (iBang != 1)
|
||||
|
||||
{
|
||||
string sLevel = IntToString(GetHitDice(oPC));
|
||||
string sResref = "wm_" + sLevel;
|
||||
object oWP = GetNearestObjectByTag("wmwp");
|
||||
location lWP = GetLocation(oWP);
|
||||
FloatingTextStringOnCreature("BOOOOOONG!",oPC);
|
||||
|
||||
object oSpawn = CreateObject(OBJECT_TYPE_CREATURE,sResref,lWP);
|
||||
AssignCommand(oSpawn,ActionAttack(oPC));
|
||||
SetLocalInt(OBJECT_SELF,"hasbanged",1);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user