Tom_Neverwinter icon

Mulaitrand - cocosolos

Tom_Neverwinter | PRO | 11/22/22 08:50:25 PM UTC (Edited) | 0 ⭐ | 454 👁️ | Never ⏰ | []
text |

850 B

|

None

|

0 👍

/

0 👎

-----------------------------------
-- Area: Chocobo_Circuit
-- NPC: Mulaitrand
-- Grandstand Entrance
-- !pos -388.2694 -5.0000 -467.1629 70
-----------------------------------
require("scripts/globals/keyitems")
-----------------------------------
local entity = {}
 entity.onTrade = function(player, npc, trade)
end
 entity.onTrigger = function(player, npc)
    player:startEvent(264, 0, 3)
end
 entity.onEventUpdate = function(player, csid, option)
    local freePass = player:hasKeyItem(xi.ki.CHOCOBO_CIRCUIT_GRANDSTAND_PASS)
    if freePass or player:getGil() >= 50 then
        player:updateEvent(0)
        if freePass then
            player:delKeyItem(xi.ki.CHOCOBO_CIRCUIT_GRANDSTAND_PASS)
        else
            player:delGil(50)
        end
    end
end
 entity.onEventFinsih = function(player, csid, option)
end
 return entity
 

Comments