Advertisement
Guest User

Untitled

a guest
Feb 10th, 2016
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.49 KB | None | 0 0
  1. local requiredGroup = 3
  2. local MSG = ".:: Events Options ::.\nPossible Events:\n*Football\nExample of how you use it: /event football\nIf you wish to end a current event, type for an example: /event footballstop"
  3. local item = 1810
  4. local EventMsg = "Walk through this teleport to get back to thais temple!"
  5. local EventMsg1 = "Walk through this teleport to get to the current Event!"
  6.  
  7. local eventfootball = "The football event has started! \n Go to Thais, Carlin or Venore and step into the teleport to join!"
  8. local teleportfootball = {x = 32791, y = 31167, z = 8}
  9. local teleportfootballback = {x = 32791, y = 31167, z = 8}
  10.  
  11. local thaisdp = {x = 32342, y = 32220, z = 7}
  12. local carlindp = {x = 32329, y =31779, z = 7}
  13. local venoredp = {x = 32915, y = 32072, z = 7}
  14. local Temple = {x = 32369, y= 32241, z= 7}
  15.  
  16.  
  17. function onSay(cid, words, param)
  18. doShowTextDialog(cid, item, MSG)
  19. if param == "football" then
  20. broadcastMessage(eventfootball, MESSAGE_EVENT_ADVANCE)
  21. doCreateTeleport(1387, teleportfootball, thaisdp)
  22. doCreateTeleport(1387, teleportfootball, carlindp)
  23. doCreateTeleport(1387, teleportfootball, venoredp)
  24. doCreateTeleport(1387, Temple, teleportfootballback) -- Teleport going back from Football event
  25. doCreateItem(1304, 1, {x = 32790, y = 31168, z = 8}) -- Stone blocking regular teleport to the football arena
  26. local blackboard = doCreateItem(1818, 1, {x = 32790, y = 31167, z = 8}) -- Thais blackboard information
  27. doSetItemText(blackboard, EventMsg)
  28. local blackboard1 = doCreateItem(1811, 1, {x = 32342, y = 32219, z = 7}) -- Football event blackboard information
  29. doSetItemText(blackboard1, EventMsg1)
  30. local blackboard2 = doCreateItem(1815, 1, {x = 32914, y = 32072, z = 7})
  31. doSetItemText(blackboard2, EventMsg1)
  32. local blackboard3 = doCreateItem(1810, 1, {x = 32329, y = 31778, z = 7})
  33. doSetItemText(blackboard3, EventMsg1)
  34. elseif param == "footballstop" then
  35. doRemoveItem(getTileItemById(thaisdp, 1387).uid, 1)
  36. doRemoveItem(getTileItemById(carlindp, 1387).uid, 1)
  37. doRemoveItem(getTileItemById(venoredp, 1387).uid, 1)
  38. doRemoveItem(getTileItemById(teleportfootballback, 1387).uid, 1)
  39. doRemoveItem(getTileItemById({x = 32790, y = 31168, z = 8}, 1304).uid, 1)
  40. doRemoveItem(getTileItemById({x = 32790, y = 31167, z = 8}, 1818).uid, 1)
  41. doRemoveItem(getTileItemById({x = 32342, y = 32219, z = 7}, 1811).uid, 1)
  42. doRemoveItem(getTileItemById({x = 32914, y = 32072, z = 7}, 1815).uid, 1)
  43. doRemoveItem(getTileItemById({x = 32329, y = 321778, z = 7}, 1810).uid, 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement