Advertisement
Guest User

Untitled

a guest
May 23rd, 2015
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 KB | None | 0 0
  1. -----------------------------------
  2. --
  3. -- Zone: Full_Moon_Fountain (170)
  4. --
  5. -----------------------------------
  6. package.loaded["scripts/zones/Full_Moon_Fountain/TextIDs"] = nil;
  7. -----------------------------------
  8.  
  9. require("scripts/zones/Full_Moon_Fountain/TextIDs");
  10. require("scripts/globals/settings");
  11. require("scripts/globals/missions");
  12. require("scripts/globals/titles");
  13.  
  14. -----------------------------------
  15. -- onInitialize
  16. -----------------------------------
  17.  
  18. function onInitialize(zone)
  19. end;
  20.  
  21. -----------------------------------
  22. -- onZoneIn
  23. -----------------------------------
  24.  
  25. function onZoneIn(player,prevZone)
  26. local cs = -1;
  27. if ((player:getXPos() == 0) and (player:getYPos() == 0) and (player:getZPos() == 0)) then
  28. player:setPos(-260.136,2.09,-325.702,188);
  29. end
  30. if(player:getCurrentMission(WINDURST) == FULL_MOON_FOUNTAIN and player:getVar("MissionStatus") == 3) then
  31. player:startEvent(0x0032);
  32. elseif(player:getCurrentMission(WINDURST) == DOLL_OF_THE_DEAD and player:getVar("MissionStatus") == 6) then
  33. player:startEvent(0x003D);
  34. end
  35. return cs;
  36. end;
  37.  
  38. -----------------------------------
  39. -- onConquestUpdate
  40. -----------------------------------
  41.  
  42. function onConquestUpdate(zone, updatetype)
  43. local players = zone:getPlayers();
  44.  
  45. for name, player in pairs(players) do
  46. conquestUpdate(zone, player, updatetype, CONQUEST_BASE);
  47. end
  48. end;
  49.  
  50. -----------------------------------
  51. -- onRegionEnter
  52. -----------------------------------
  53.  
  54. function onRegionEnter(player,region)
  55. end;
  56.  
  57. -----------------------------------
  58. -- onEventUpdate
  59. -----------------------------------
  60.  
  61. function onEventUpdate(player,csid,option)
  62. --printf("CSID: %u",csid);
  63. --printf("RESULT: %u",option);
  64. end;
  65.  
  66. -----------------------------------
  67. -- onEventFinish
  68. -----------------------------------
  69.  
  70. function onEventFinish(player,csid,option)
  71. --printf("CSID: %u",csid);
  72. --printf("RESULT: %u",option);
  73.  
  74. if(csid == 0x0032) then
  75. finishMissionTimeline(player,3,csid,option);
  76. elseif(csid == 0x003D) then
  77. player:addTitle(GUIDING_STAR);
  78. player:setVar("MissionStatus",1);
  79. end
  80. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement