9
3

Vim.lua 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --[[
  2. Script Name : SpawnScripts/FarJourneyFreeport/Vim.lua
  3. Script Author : Cynnar
  4. Script Date : 2019.05.19 12:05:02
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. function spawn(NPC)
  10. end
  11. function hailed(NPC, player)
  12. if HasQuest(player,524) and GetQuestStep(player,524)==5 and HasItem(player,12565,1) then
  13. SetStepComplete(player,524,5)
  14. end
  15. choice = math.random(1, 5)
  16. FaceTarget(NPC, player)
  17. if choice == 1 then
  18. PlayFlavor(NPC, "voiceover/english/merchant_vim/boat_06p_tutorial02/020_merchant_vim_hail_c5d0b965.mp3", "I have some tattered clothes for sale, want to take a look?", "", 1974233264, 2156679701)
  19. elseif choice == 2 then
  20. PlayFlavor(NPC, "voiceover/english/merchant_vim/boat_06p_tutorial02/020_merchant_vim_hail_6c0c3c22.mp3", "The Far Journey is a beautiful ship, ain't she?", "", 139722646, 2672074756)
  21. elseif choice == 3 then
  22. PlayFlavor(NPC, "voiceover/english/merchant_vim/boat_06p_tutorial02/020_merchant_vim_hail_d3204929.mp3", "Looking for something sturdy to wear?", "", 696787059, 2593820637)
  23. elseif choice == 4 then
  24. --PlayFlavor(NPC, "voiceover/english/merchant_vim/boat_06p_tutorial02/020_merchant_vim_hail_187fc6bb.mp3", "I am busy right now...", "", 1835666244, 487490745)
  25. PlayFlavor(NPC, "voiceover/english/merchant_vim/boat_06p_tutorial02/020_merchant_vim_hail_481beac8.mp3", "I love traveling the seas... Oh! Did you need something?", "", 2187888771, 2112320089)
  26. else
  27. PlayFlavor(NPC, "voiceover/english/merchant_vim/boat_06p_tutorial02_fvo_005.mp3", "The Far Journey's a beautiful ship, ain't she?", "",3585442471, 604828909)
  28. end
  29. if GetTutorialStep(player) == 24 then
  30. AddTimer(NPC,2500,"Next",1,player)
  31. end
  32. end
  33. function Next(NPC,player)
  34. InstructionWindow(player, -1.0, "This is the merchant screen where all buying and selling takes place. Money comes in four denominations: copper, silver, gold, and platinum. Each type of coin is worth 100 times more than the previous one. For example, 100 copper pieces equals 1 silver piece. But right now, as this display shows, you have no money, so left click on the sell tab.", "voiceover/english/narrator/boat_06p_tutorial02/narrator_021_6c80e66e.mp3", 1226703760, 969427050, "tutorial_stage_25", "Click on the 'Sell' tab in the merchant window.", "pane Merchant Sell")
  35. FlashWindow(player, "Inventory.Merchant.PlatinumCoinIcon", 8.0)
  36. FlashWindow(player, "Inventory.Merchant.GoldCoinIcon", 8.0)
  37. FlashWindow(player, "Inventory.Merchant.SilverCoinIcon", 8.0)
  38. FlashWindow(player, "Inventory.Merchant.CopperCoinIcon", 8.0)
  39. end
  40. function respawn(NPC)
  41. end
  42. function targeted(NPC, Player)
  43. end