Advertisement
Kaiquegabriel

Untitled

Jul 24th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. local nodes = {
  2. [8034] = {x = 32657, y = 31903, z = 8}, -- Depo
  3. [8035] = {x = 32606, y = 31905, z = 9}, -- Shops
  4. [8036] = {x = 32628, y = 31922, z = 11}, -- Temple
  5. [8037] = {x = 32576, y = 31973, z = 9}, -- Main Gate
  6. [8038] = {x = 32676, y = 31976, z = 15}, -- Steam Ship
  7. }
  8.  
  9. function onUse(cid, item, fromPosition, itemEx, toPosition)
  10. if(getPlayerStorageValue(cid, 1131) > os.time()) then
  11. if(getPlayerStorageValue(cid, 1132) < 100) then
  12. setPlayerStorageValue(cid, 1132)
  13. end
  14. doTeleportThing(cid, nodes[item.actionid])
  15. doSendMagicEffect(nodes[item.actionid], CONST_ME_TELEPORT)
  16. else
  17. doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "To travel by ore wagons you must purchase a wagon ticket from any kazordoon's merchant.")
  18. end
  19. return true
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement