mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
Scripts for running the various commands/npcs (done so far) are pushed.
This commit is contained in:
24
scripts/commands/EmoteSitCommand.lua
Normal file
24
scripts/commands/EmoteSitCommand.lua
Normal file
@@ -0,0 +1,24 @@
|
||||
--[[
|
||||
|
||||
EmoteSitCommand Script
|
||||
|
||||
--]]
|
||||
|
||||
function onEventStarted(player, actor, emoteId)
|
||||
|
||||
if (player:getState() == 0) then
|
||||
if (emoteId == 0x2712) then
|
||||
player:changeState(11);
|
||||
else
|
||||
player:changeState(13);
|
||||
end
|
||||
else
|
||||
player:changeState(0);
|
||||
end
|
||||
|
||||
player:endEvent();
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
end
|
Reference in New Issue
Block a user