29 lines
661 B
Plaintext
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);
|
||
|
|
||
|
}
|