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); }