Rune_PRC8/_module/nss/test_switchused.nss
Jaysyn904 d1c309ae63 Initial commit
Initial commit
2024-09-13 09:10:39 -04:00

17 lines
501 B
Plaintext

void main()
{
if(GetLocalInt(OBJECT_SELF, "BATTLE_ACTIVE"))
{
PlayAnimation(ANIMATION_PLACEABLE_DEACTIVATE);
DeleteLocalInt(OBJECT_SELF, "BATTLE_ACTIVE");
FloatingTextStringOnCreature("Battle OFF", GetLastUsedBy());
return;
}
PlayAnimation(ANIMATION_PLACEABLE_ACTIVATE);
SetLocalInt(OBJECT_SELF, "BATTLE_ACTIVE", TRUE);
SetLocalInt(OBJECT_SELF,"EAST_RANDOM",19);
SetLocalInt(OBJECT_SELF,"WEST_RANDOM",36);
FloatingTextStringOnCreature("Battle ON", GetLastUsedBy());
}