Advertisement
Tom_Neverwinter

Toppi-Meppi FFXI

Jul 4th, 2022 (edited)
925
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.08 KB | None | 0 0
  1. -----------------------------------
  2. -- Area: Windurst Woods
  3. --  NPC: Toppi-Meppi
  4. -- Type: VCS Chocobuck Exchange Depot Vendor
  5. -- !pos -115.5402 -5.0000 -137.6557 241
  6. -----------------------------------
  7. -----------------------------------
  8. local ID = require("scripts/zones/Windurst_Woods/IDs")
  9. require("scripts/globals/shop")
  10. require("scripts/globals/settings")
  11. require("scripts/globals/status")
  12. -----------------------------------
  13. local currency =
  14. {
  15.     chocobuck_sandoria,
  16.     chocobuck_bastok,
  17.     chocobuck_windurst,
  18. -- ID?
  19. }
  20.  
  21. local entity = {}
  22.  
  23. entity.onTrade = function(player, npc, trade)
  24. end
  25.  
  26. entity.onTrigger = function(player, npc)
  27.     -- Standard shop
  28.     player:showText(npc, ID.text.Toppi-Meppi_TEXT)
  29.     local stock =
  30.     {
  31.     --You must be registered with a particular CRA branch before you can spend earned chocobucks at a Chocobuck Exchange Center
  32.     -- 1 chocobuck
  33.     5605, 1, -- Sharug Greens
  34.     5606, 1, -- Azouph Greens
  35.     2201, 1, -- Tokopekko Wildgrass
  36.     2202, 1, -- Garidav Wildgrass
  37.     5607, 1, -- Vomp Carrot
  38.     5608, 1, -- Zegham Carrot
  39.     -- 3 chocobuck
  40.     2210, 3, -- Vegetable Paste
  41.     2208, 3, -- Herb Paste
  42.     2211, 3, -- Carrot Paste
  43.     2209, 3, -- Worm Paste
  44.     2203, 3, -- Cupid Worm
  45.     2204, 3, -- Parasite Worm
  46.     2205, 3, -- Gregarious Worm
  47.     2645, 3, -- Eastern Ginger Root
  48.     -- 10 chocobuck
  49.     5605, 10, --Bunches of Sharug Greens
  50.     5606, 10, --Bunches of Azouph Greens
  51.     2201, 10, --Clumps of Tokopekko Wildgrass
  52.     2202, 10, --Clumps of Garidav Wildgrass
  53.     5607, 10, --Vomp Carrots
  54.     5608, 10, --Zegham Carrots
  55.     -- 30 chocobuck
  56.     2210, 30, --Balls of Vegetable Paste
  57.     2208, 30, --Balls of Herb Paste
  58.     2211, 30, --Balls of Carrot Paste
  59.     2209, 30. --Balls of Worm Paste
  60.     2203, 30, --Cupid Worms
  61.     2204, 30, --Parasite Worms
  62.     2205, 30, --Gregarious Worms
  63.     -- 40 chocobucks
  64.     2206, 40, --A Chocolixir
  65.     2207, 40, --A Celerity Salad
  66.     -- 50 chocobucks
  67.     2345, 50, --A Hi-Chocolixir
  68.     2346, 50, --A Tornado Salad
  69.         -- 75 Chocobucks
  70.     2379, 75, -- A bottle of Yellow Chocobo Dye
  71.     2383, 75, -- A bottle of Black Chocobo Dye
  72.     2381, 75, -- A bottle of Blue Chocobo Dye
  73.     2380, 75, -- A bottle of Red Chocobo Dye
  74.     2382, 75, -- A bottle of Green Chocobo Dye
  75.     -- 80 Chocobucks
  76.     2407, 80, -- R Chocotrain
  77.      -- Slightly raises one random attribute of a chocobo, without reducing any other. This token can only be turned in for adult Chocobos still residing in the stables.
  78.     -- 90 Chocobucks
  79.     -- These items can only be purchased while your nation is first or second in chocobo races rank.
  80.     2403, 90, -- R Chocotrain: STR
  81.     2404, 90, -- R Chocotrain: END
  82.     2405, 90, -- R Chocotrain: DSC
  83.     2406, 90, -- R Chocotrain: RCP
  84.     -- 100 Chocobucks
  85.     -- These items can only be purchased while your nation is first in chocobo races rank.
  86.     2403, 90, -- R Chocotrain: STR
  87.     2404, 90, -- R Chocotrain: END
  88.     2405, 90, -- R Chocotrain: DSC
  89.     2406, 90, -- R Chocotrain: RCP
  90.     2486, 100, -- 150 Chocobucks [how to set value?]
  91.     11321, 100, -- Orange Racing Silks..........Chocobo Riding Time +10
  92.     11322, 100, -- Black Racing Silks............Hot and Cold Game: Increases jackpot chance
  93.     11323, 100, -- Purple Racing Silks...........Personal chocobo: Increase movement speed
  94.     11324, 100, -- Sky Blue Racing Silks.......Enhances chocobo digging skill
  95.     11325, 100, -- Blue Racing Silks..............Enhances chocobo digging endurance
  96.     11326, 100, -- Red Racing Silks...............Personal chocobo: Extends riding time
  97.     11327, 100, -- White Racing Silks............Hot and Cold Game: Endurance +1
  98.     11328, 100, -- Green Racing Silks............Enhances chocobo caring ability (reduces the amount of energy lost while caring for your chocobo. telling stories. taking walks, etc...)
  99.     -- 500 Chocobucks
  100.     6411, 500, -- Chocobo Chair (can also be purchased for 15,000 Mummers' Medals) 
  101.     }
  102.     xi.shop.general(player, stock)
  103. end
  104.  
  105. entity.onEventUpdate = function(player, csid, option)
  106. end
  107.  
  108. entity.onEventFinish = function(player, csid, option)
  109. end
  110.  
  111. return entity
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement