Advertisement
Tom_Neverwinter

Saffaullette FFXI Chocobo Circuit

Jul 26th, 2022 (edited)
1,081
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.01 KB | None | 0 0
  1. -----------------------------------
  2. -- Area: Chocobo_Circuit
  3. -- NPC: Saffaullette
  4. -- !pos -252.2906 -5.0000 -490.7443 70
  5. -----------------------------------
  6. require("scripts/globals/keyitems")
  7. -----------------------------------
  8. local entity = {}
  9.  
  10. entity.onTrade = function(player, npc, trade)
  11. end
  12.  
  13. entity.onTrigger = function(player, npc)
  14.     player:startEvent(265)
  15. end
  16.  
  17. entity.onEventUpdate = function(player, csid, option)
  18. end
  19.  
  20. entity.onEventFinsih = function(player, csid, option)
  21. if
  22.     csid == 265 and
  23.     option == 100 then
  24.             if (player:hasKeyItem(xi.ki.CHOCOBO_CIRCUIT_GRANDSTAND_PASS) == true)
  25.                 then
  26.                 player:setpos(-116.2652, -14.500, -125.3634, 0)
  27.             elseif
  28.                 player:delGil(50)
  29.                 then
  30.                 player:setpos(-116.2652, -14.500, -125.3634, 0)
  31.             end
  32.          end
  33.     end
  34. --end
  35.  
  36. return entity
  37.  
  38. --player:addgil
  39. --CHOCOBO_CIRCUIT_GRANDSTAND_PASS          = 908
  40. -- !addkeyitem 908 Tom_Neverwinter
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement