Files
Anphillia_PRC8/_module/nss/lel_afk.nss
Jaysyn904 28cdb617b3 Initial commit
Adding all of the current content for Anphillia Unlimited.
2024-01-04 07:49:38 -05:00

13 lines
571 B
Plaintext

void main()
{
object player = GetPCSpeaker();
AssignCommand(player, ActionPlayAnimation(ANIMATION_LOOPING_SIT_CROSS));
object butterflies = CreateObject(OBJECT_TYPE_PLACEABLE, "afkbutterflies", Location(GetArea(player),Vector(GetPosition(player).x, GetPosition(player).y, GetPosition(player).z+0.8), 0.0) , TRUE);
SetCommandable(FALSE, player);
if(!GetIsObjectValid(butterflies))
SpeakString("cannot create butterflies", TALKVOLUME_SHOUT);
SetLocalObject(player, "afk_butterflies", butterflies);
SetLocalInt(player, "isAFK", TRUE);
}