am si eu o intrebare...
am implementat pet-uri noi in client + server
adica i-am bagat ca, mobi..
dar nu imi dau seama cum sa modific questul asta sa le adaug...
il postez mai jos care ma poate ajuta...
Cod: Selectaţi tot
quest official_pets begin
state start begin
when 53001.use with pc.getqf("firephoenix1") == 0 and pc.getqf("firephoenix2") == 0
and pc.getqf("firephoenix3") == 0 and pc.getqf("firephoenix4") == 0
and pc.getqf("firephoenix5") == 0 and pc.getqf("firephoenix6") == 0
and pc.getqf("firephoenix7") == 0 begin
cmdchat("b10")
if pc.getqf("firephoenix") == 0 then
horse.set_level("22")
horse.set_name(""..pc.get_name().." - Phoenix de Foc")
pc.setqf("phoenix_fly", 1)
pc.setqf("firephoenix", 1)
affect.add_collect(apply.MAX_HP, 4000, 60*60*8)
affect.add_collect(apply.ATTBONUS_HUMAN, 10, 60*60*8)
affect.add_collect(apply.CRITICAL_PCT, 15, 60*60*8)
affect.add_collect(apply.PENETRATE_PCT, 15, 60*60*8)
pet.unsummon() pet.summon()
horse.set_level("21")
horse.set_name(""..pc.get_name().." - Cal ")
loop_timer("bugcheck", 0.2)
elseif pc.getqf("firephoenix") == 1 then
pet.unsummon()
horse.set_level("21")
horse.set_name(""..pc.get_name().." - Cal")
affect.remove_collect(apply.MAX_HP, 4000, 60*60*8)
affect.remove_collect(apply.ATTBONUS_HUMAN, 10, 60*60*8)
affect.remove_collect(apply.CRITICAL_PCT, 15, 60*60*8)
affect.remove_collect(apply.PENETRATE_PCT, 15, 60*60*8)
pc.setqf("phoenix_fly", 0)
pc.setqf("firephoenix", 0)
cleartimer("bugcheck")
end
end
-- Bugschutz
when bugcheck.timer begin
if pc.count_item(53001) == 0 then
pet.unsummon()
horse.set_level("21")
horse.set_name(""..pc.get_name().." - Cal ")
affect.remove_collect(apply.MAX_HP, 4000, 60*60*8)
affect.remove_collect(apply.ATTBONUS_HUMAN, 10, 60*60*8)
affect.remove_collect(apply.CRITICAL_PCT, 15, 60*60*8)
affect.remove_collect(apply.PENETRATE_PCT, 15, 60*60*8)
pc.setqf("phoenix_fly", 0)
pc.setqf("firephoenix", 0)
syschat(" <Pet> Sigiliul nu a putut fi gasit! ")
cleartimer("bugcheck")
end
end
when login or logout or disconnect with pc.getqf("firephoenix") == 1 begin
horse.set_level("22")
horse.set_name(""..pc.get_name().." - Phoenix de Foc ")
pc.setqf("phoenix_fly", 1)
pc.setqf("firephoenix", 1)
pet.unsummon() pet.summon()
horse.set_level("21")
horse.set_name(""..pc.get_name().." - Cal ")
loop_timer("bugcheck", 0.2)
end
end
end
quest official_pets begin
state start begin
when 53003.use with pc.getqf("firephoenix") == 0 and pc.getqf("firephoenix2") == 0
and pc.getqf("firephoenix3") == 0 and pc.getqf("firephoenix4") == 0
and pc.getqf("firephoenix5") == 0 and pc.getqf("firephoenix6") == 0
and pc.getqf("firephoenix7") == 0 begin
if pc.getqf("firephoenix1") == 0 then
horse.set_level("23")
horse.set_name(""..pc.get_name().." - Phoenix de Gheata")
pc.setqf("phoenix_fly1", 1)
pc.setqf("firephoenix1", 1)
affect.add_collect(apply.MAX_HP, 4000, 60*60*8)
affect.add_collect(apply.ATTBONUS_HUMAN, 10, 60*60*8)
affect.add_collect(apply.CRITICAL_PCT, 15, 60*60*8)
affect.add_collect(apply.PENETRATE_PCT, 15, 60*60*8)
pet.unsummon() pet.summon()
horse.set_level("21")
horse.set_name(""..pc.get_name().." - Cal ")
loop_timer("bugcheck1", 0.2)
elseif pc.getqf("firephoenix1") == 1 then
pet.unsummon()
horse.set_level("21")
horse.set_name(""..pc.get_name().." - Cal ")
affect.remove_collect(apply.MAX_HP, 4000, 60*60*8)
affect.remove_collect(apply.ATTBONUS_HUMAN, 10, 60*60*8)
affect.remove_collect(apply.CRITICAL_PCT, 15, 60*60*8)
affect.remove_collect(apply.PENETRATE_PCT, 15, 60*60*8)
pc.setqf("phoenix_fly1", 0)
pc.setqf("firephoenix1", 0)
cleartimer("bugcheck1")
end
end
-- Bugschutz
when bugcheck1.timer begin
if pc.count_item(53003) == 0 then
pet.unsummon()
horse.set_level("21")
horse.set_name(""..pc.get_name().." - Cal ")
syschat(" <Pet> Sigiliul nu a putut fi gasit! ")
affect.remove_collect(apply.MAX_HP, 4000, 60*60*8)
affect.remove_collect(apply.ATTBONUS_HUMAN, 10, 60*60*8)
affect.remove_collect(apply.CRITICAL_PCT, 15, 60*60*8)
affect.remove_collect(apply.PENETRATE_PCT, 15, 60*60*8)
pc.setqf("phoenix_fly1", 0)
pc.setqf("firephoenix1", 0)
cleartimer("bugcheck1")
end
end
when login or logout or disconnect with pc.getqf("firephoenix1") == 1 begin
horse.set_level("23")
horse.set_name(""..pc.get_name().." - Phoenix de Gheata")
pc.setqf("phoenix_fly1", 1)
pc.setqf("firephoenix1", 1)
pet.unsummon() pet.summon()
horse.set_level("21")
horse.set_name(""..pc.get_name().." - Cal ")
loop_timer("bugcheck1", 0.2)
end
end
end
quest official_pets begin
state start begin
when 53002.use with pc.getqf("firephoenix") == 0 and pc.getqf("firephoenix1") == 0
and pc.getqf("firephoenix3") == 0 and pc.getqf("firephoenix4") == 0
and pc.getqf("firephoenix5") == 0 and pc.getqf("firephoenix6") == 0
and pc.getqf("firephoenix7") == 0 begin
if pc.getqf("firephoenix2") == 0 then
horse.set_level("24")
horse.set_name(""..pc.get_name().." - Panda")
pc.setqf("phoenix_fly2", 1)
pc.setqf("firephoenix2", 1)
affect.add_collect(apply.MAX_HP, 5000, 60*60*8)
affect.add_collect(apply.ATTBONUS_HUMAN, 10, 60*60*8)
affect.add_collect(apply.CRITICAL_PCT, 15, 60*60*8)
affect.add_collect(apply.PENETRATE_PCT, 15, 60*60*8)
affect.add_collect(apply.CAST_SPEED, 20, 60*60*8)
pet.unsummon() pet.summon()
horse.set_level("21")
horse.set_name(""..pc.get_name().." - Cal ")
loop_timer("bugcheck2", 0.2)
elseif pc.getqf("firephoenix2") == 1 then
pet.unsummon()
horse.set_level("21")
horse.set_name(""..pc.get_name().." - Cal ")
affect.remove_collect(apply.MAX_HP, 4000, 60*60*8)
affect.remove_collect(apply.ATTBONUS_HUMAN, 10, 60*60*8)
affect.remove_collect(apply.CRITICAL_PCT, 15, 60*60*8)
affect.remove_collect(apply.PENETRATE_PCT, 15, 60*60*8)
pc.setqf("phoenix_fly2", 0)
pc.setqf("firephoenix2", 0)
cleartimer("bugcheck2")
end
end
-- Bugschutz
when bugcheck2.timer begin
if pc.count_item(53002) == 0 then
pet.unsummon()
horse.set_level("21")
horse.set_name(""..pc.get_name().." - Cal ")
syschat(" <Pet> Sigiliul nu a putut fi gasit! ")
affect.remove_collect(apply.MAX_HP, 4000, 60*60*8)
affect.remove_collect(apply.ATTBONUS_HUMAN, 10, 60*60*8)
affect.remove_collect(apply.CRITICAL_PCT, 15, 60*60*8)
affect.remove_collect(apply.PENETRATE_PCT, 15, 60*60*8)
pc.setqf("phoenix_fly2", 0)
pc.setqf("firephoenix2", 0)
cleartimer("bugcheck2")
end
end
when login or logout or disconnect with pc.getqf("firephoenix2") == 1 begin
horse.set_level("24")
horse.set_name(""..pc.get_name().." - Panda")
pc.setqf("phoenix_fly2", 1)
pc.setqf("firephoenix2", 1)
pet.unsummon() pet.summon()
horse.set_level("21")
horse.set_name(""..pc.get_name().." - Cal ")
loop_timer("bugcheck2", 0.2)
end
end
end
quest official_pets begin
state start begin
when 53005.use with pc.getqf("firephoenix") == 0 and pc.getqf("firephoenix1") == 0
and pc.getqf("firephoenix2") == 0 and pc.getqf("firephoenix4") == 0
and pc.getqf("firephoenix5") == 0 and pc.getqf("firephoenix6") == 0
and pc.getqf("firephoenix7") == 0 begin
if pc.getqf("firephoenix3") == 0 then
horse.set_level("25")
horse.set_name(""..pc.get_name().." - Baby Azrael")
pc.setqf("phoenix_fly3", 1)
pc.setqf("firephoenix3", 1)
affect.add_collect(apply.MAX_HP, 4000, 60*60*8)
affect.add_collect(apply.ATTBONUS_HUMAN, 10, 60*60*8)
affect.add_collect(apply.CRITICAL_PCT, 15, 60*60*8)
affect.add_collect(apply.PENETRATE_PCT, 15, 60*60*8)
pet.unsummon() pet.summon()
horse.set_level("21")
horse.set_name(""..pc.get_name().." - Cal ")
loop_timer("bugcheck3", 0.2)
elseif pc.getqf("firephoenix3") == 1 then
pet.unsummon()
horse.set_level("21")
horse.set_name(""..pc.get_name().." - Cal ")
affect.remove_collect(apply.MAX_HP, 4000, 60*60*8)
affect.remove_collect(apply.ATTBONUS_HUMAN, 10, 60*60*8)
affect.remove_collect(apply.CRITICAL_PCT, 15, 60*60*8)
affect.remove_collect(apply.PENETRATE_PCT, 15, 60*60*8)
pc.setqf("phoenix_fly3", 0)
pc.setqf("firephoenix3", 0)
cleartimer("bugcheck3")
end
end
-- Bugschutz
when bugcheck3.timer begin
if pc.count_item(53005) == 0 then
pet.unsummon()
horse.set_level("21")
horse.set_name(""..pc.get_name().." - Cal ")
syschat(" <Pet> Sigiliul nu a putut fi gasit! ")
affect.remove_collect(apply.MAX_HP, 4000, 60*60*8)
affect.remove_collect(apply.ATTBONUS_HUMAN, 10, 60*60*8)
affect.remove_collect(apply.CRITICAL_PCT, 15, 60*60*8)
affect.remove_collect(apply.PENETRATE_PCT, 15, 60*60*8)
pc.setqf("phoenix_fly3", 0)
pc.setqf("firephoenix3", 0)
cleartimer("bugcheck3")
end
end
when login or logout or disconnect with pc.getqf("firephoenix3") == 1 begin
horse.set_level("25")
horse.set_name(""..pc.get_name().." - Baby Azrael")
pc.setqf("phoenix_fly3", 1)
pc.setqf("firephoenix3", 1)
pet.unsummon() pet.summon()
horse.set_level("21")
horse.set_name(""..pc.get_name().." - Cal ")
loop_timer("bugcheck3", 0.2)
end
end
end
quest official_pets begin
state start begin
when 53006.use with pc.getqf("firephoenix") == 0 and pc.getqf("firephoenix1") == 0
and pc.getqf("firephoenix2") == 0 and pc.getqf("firephoenix3") == 0
and pc.getqf("firephoenix5") == 0 and pc.getqf("firephoenix6") == 0
and pc.getqf("firephoenix7") == 0 begin
if pc.getqf("firephoenix4") == 0 then
horse.set_level("26")
horse.set_name(""..pc.get_name().." - Caine")
pc.setqf("phoenix_fly4", 1)
pc.setqf("firephoenix4", 1)
affect.add_collect(apply.MAX_HP, 3000, 60*60*8)
affect.add_collect(apply.ATTBONUS_UNDEAD, 15, 60*60*8)
affect.add_collect(apply.ATTBONUS_DEVIL, 15, 60*60*8)
affect.add_collect(apply.ATTBONUS_ANIMAL, 15, 60*60*8)
affect.add_collect(apply.CRITICAL_PCT, 10, 60*60*8)
affect.add_collect(apply.PENETRATE_PCT, 10, 60*60*8)
affect.add_collect(apply.CON, 20, 60*60*8)
pet.unsummon() pet.summon()
horse.set_level("21")
horse.set_name(""..pc.get_name().." - Cal ")
loop_timer("bugcheck4", 0.2)
elseif pc.getqf("firephoenix4") == 1 then
pet.unsummon()
horse.set_level("21")
horse.set_name(""..pc.get_name().." - Cal ")
affect.remove_collect(apply.MAX_HP, 3000, 60*60*8)
affect.remove_collect(apply.ATTBONUS_UNDEAD, 15, 60*60*8)
affect.remove_collect(apply.ATTBONUS_DEVIL, 15, 60*60*8)
affect.remove_collect(apply.ATTBONUS_ANIMAL, 15, 60*60*8)
affect.remove_collect(apply.CRITICAL_PCT, 10, 60*60*8)
affect.remove_collect(apply.PENETRATE_PCT, 10, 60*60*8)
affect.remove_collect(apply.CON, 20, 60*60*8)
pc.setqf("phoenix_fly4", 0)
pc.setqf("firephoenix4", 0)
cleartimer("bugcheck4")
end
end
-- Bugschutz
when bugcheck4.timer begin
if pc.count_item(53006) == 0 then
pet.unsummon()
horse.set_level("21")
horse.set_name(""..pc.get_name().." - Cal ")
syschat(" <Pet> Sigiliul nu a putut fi gasit! ")
affect.remove_collect(apply.MAX_HP, 3000, 60*60*8)
affect.remove_collect(apply.ATTBONUS_UNDEAD, 15, 60*60*8)
affect.remove_collect(apply.ATTBONUS_DEVIL, 15, 60*60*8)
affect.remove_collect(apply.ATTBONUS_ANIMAL, 15, 60*60*8)
affect.remove_collect(apply.CRITICAL_PCT, 10, 60*60*8)
affect.remove_collect(apply.PENETRATE_PCT, 10, 60*60*8)
affect.remove_collect(apply.CON, 20, 60*60*8)
pc.setqf("phoenix_fly4", 0)
pc.setqf("firephoenix4", 0)
cleartimer("bugcheck4")
end
end
when login or logout or disconnect with pc.getqf("firephoenix4") == 1 begin
horse.set_level("26")
horse.set_name(""..pc.get_name().." - Caine")
pc.setqf("phoenix_fly4", 1)
pc.setqf("firephoenix4", 1)
pet.unsummon() pet.summon()
horse.set_level("21")
horse.set_name(""..pc.get_name().." - Cal ")
loop_timer("bugcheck4", 0.2)
end
end
end
quest official_pets begin
state start begin
when 53007.use with pc.getqf("firephoenix") == 0 and pc.getqf("firephoenix1") == 0
and pc.getqf("firephoenix2") == 0 and pc.getqf("firephoenix3") == 0
and pc.getqf("firephoenix4") == 0 and pc.getqf("firephoenix6") == 0
and pc.getqf("firephoenix7") == 0 begin
if pc.getqf("firephoenix5") == 0 then
horse.set_level("27")
horse.set_name(""..pc.get_name().." - Leu")
pc.setqf("phoenix_fly5", 1)
pc.setqf("firephoenix5", 1)
affect.add_collect(apply.MAX_HP, 3000, 60*60*8)
affect.add_collect(apply.ATTBONUS_UNDEAD, 15, 60*60*8)
affect.add_collect(apply.ATTBONUS_DEVIL, 15, 60*60*8)
affect.add_collect(apply.ATTBONUS_ANIMAL, 15, 60*60*8)
affect.add_collect(apply.CRITICAL_PCT, 10, 60*60*8)
affect.add_collect(apply.PENETRATE_PCT, 10, 60*60*8)
affect.add_collect(apply.DEX, 10, 60*60*8)
pet.unsummon() pet.summon()
horse.set_level("21")
horse.set_name(""..pc.get_name().." - Cal ")
loop_timer("bugcheck5", 0.2)
elseif pc.getqf("firephoenix5") == 1 then
pet.unsummon()
horse.set_level("21")
horse.set_name(""..pc.get_name().." - Cal ")
affect.remove_collect(apply.MAX_HP, 3000, 60*60*8)
affect.remove_collect(apply.ATTBONUS_UNDEAD, 15, 60*60*8)
affect.remove_collect(apply.ATTBONUS_DEVIL, 15, 60*60*8)
affect.remove_collect(apply.ATTBONUS_ANIMAL, 15, 60*60*8)
affect.remove_collect(apply.CRITICAL_PCT, 10, 60*60*8)
affect.remove_collect(apply.PENETRATE_PCT, 10, 60*60*8)
affect.remove_collect(apply.DEX, 10, 60*60*8)
pc.setqf("phoenix_fly5", 0)
pc.setqf("firephoenix5", 0)
cleartimer("bugcheck5")
end
end
-- Bugschutz
when bugcheck5.timer begin
if pc.count_item(53007) == 0 then
pet.unsummon()
horse.set_level("21")
horse.set_name(""..pc.get_name().." - Cal ")
syschat(" <Pet> Sigiliul nu a putut fi gasit! ")
affect.remove_collect(apply.MAX_HP, 3000, 60*60*8)
affect.remove_collect(apply.ATTBONUS_UNDEAD, 15, 60*60*8)
affect.remove_collect(apply.ATTBONUS_DEVIL, 15, 60*60*8)
affect.remove_collect(apply.ATTBONUS_ANIMAL, 15, 60*60*8)
affect.remove_collect(apply.CRITICAL_PCT, 10, 60*60*8)
affect.remove_collect(apply.PENETRATE_PCT, 10, 60*60*8)
affect.remove_collect(apply.DEX, 10, 60*60*8)
pc.setqf("phoenix_fly5", 0)
pc.setqf("firephoenix5", 0)
cleartimer("bugcheck5")
end
end
when login or logout or disconnect with pc.getqf("firephoenix5") == 1 begin
horse.set_level("27")
horse.set_name(""..pc.get_name().." - Leu")
pc.setqf("phoenix_fly5", 1)
pc.setqf("firephoenix5", 1)
pet.unsummon() pet.summon()
horse.set_level("21")
horse.set_name(""..pc.get_name().." - Cal ")
loop_timer("bugcheck5", 0.2)
end
end
end
quest official_pets begin
state start begin
when 53008.use with pc.getqf("firephoenix") == 0 and pc.getqf("firephoenix1") == 0
and pc.getqf("firephoenix2") == 0 and pc.getqf("firephoenix3") == 0
and pc.getqf("firephoenix4") == 0 and pc.getqf("firephoenix5") == 0
and pc.getqf("firephoenix7") == 0 begin
cmdchat("buff15")
if pc.getqf("firephoenix6") == 0 then
horse.set_level("28")
horse.set_name(""..pc.get_name().." - Porc")
pc.setqf("phoenix_fly6", 1)
pc.setqf("firephoenix6", 1)
affect.add_collect(apply.MAX_HP, 3000, 60*60*8)
affect.add_collect(apply.ATTBONUS_UNDEAD, 15, 60*60*8)
affect.add_collect(apply.ATTBONUS_DEVIL, 15, 60*60*8)
affect.add_collect(apply.ATTBONUS_ANIMAL, 15, 60*60*8)
affect.add_collect(apply.CRITICAL_PCT, 10, 60*60*8)
affect.add_collect(apply.PENETRATE_PCT, 10, 60*60*8)
affect.add_collect(apply.INT, 10, 60*60*8)
pet.unsummon() pet.summon()
horse.set_level("21")
horse.set_name(""..pc.get_name().." - Cal ")
loop_timer("bugcheck6", 0.2)
elseif pc.getqf("firephoenix6") == 1 then
pet.unsummon()
horse.set_level("21")
horse.set_name(""..pc.get_name().." - Cal ")
affect.remove_collect(apply.MAX_HP, 3000, 60*60*8)
affect.remove_collect(apply.ATTBONUS_UNDEAD, 15, 60*60*8)
affect.remove_collect(apply.ATTBONUS_DEVIL, 15, 60*60*8)
affect.remove_collect(apply.ATTBONUS_ANIMAL, 15, 60*60*8)
affect.remove_collect(apply.CRITICAL_PCT, 10, 60*60*8)
affect.remove_collect(apply.PENETRATE_PCT, 10, 60*60*8)
affect.remove_collect(apply.INT, 10, 60*60*8)
pc.setqf("phoenix_fly6", 0)
pc.setqf("firephoenix6", 0)
cleartimer("bugcheck6")
end
end
-- Bugschutz
when bugcheck6.timer begin
if pc.count_item(53008) == 0 then
pet.unsummon()
horse.set_level("21")
horse.set_name(""..pc.get_name().." - Cal ")
syschat(" <Pet> Sigiliul nu a putut fi gasit! ")
affect.remove_collect(apply.MAX_HP, 3000, 60*60*8)
affect.remove_collect(apply.ATTBONUS_UNDEAD, 15, 60*60*8)
affect.remove_collect(apply.ATTBONUS_DEVIL, 15, 60*60*8)
affect.remove_collect(apply.ATTBONUS_ANIMAL, 15, 60*60*8)
affect.remove_collect(apply.CRITICAL_PCT, 10, 60*60*8)
affect.remove_collect(apply.PENETRATE_PCT, 10, 60*60*8)
affect.remove_collect(apply.INT, 10, 60*60*8)
pc.setqf("phoenix_fly6", 0)
pc.setqf("firephoenix6", 0)
cleartimer("bugcheck6")
end
end
when login or logout or disconnect with pc.getqf("firephoenix6") == 1 begin
horse.set_level("28")
horse.set_name(""..pc.get_name().." - Porc")
pc.setqf("phoenix_fly6", 1)
pc.setqf("firephoenix6", 1)
pet.unsummon() pet.summon()
horse.set_level("21")
horse.set_name(""..pc.get_name().." - Cal ")
loop_timer("bugcheck6", 0.2)
end
end
end
quest official_pets begin
state start begin
when 53009.use with pc.getqf("firephoenix") == 0 and pc.getqf("firephoenix1") == 0
and pc.getqf("firephoenix2") == 0 and pc.getqf("firephoenix3") == 0
and pc.getqf("firephoenix4") == 0 and pc.getqf("firephoenix5") == 0
and pc.getqf("firephoenix6") == 0 begin
cmdchat("buff8")
if pc.getqf("firephoenix7") == 0 then
horse.set_level("29")
horse.set_name(""..pc.get_name().." - Tigru")
pc.setqf("phoenix_fly7", 1)
pc.setqf("firephoenix7", 1)
affect.add_collect(apply.MAX_HP, 3000, 60*60*8)
affect.add_collect(apply.ATTBONUS_UNDEAD, 15, 60*60*8)
affect.add_collect(apply.ATTBONUS_DEVIL, 15, 60*60*8)
affect.add_collect(apply.ATTBONUS_ANIMAL, 15, 60*60*8)
affect.add_collect(apply.CRITICAL_PCT, 10, 60*60*8)
affect.add_collect(apply.PENETRATE_PCT, 10, 60*60*8)
affect.add_collect(apply.STR, 10, 60*60*8)
pet.unsummon() pet.summon()
horse.set_level("21")
horse.set_name(""..pc.get_name().." - Cal ")
loop_timer("bugcheck7", 0.2)
elseif pc.getqf("firephoenix7") == 1 then
pet.unsummon()
horse.set_level("21")
horse.set_name(""..pc.get_name().." - Cal ")
affect.remove_collect(apply.MAX_HP, 3000, 60*60*8)
affect.remove_collect(apply.ATTBONUS_UNDEAD, 15, 60*60*8)
affect.remove_collect(apply.ATTBONUS_DEVIL, 15, 60*60*8)
affect.remove_collect(apply.ATTBONUS_ANIMAL, 15, 60*60*8)
affect.remove_collect(apply.CRITICAL_PCT, 10, 60*60*8)
affect.remove_collect(apply.PENETRATE_PCT, 10, 60*60*8)
affect.remove_collect(apply.STR, 10, 60*60*8)
pc.setqf("phoenix_fly7", 0)
pc.setqf("firephoenix7", 0)
cleartimer("bugcheck7")
end
end
-- Bugschutz
when bugcheck7.timer begin
if pc.count_item(53009) == 0 then
pet.unsummon()
horse.set_level("21")
horse.set_name(""..pc.get_name().." - Cal ")
syschat(" <Pet> Sigiliul nu a putut fi gasit! ")
affect.remove_collect(apply.MAX_HP, 3000, 60*60*8)
affect.remove_collect(apply.ATTBONUS_UNDEAD, 15, 60*60*8)
affect.remove_collect(apply.ATTBONUS_DEVIL, 15, 60*60*8)
affect.remove_collect(apply.ATTBONUS_ANIMAL, 15, 60*60*8)
affect.remove_collect(apply.CRITICAL_PCT, 10, 60*60*8)
affect.remove_collect(apply.PENETRATE_PCT, 10, 60*60*8)
affect.remove_collect(apply.STR, 10, 60*60*8)
pc.setqf("phoenix_fly7", 0)
pc.setqf("firephoenix7", 0)
cleartimer("bugcheck7")
end
end
when login or logout or disconnect with pc.getqf("firephoenix7") == 1 begin
horse.set_level("29")
horse.set_name(""..pc.get_name().." - Tigru")
pc.setqf("phoenix_fly7", 1)
pc.setqf("firephoenix7", 1)
pet.unsummon() pet.summon()
horse.set_level("21")
horse.set_name(""..pc.get_name().." - Cal ")
loop_timer("bugcheck7", 0.2)
end
end
end
quest official_pets begin
state start begin
when 53010.use with pc.getqf("firephoenix") == 0 and pc.getqf("firephoenix1") == 0
and pc.getqf("firephoenix2") == 0 and pc.getqf("firephoenix3") == 0
and pc.getqf("firephoenix4") == 0 and pc.getqf("firephoenix5") == 0
and pc.getqf("firephoenix8") == 0 begin
cmdchat("buff8")
if pc.getqf("firephoenix7") == 0 then
horse.set_level("29")
horse.set_name(""..pc.get_name().." - Tigru")
pc.setqf("phoenix_fly7", 1)
pc.setqf("firephoenix7", 1)
affect.add_collect(apply.MAX_HP, 3000, 60*60*8)
affect.add_collect(apply.ATTBONUS_UNDEAD, 15, 60*60*8)
affect.add_collect(apply.ATTBONUS_DEVIL, 15, 60*60*8)
affect.add_collect(apply.ATTBONUS_ANIMAL, 15, 60*60*8)
affect.add_collect(apply.CRITICAL_PCT, 10, 60*60*8)
affect.add_collect(apply.PENETRATE_PCT, 10, 60*60*8)
affect.add_collect(apply.STR, 10, 60*60*8)
pet.unsummon() pet.summon()
horse.set_level("21")
horse.set_name(""..pc.get_name().." - Cal ")
loop_timer("bugcheck7", 0.2)
elseif pc.getqf("firephoenix7") == 1 then
pet.unsummon()
horse.set_level("21")
horse.set_name(""..pc.get_name().." - Cal ")
affect.remove_collect(apply.MAX_HP, 3000, 60*60*8)
affect.remove_collect(apply.ATTBONUS_UNDEAD, 15, 60*60*8)
affect.remove_collect(apply.ATTBONUS_DEVIL, 15, 60*60*8)
affect.remove_collect(apply.ATTBONUS_ANIMAL, 15, 60*60*8)
affect.remove_collect(apply.CRITICAL_PCT, 10, 60*60*8)
affect.remove_collect(apply.PENETRATE_PCT, 10, 60*60*8)
affect.remove_collect(apply.STR, 10, 60*60*8)
pc.setqf("phoenix_fly7", 0)
pc.setqf("firephoenix7", 0)
cleartimer("bugcheck7")
end
end
-- Bugschutz
when bugcheck7.timer begin
if pc.count_item(53009) == 0 then
pet.unsummon()
horse.set_level("21")
horse.set_name(""..pc.get_name().." - Cal ")
syschat(" <Pet> Sigiliul nu a putut fi gasit! ")
affect.remove_collect(apply.MAX_HP, 3000, 60*60*8)
affect.remove_collect(apply.ATTBONUS_UNDEAD, 15, 60*60*8)
affect.remove_collect(apply.ATTBONUS_DEVIL, 15, 60*60*8)
affect.remove_collect(apply.ATTBONUS_ANIMAL, 15, 60*60*8)
affect.remove_collect(apply.CRITICAL_PCT, 10, 60*60*8)
affect.remove_collect(apply.PENETRATE_PCT, 10, 60*60*8)
affect.remove_collect(apply.STR, 10, 60*60*8)
pc.setqf("phoenix_fly7", 0)
pc.setqf("firephoenix7", 0)
cleartimer("bugcheck7")
end
end
when login or logout or disconnect with pc.getqf("firephoenix7") == 1 begin
horse.set_level("29")
horse.set_name(""..pc.get_name().." - Tigru")
pc.setqf("phoenix_fly7", 1)
pc.setqf("firephoenix7", 1)
pet.unsummon() pet.summon()
horse.set_level("21")
horse.set_name(""..pc.get_name().." - Cal ")
loop_timer("bugcheck7", 0.2)
end
end
end






