PoA_PRC8/module/nss/ww_modrest.nss
Jaysyn904 128e7e59a4 Initial upload
Initial upload
2022-10-07 14:20:31 -04:00

29 lines
661 B
Plaintext

//::///////////////////////////////////////////////
//:: EMOTE ON REST
//:: onRest
//:://////////////////////////////////////////////
/*
from the rest, calls the emote wand script/conv
unless trying to rest, then rests.
*/
//:://////////////////////////////////////////////
//:: Created By: bloodsong
//:://////////////////////////////////////////////
void main()
{
object oPlayer = GetLastPCRested();
if(GetLocalInt(oPlayer, "REST"))
{ return; } //-- really resting
//-- not resting, pressing rest/emote
AssignCommand(oPlayer, ClearAllActions()); //--cancels rest
ExecuteScript("itm_emotewand", oPlayer);
}