PoA_PRC8/_module/nss/ww_modrest.nss

29 lines
661 B
Plaintext
Raw Permalink Normal View History

2022-10-07 14:20:31 -04:00
//::///////////////////////////////////////////////
//:: 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);
}