Index: npcs/Scavnix.lua =================================================================== --- npcs/Scavnix.lua (revision 2992) +++ npcs/Scavnix.lua (working copy) @@ -5,6 +5,8 @@ ----------------------------------- package.loaded["scripts/zones/Windurst_Walls/TextIDs"] = nil; +require("scripts/globals/settings"); +require("scripts/globals/shop"); require("scripts/zones/Windurst_Walls/TextIDs"); ----------------------------------- @@ -19,6 +21,18 @@ ----------------------------------- function onTrigger(player,npc) + player:showText(npc,SCAVNIX_SHOP_DIALOG); + + stock = {0x01e1,21000, -- Black Chip + 0x01db,21000, -- Blue Chip + 0x01de,21000, -- Clear Chip + 0x01dd,21000, -- Green Chip + 0x01de,21000, -- Purple Chip + 0x01da,21000, -- Red Chip + 0x01e0,21000, -- White Chip + 0x01dc,21000} -- Yellow Chip + + showShop(player, STATIC, stock); end; ----------------------------------- Index: TextIDs.lua =================================================================== --- TextIDs.lua (revision 2992) +++ TextIDs.lua (working copy) @@ -1,18 +1,20 @@ --- Variable TextID Description text - --- General Texts -ITEM_CANNOT_BE_OBTAINED = 6534; -- You cannot obtain the item come back again after sorting your inventory - ITEM_OBTAINED = 6537; -- Obtained: - GIL_OBTAINED = 6538; -- Obtained gil - KEYITEM_OBTAINED = 6540; -- Obtained key item: - ITEMS_OBTAINED = 6543; -- You obtain ! - FISHING_MESSAGE_OFFSET = 6865; -- You can't fish here - MOGHOUSE_EXIT = 7989; -- You have learned your way through the back alleys of Windurst! Now you can exit to any area from your residence. - --- Dynamis dialogs - YOU_CANNOT_ENTER_DYNAMIS = 8884; -- You cannot enter Dynamis - Windurst for x day (Vana'diel time) -PLAYERS_HAVE_NOT_REACHED_LEVEL = 8886; -- Players who have not reached level are prohibited from entering Dynamis. - STRANDS_OF_GRASS_HERE = 8898; -- The strands of grass here have been tied together. - --- Shop Texts -SCAVNIX_SHOP_DIALOG = 0; -- [UNKNOWN] +-- Variable TextID Description text + +-- General Texts +ITEM_CANNOT_BE_OBTAINED = 6534; -- You cannot obtain the item come back again after sorting your inventory + ITEM_OBTAINED = 6537; -- Obtained: + GIL_OBTAINED = 6538; -- Obtained gil + KEYITEM_OBTAINED = 6540; -- Obtained key item: + ITEMS_OBTAINED = 6543; -- You obtain ! + FISHING_MESSAGE_OFFSET = 6865; -- You can't fish here + MOGHOUSE_EXIT = 7989; -- You have learned your way through the back alleys of Windurst! Now you can exit to any area from your residence. + +-- Dynamis dialogs + YOU_CANNOT_ENTER_DYNAMIS = 8884; -- You cannot enter Dynamis - Windurst for x day (Vana'diel time) +PLAYERS_HAVE_NOT_REACHED_LEVEL = 8886; -- Players who have not reached level are prohibited from entering Dynamis. + STRANDS_OF_GRASS_HERE = 8898; -- The strands of grass here have been tied together. + +-- Shop Texts + SCAVNIX_SHOP_DIALOG = 8473; -- <Pshoooooowaaaaa> +--I'm goood Goblin from underwooorld. I find lotshhh of gooodieshhh. +--You want try shhhome chipshhh? Cheap for yooou.