Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.56 KB | None | 0 0
  1. quest phoenix begin
  2.     state start begin
  3.         when 120354.use begin
  4.  
  5.                 if pet.is_summon(20126) then
  6.                     say("Przywo³a³eœ ju¿ fenixa!")
  7.                     return
  8.                 end
  9.                 if pet.is_summon(20132) then
  10.                     say("Przywo³a³eœ ju¿ fenixa!")
  11.                     return
  12.                 end
  13.                 if pet.is_summon(20129) then
  14.                     say("Przywo³a³eœ ju¿ fenixa!")
  15.                     return
  16.                 end
  17.                 if pet.is_summon(20123) then
  18.                     say("Przywo³a³eœ ju¿ fenixa!")
  19.                     return
  20.                 end
  21.                 if pet.is_summon(34055) then
  22.                     say("Przywo³a³eœ ju¿ nietoperza!")
  23.                     return
  24.                 end
  25.                 if pet.is_summon(20157) then
  26.                     say("Przywo³a³eœ ju¿ Gremlina!")
  27.                     return
  28.                 end
  29.                 if pet.is_summon(20158) then
  30.                     say("Przywo³a³eœ ju¿ Gremlina!")
  31.                     return
  32.                 end
  33.                 if pet.is_summon(34056) then
  34.                     say("Przywo³a³eœ ju¿ ¯ó³wia!")
  35.                     return
  36.                 end
  37.                 if pet.is_summon(34003) then
  38.                     say("Przywo³a³eœ ju¿ Pumpkina!")
  39.                     return
  40.                 end
  41.                 if pet.is_summon(34004) then
  42.                     say("Przywo³a³eœ ju¿ Œwi¹teczny Feniks!")
  43.                     return
  44.                 end
  45.                 if pet.is_summon(34005) then
  46.                     say("Przywo³a³eœ ju¿ Œwi¹teczny Miœ!")
  47.                     return
  48.                 end
  49.                 if pet.is_summon(34006) then
  50.                     say("Przywo³a³eœ ju¿ Królika!")
  51.                     return
  52.                 end            
  53.             pet.summon(20132, "Renifer", false)
  54.  
  55.            
  56.            
  57.             chat("Renifer zosta³ przywo³any")
  58.             affect.add_pet(apply.ATTBONUS_MONSTER,15,60*60*6)  
  59.             affect.add_pet(apply.ATT_GRADE_BONUS,100,60*60*6)  
  60.             affect.add_pet(apply.MAX_HP,5000,60*60*6)          
  61.             affect.add_pet(apply.STEAL_HP,10,60*60*6)  
  62.             set_state(back)
  63.         end
  64.     end
  65.     state back begin
  66.        
  67.         when logout begin
  68.             affect.remove_pet()
  69.                 if pet.is_summon(20126) then
  70.                     pet.unsummon(20126)
  71.                 end
  72.                 if pet.is_summon(20132) then
  73.                     pet.unsummon(20132)
  74.                 end
  75.                 if pet.is_summon(20129) then
  76.                     pet.unsummon(20129)
  77.                 end
  78.                 if pet.is_summon(20123) then
  79.                     pet.unsummon(20123)
  80.                 end
  81.                 if pet.is_summon(34055) then
  82.                     pet.unsummon(34055)
  83.                 end
  84.                 if pet.is_summon(20157) then
  85.                     pet.unsummon(20157)
  86.                 end
  87.                 if pet.is_summon(20158) then
  88.                     pet.unsummon(20158)
  89.                 end
  90.                 if pet.is_summon(34056) then
  91.                     pet.unsummon(34056)
  92.                 end
  93.                 if pet.is_summon(34003) then
  94.                     pet.unsummon(34003)
  95.                 end
  96.                 if pet.is_summon(34004) then
  97.                     pet.unsummon(34004)
  98.                 end
  99.                 if pet.is_summon(34005) then
  100.                     pet.unsummon(34005)
  101.                 end
  102.                 if pet.is_summon(34006) then
  103.                     pet.unsummon(34006)
  104.                 end
  105.  
  106.             set_state(start)
  107.         end
  108.         when 120354.use begin
  109.             timer("petbasic_back", 5)
  110.         end
  111.         when petbasic_back.timer begin
  112.             chat("Renifer odwo³any")
  113.             affect.remove_pet()
  114.                 if pet.is_summon(20126) then
  115.                     pet.unsummon(20126)
  116.                 end
  117.                 if pet.is_summon(20132) then
  118.                     pet.unsummon(20132)
  119.                 end
  120.                 if pet.is_summon(20129) then
  121.                     pet.unsummon(20129)
  122.                 end
  123.                 if pet.is_summon(20123) then
  124.                     pet.unsummon(20123)
  125.                 end
  126.                 if pet.is_summon(34055) then
  127.                     pet.unsummon(34055)
  128.                 end
  129.                 if pet.is_summon(20157) then
  130.                     pet.unsummon(20157)
  131.                 end
  132.                 if pet.is_summon(20158) then
  133.                     pet.unsummon(20158)
  134.                 end
  135.                 if pet.is_summon(34056) then
  136.                     pet.unsummon(34056)
  137.                 end
  138.                 if pet.is_summon(34003) then
  139.                     pet.unsummon(34003)
  140.                 end
  141.                 if pet.is_summon(34004) then
  142.                     pet.unsummon(34004)
  143.                 end
  144.                 if pet.is_summon(34005) then
  145.                     pet.unsummon(34005)
  146.                 end
  147.                 if pet.is_summon(34006) then
  148.                     pet.unsummon(34006)
  149.                 end
  150.             set_state(start)       
  151.         end
  152.     end
  153.  
  154. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement