Advertisement
cressidagp

Zeppelin Masters (APE)

Jun 4th, 2023 (edited)
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 5.76 KB | None | 0 0
  1. '''
  2.  
  3. Engine: APE
  4. Zone: Global
  5. Creature: Zeppelin Masters
  6.  
  7. '''
  8.  
  9. import arcemu
  10. from arcemu import GameObject
  11. from arcemu import Unit
  12.  
  13. '''
  14. #gameObjectId, route, mapid( mapIdOrzoneIdOrAreaId ), npcId, message
  15. OBJECT_DATA = [
  16.    [ 285, 175080, 0, 3149, "The zeppelin to Orgrimmar has just arrived! All aboard for Durotar!" ],
  17.    [ 285, 175080, 1, 12136, "The zeppelin to Grom'gol has just arrived! All aboard for Stranglethorn!" ],
  18.    [ 301, 176495, 0, 12137, "The zeppelin to Undercity has just arrived! All aboard for Tirisfal Glades!" ],
  19.    [ 301, 176495, 0, 3150, "The zeppelin to Grom'gol has just arrived! All aboard for Stranglethorn!" ],
  20.    [ 302, 164871, 0, 9566, "The zeppelin to Orgrimmar has just arrived! All aboard for Durotar!" ],
  21.    [ 302, 164871, 1, 9564, "The zeppelin to Undercity has just arrived! All aboard to Tirisfall Glades!" ],
  22.  
  23.    [ 712, 186238, 9, 26537, "The zeppelin to Warsong Hold has just arrived! All aboard for Borean Tundra!" ],
  24.    [ 712, 186238, 9, 26538, "The zeppelin to Orgrimmar has just arrived! All aboard for Durotar!" ],
  25.  
  26.    [ 737, 195459, 9, 26539, "The zeppelin to Vengeance Landing has just arrived! All aboard for Howling Fjord!" ],
  27.    [ 737, 195459, 9, 26540, "The zeppelin to Undercity has just arrived! All aboard for Tirisfal Glades!" ],
  28.  
  29.    [ 1221, 190549, 9, 34765, "The zeppelin to Thunder Bluff has arrived! All aboard for a smooth ride across the Barrens!" ],
  30.    [ 1221, 190549, 9, 34766, "Step right up! The zeppelin to Orgrimmar has arrived! All aboard to Durotar!" ]
  31. ]
  32. #create list
  33. ZEPPELIN_MASTERS_NPC_ID = [ 3149, 3150, 9564, 9566, 12136, 12137, 26537, 26538, 26539, 26540, 34765, 34766 ]
  34. '''
  35.  
  36. ZEPPELIN_MASTERS_TEXT = [
  37. "The zeppelin to Orgrimmar has just arrived! All aboard for Durotar!",
  38. "The zeppelin to Grom'gol has just arrived! All aboard for Stranglethorn!",
  39. "The zeppelin to Undercity has just arrived! All aboard for Tirisfal Glades!",
  40. "The zeppelin to Vengeance Landing has just arrived! All aboard for Howling Fjord!",
  41. "The zeppelin to Warsong Hold has just arrived! All aboard for Borean Tundra!",
  42. "The zeppelin to Thunder Bluff has arrived! All aboard for a smooth ride across the Barrens!"
  43. ]
  44.  
  45. def zeppelin_onTransportArrive( go, route ):
  46.     mapMgr = go.getMapMgr()
  47.  
  48.     # Stranglethorn <=> Durotar
  49.     if route == 285:
  50.         mapId = go.getMapId()
  51.         if mapId == 0:
  52.             zm = mapMgr.getCreatureNearestCoords( -12441.30, 215.02, 31.32, 3149 )
  53.             if zm:
  54.               zm.sendChatMessage( arcemu.CHAT_MSG_MONSTER_YELL, arcemu.LANG_UNIVERSAL, ZEPPELIN_MASTERS_TEXT[ 0 ] )  
  55.  
  56.         else:
  57.            zm = mapMgr.getCreatureNearestCoords( 1354.03, -4642.61, 53.63, 12136 )
  58.            if zm:
  59.                zm.sendChatMessage( arcemu.CHAT_MSG_MONSTER_YELL, arcemu.LANG_UNIVERSAL, ZEPPELIN_MASTERS_TEXT[ 1 ] )
  60.  
  61.     # Tirisfall Glades <=> Stranglethorn
  62.     if route == 301:
  63.         zoneId = go.getZoneId()
  64.         if zoneId == 0:
  65.             zm = mapMgr.getCreatureNearestCoords( 2054.57, 241.68, 99.85, 3150 )
  66.             if zm:
  67.                 zm.sendChatMessage( arcemu.CHAT_MSG_MONSTER_YELL, arcemu.LANG_UNIVERSAL, ZEPPELIN_MASTERS_TEXT[ 1 ] )
  68.        
  69.         else:
  70.             zm = mapMgr.getCreatureNearestCoords( 2366.48, -2548.22, 103.27, 12737 )
  71.             if zm:
  72.                 zm.sendChatMessage( arcemu.CHAT_MSG_MONSTER_YELL, arcemu.LANG_UNIVERSAL, ZEPPELIN_MASTERS_TEXT[ 2 ] )
  73.  
  74.     # Tirisfall Glades <=> Durotar
  75.     if route == 302:
  76.         mapId = go.getMapId()
  77.         if mapId == 0:
  78.             zm = mapMgr.getCreatureNearestCoords( 2064.01, 288.57, 97.11, 9566 )
  79.             if zm:
  80.                 zm.sendChatMessage( arcemu.CHAT_MSG_MONSTER_YELL, arcemu.LANG_UNIVERSAL, ZEPPELIN_MASTERS_TEXT[ 0 ] )
  81.  
  82.         else:
  83.             zm = mapMgr.getCreatureNearestCoords( 1331.10, -4649.45, 53.03, 9564 )
  84.             if zm:
  85.                zm.sendChatMessage( arcemu.CHAT_MSG_MONSTER_YELL, arcemu.LANG_UNIVERSAL, ZEPPELIN_MASTERS_TEXT[ 2 ] )
  86.  
  87.     # Durotar <=> Borean Tundra
  88.     if route == 712:
  89.         mapId = go.getMapId()
  90.         if mapId == 1:
  91.             zm = mapMgr.getCreatureNearestCoords( 1174.52, -4152.51, 51.73, 26537 )
  92.             if zm:
  93.                 zm.sendChatMessage( arcemu.CHAT_MSG_MONSTER_YELL, arcemu.LANG_UNIVERSAL, ZEPPELIN_MASTERS_TEXT[ 4 ] )
  94.         else:
  95.             zm = mapMgr.getCreatureNearestCoords( 2817.72, 6177.08, 122.21, 26538 )
  96.             if zm:
  97.                 zm.sendChatMessage( arcemu.CHAT_MSG_MONSTER_YELL, arcemu.LANG_UNIVERSAL, ZEPPELIN_MASTERS_TEXT[ 0 ] )
  98.  
  99.     # Tirisfall Glades <=> Howling Fjord
  100.     if route == 737:
  101.         mapId = go.getMapId()
  102.         if mapId == 0:
  103.             zm = mapMgr.getCreatureNearestCoords( 2058.06, 357.59, 82.55, 26539 )
  104.             if zm:
  105.                 zm.sendChatMessage( arcemu.CHAT_MSG_MONSTER_YELL, arcemu.LANG_UNIVERSAL, ZEPPELIN_MASTERS_TEXT[ 3 ] )
  106.        
  107.         else:
  108.             zm = mapMgr.getCreatureNearestCoords( 1975.03, -6095.22, 67.22, 26540 )
  109.             if zm:
  110.                 zm.sendChatMessage( arcemu.CHAT_MSG_MONSTER_YELL, arcemu.LANG_UNIVERSAL, ZEPPELIN_MASTERS_TEXT[ 2 ] )
  111.  
  112.     # Durotar <=> Mulgore
  113.     if route == 1221:
  114.         zoneId = go.getZoneId()
  115.         if zoneId == 0:
  116.             zm = mapMgr.getCreatureNearestCoords( 1149.00, -4152.21, 51.73, 34765 )
  117.             if zm:
  118.                 zm.sendChatMessage( arcemu.CHAT_MSG_MONSTER_YELL, arcemu.LANG_UNIVERSAL, ZEPPELIN_MASTERS_TEXT[ 5 ] )
  119.        
  120.         else:
  121.             zm = mapMgr.getCreatureNearestCoords( -1032.50, 313.14, 135.00, 34766 )
  122.             if zm:
  123.                 zm.sendChatMessage( arcemu.CHAT_MSG_MONSTER_YELL, arcemu.LANG_UNIVERSAL, ZEPPELIN_MASTERS_TEXT[ 0 ] )
  124.  
  125. arcemu.RegisterServerHook( arcemu.SERVER_HOOK_EVENT_ON_TRANSPORT_ARRIVED, zeppelin_onTransportArrive )
  126.    
  127.  
Tags: python arcemu
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement