Initial commit
Adding all of the current content for Anphillia Unlimited.
This commit is contained in:
12
_module/nss/lel_afk.nss
Normal file
12
_module/nss/lel_afk.nss
Normal file
@@ -0,0 +1,12 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user