Nyyrscript train including Westgate

MUD Client Links and Help
Post Reply
User avatar
Gormal
Commander
Posts: 612
Joined: Mon Feb 01, 2021 3:49 pm

Nyyrscript train including Westgate

Post by Gormal »

Replace the existing config file with this one.

Code: Select all

-------------------------------------------------
--         Put your Lua functions here.        --
--                                             --
-- Note that you can also use external Scripts --
-------------------------------------------------
-- TODO: update inittrain path in Silverymoon

  testtrain = {
    {48518, "Shalyssa Lurialar"},
    {48850, "Forell Luckaun"},
    {48721, "Seipora Rein"}
  }

wgtrain = {
    {825, "bankDeposit"},
    {523, "morninglord"},
    {524, "tylanna"},
    {436, "revered"},
    {437, "irblast"},
    {441, "seeker"},
    {442, "ashuntira"},
    {446, "monastic"},
    {447, "silios"},
    {511, "mistress"},
    {512, "kismet"},
    {473, "caressor"},
    {474, "spyrytara"},
    {488, "mage"},
    {501, "mage"},
    {490, "mage"},
    {500, "mage"},
    {492, "mage"},
    {499, "mage"},
    {494, "mage"},
    {498, "mage"},
    {496, "keeper"},
    {614, "rider"},
    {615, "axil"},
    {999, "watcher"},
    {958, "master"},
    {959, "lidia"},
    {1000, "grigor"},
    {932, "priestess"},
    {933, "demarch"},
    {928, "lord"},
    {929, "adeena"},
    {842, "syndar"},
    {843, "ishaya"},
    {1150, "wave"},
    {1151, "meralt"},
    {1157, "lady"},
    {1158, "elort"},
  }

  icecrag = {
    {5804, "commander"},
    {5735, "lieutenant"},
    {5739, "lieutenant"},
    {5769, "lieutenant"},
    {5684, "lieutenant"},
    {5833, "lieutenant"},
    {5842, "lieutenant"},
    {5780, "lieutenant"},
    {5850, "lieutenant"},
    {5752, "artist"},
    {5772, "sentinel"},
    {5748, "sentinel"}
  }

  smtrain = {
    {84203, "bankDeposit"},
    {48882, "Willa O'Greensleeves"},
    {48873, "Aratha Sul"},
    {48524, "Lavis Ryl"},
    {48525, "Elaith Waterstill"},
    {48518, "Shalyssa Lurialar"},
    {48850, "Forell Luckaun"},
    {48721, "Seipora Rein"},
    {48681, "Corland Deepforge"},
    {48586, "Ersenas"},
    {49135, "Ultrumm"},
--    {49054, "Tathshandra Tyrar"},
--    {94648, "Otasit"},
    {49117, "devout priest"},
    {49036, "Dragor Keenblade"}
  }

  ashtrain = {
    {87415, "bankDeposit"},
    {87411, "Stephan"},
    {87263, "gambler"},
    {87270, "bouncer"},
    {87272, "prostitute"},
    {87275, "aging prostitute"},
    {87276, "naked woman"},
    {87254, "Ashstone noble"},
    {87251, "Ashstone noble"},
    {87255, "Ashstone noble"},
    {87249, "Ashstone noble"},
--  priest has no plat  {87314, "kindly priest"}, 
    {87253, "Ashstone noble"},
    {87258, "Ashstone noble"},
    {87257, "Ashstone noble"}
  }

  wdtrain = {
    {13402, "elite"},
    {13359, "elite"},
    {13343, "elite"},
    {13354, "master"},
    {13397, "master"}
--    {85354, "elite guard"},
--    {85358, "elite guard"},
--    {85356, "elite guard"},
--    {85410, "elite guard"},
--    {85421, "elite guard"},
--    {85349, "elite guard"}
  }


function configureTrain()
  fwalkQue=false

  -- disable any active triggers prior to enabling
  expandAlias("@resettrain", false)

  cecho("<green>[Laying train tracks...]\n")

  if trainList ~= nil then
    if _G[trainList] ~= nil then
      NyyLIB.smtrainstops = _G[trainList]
      trainList=nil
      return
    end
  end

  if map:getCurrentZone() == "Ashstone" then
    NyyLIB.smtrainstops = ashtrain
  elseif map:getCurrentZone() == "Silverymoon, Gem of the North" then
    NyyLIB.smtrainstops = smtrain
 elseif map:getCurrentZone() == "Westgate" then
    NyyLIB.smtrainstops = wgtrain
  elseif map:getCurrentZone() == "Northern Waterdeep Main City" then
    NyyLIB.smtrainstops = wdtrain
  elseif map:getCurrentZone() == "The Great Harbor of Waterdeep" then
    NyyLIB.smtrainstops = wdtrain
  end
end

Post Reply