MMD_PRC8/_module/nss/use_gong.nss
Jaysyn904 adeff59f82 Initial commit
Initial commit.
2024-08-02 23:18:00 -04:00

21 lines
534 B
Plaintext

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);
}
}