problema pet system

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Închis
Avatar utilizator
MGeorge
Nivel 3

Nivel 3
Mesaje: 317
Membru din: 28 Dec 2013, 12:43
Server: -
Regat: Chunjo
Aprecieri: 367  
Mulţumiri: 8  
Medalii

Se da acest pet system facut de mine:
quest ride_pet begin
state start begin
when 53001.use begin
if pet.is_summon(34001) then
pet.unsummon(34001)
affect.remove_collect(apply.MAX_HP ,1500,60*60*24*365)
affect.remove_collect(apply.ATTBONUS_ANIMAL ,30,60*60*24*365)
else
pet.summon(34001, "-Phoenix de foc")
affect.add_collect(apply.MAX_HP ,1500,60*60*24*365)
affect.add_collect(apply.ATTBONUS_ANIMAL ,30,60*60*24*365)
end
end
when 53002.use begin
if pet.is_summon(34002) then
pet.unsummon(34002)
affect.remove_collect(apply.MAX_HP ,1500,60*60*24*365)
affect.remove_collect(apply.ATT_BONUS_TO_MONSTER ,10,60*60*24*365)
else
pet.summon(34002, "-Pui de Ren")
affect.add_collect(apply.MAX_HP ,1500,60*60*24*365)
affect.add_collect(apply.ATT_BONUS_TO_MONSTER ,10,60*60*24*365)
end
end
when 53003.use begin
if pet.is_summon(34003) then
pet.unsummon(34003)
affect.remove_collect(apply.ATT_GRADE_BONUS ,20,60*60*24*365)
affect.remove_collect(apply.MAX_HP ,2000,60*60*24*365)
affect.remove_collect(apply.ATT_BONUS_TO_MONSTER ,15,60*60*24*365)
else
pet.summon(34003, "-Phoenix de Gheata")
affect.add_collect(apply.ATT_GRADE_BONUS ,20,60*60*24*365)
affect.add_collect(apply.MAX_HP ,2000,60*60*24*365)
affect.add_collect(apply.ATT_BONUS_TO_MONSTER ,15,60*60*24*365)
end
end
when 53005.use begin
if pet.is_summon(34004) then
pet.unsummon(34004)
affect.remove_collect(apply.ATT_GRADE_BONUS ,25,60*60*24*365)
affect.remove_collect(apply.MAX_HP ,2600,60*60*24*365)
affect.remove_collect(apply.MAX_SP ,1600,60*60*24*365)
else
pet.summon(34004, "-Azrael")
affect.add_collect(apply.ATT_GRADE_BONUS ,25,60*60*24*365)
affect.add_collect(apply.MAX_HP ,2600,60*60*24*365)
affect.add_collect(apply.MAX_SP ,1600,60*60*24*365)
end
end
when 53006.use begin
if pet.is_summon(34009) then
pet.unsummon(34009)
affect.remove_collect(apply.ATT_GRADE_BONUS ,30,60*60*24*365)
affect.remove_collect(apply.MAX_HP ,2800,60*60*24*365)
affect.remove_collect(apply.MAX_SP ,1800,60*60*24*365)
else
pet.summon(34009, "-Azrael Aur")
affect.add_collect(apply.ATT_GRADE_BONUS ,30,60*60*24*365)
affect.add_collect(apply.MAX_HP ,2800,60*60*24*365)
affect.add_collect(apply.MAX_SP ,1800,60*60*24*365)
end
end
when 53007.use begin
if pet.is_summon(34010) then
pet.unsummon(34010)
affect.remove_collect(apply.ATT_GRADE_BONUS ,35,60*60*24*365)
affect.remove_collect(apply.MAX_HP ,3000,60*60*24*365)
affect.remove_collect(apply.MAX_SP ,2000,60*60*24*365)
else
pet.summon(34010, "-Bambi")
affect.add_collect(apply.ATT_GRADE_BONUS ,35,60*60*24*365)
affect.add_collect(apply.MAX_HP ,3000,60*60*24*365)
affect.add_collect(apply.MAX_SP ,2000,60*60*24*365)
end
end
when 53008.use begin
if pet.is_summon(34011) then
pet.unsummon(34011)
affect.remove_collect(apply.ATT_GRADE_BONUS ,40,60*60*24*365)
affect.remove_collect(apply.MAX_HP ,3200,60*60*24*365)
affect.remove_collect(apply.MAX_SP ,2200,60*60*24*365)
else
pet.summon(34011, "-Knuud")
affect.add_collect(apply.ATT_GRADE_BONUS ,40,60*60*24*365)
affect.add_collect(apply.MAX_HP ,3200,60*60*24*365)
affect.add_collect(apply.MAX_SP ,2200,60*60*24*365)
end
end
when 53009.use begin
if pet.is_summon(34012) then
pet.unsummon(34012)
affect.remove_collect(apply.ATT_GRADE_BONUS ,45,60*60*24*365)
affect.remove_collect(apply.MAX_HP ,3400,60*60*24*365)
affect.remove_collect(apply.MAX_SP ,2400,60*60*24*365)
else
pet.summon(34012, "-Bao Bao")
affect.add_collect(apply.ATT_GRADE_BONUS ,45,60*60*24*365)
affect.add_collect(apply.MAX_HP ,3400,60*60*24*365)
affect.add_collect(apply.MAX_SP ,2400,60*60*24*365)
end
end
when 53010.use begin
if pet.is_summon(34008) then
pet.unsummon(34008)
affect.remove_collect(apply.ATT_GRADE_BONUS ,50,60*60*24*365)
affect.remove_collect(apply.MAX_HP ,3600,60*60*24*365)
affect.remove_collect(apply.MAX_SP ,2600,60*60*24*365)
else
pet.summon(34008, "-Leonidas")
affect.add_collect(apply.ATT_GRADE_BONUS ,50,60*60*24*365)
affect.add_collect(apply.MAX_HP ,3600,60*60*24*365)
affect.add_collect(apply.MAX_SP ,2600,60*60*24*365)
end
end
when 53011.use begin
if pet.is_summon(34007) then
pet.unsummon(34007)
affect.remove_collect(apply.ATT_GRADE_BONUS ,55,60*60*24*365)
affect.remove_collect(apply.MAX_HP ,3800,60*60*24*365)
affect.remove_collect(apply.MAX_SP ,2800,60*60*24*365)
else
pet.summon(34007, "-Khan")
affect.add_collect(apply.ATT_GRADE_BONUS ,55,60*60*24*365)
affect.add_collect(apply.MAX_HP ,3800,60*60*24*365)
affect.add_collect(apply.MAX_SP ,2800,60*60*24*365)
end
end
when 53012.use begin
if pet.is_summon(34005) then
pet.unsummon(34005)
affect.remove_collect(apply.ATT_GRADE_BONUS ,60,60*60*24*365)
affect.remove_collect(apply.MAX_HP ,4000,60*60*24*365)
affect.remove_collect(apply.MAX_SP ,3000,60*60*24*365)
else
pet.summon(34005, "-Porkie")
affect.add_collect(apply.ATT_GRADE_BONUS ,60,60*60*24*365)
affect.add_collect(apply.MAX_HP ,4000,60*60*24*365)
affect.add_collect(apply.MAX_SP ,3000,60*60*24*365)
end
end
when 53013.use begin
if pet.is_summon(34006) then
pet.unsummon(34006)
affect.remove_collect(apply.ATT_GRADE_BONUS ,65,60*60*24*365)
affect.remove_collect(apply.MAX_HP ,4200,60*60*24*365)
affect.remove_collect(apply.MAX_SP ,3200,60*60*24*365)
else
pet.summon(34006, "-Rufus")
affect.add_collect(apply.ATT_GRADE_BONUS ,65,60*60*24*365)
affect.add_collect(apply.MAX_HP ,4200,60*60*24*365)
affect.add_collect(apply.MAX_SP ,3200,60*60*24*365)
end
end
when 53014.use begin
if pet.is_summon(34013) then
pet.unsummon(34013)
affect.remove_collect(apply.ATT_GRADE_BONUS ,70,60*60*24*365)
affect.remove_collect(apply.MAX_HP ,4400,60*60*24*365)
affect.remove_collect(apply.MAX_SP ,3400,60*60*24*365)
else
pet.summon(34013, "-Mini-Executor")
affect.add_collect(apply.ATT_GRADE_BONUS ,70,60*60*24*365)
affect.add_collect(apply.MAX_HP ,4400,60*60*24*365)
affect.add_collect(apply.MAX_SP ,3400,60*60*24*365)
end
end
when 53015.use begin
if pet.is_summon(34014) then
pet.unsummon(34014)
affect.remove_collect(apply.ATT_GRADE_BONUS ,75,60*60*24*365)
affect.remove_collect(apply.MAX_HP ,4600,60*60*24*365)
affect.remove_collect(apply.MAX_SP ,3600,60*60*24*365)
else
pet.summon(34014, "-Mini-Ex. Gold")
affect.add_collect(apply.ATT_GRADE_BONUS ,75,60*60*24*365)
affect.add_collect(apply.MAX_HP ,4600,60*60*24*365)
affect.add_collect(apply.MAX_SP ,3600,60*60*24*365)
end
end
when 53016.use begin
if pet.is_summon(34015) then
pet.unsummon(34015)
affect.remove_collect(apply.ATT_GRADE_BONUS ,80,60*60*24*365)
affect.remove_collect(apply.MAX_HP ,4800,60*60*24*365)
affect.remove_collect(apply.MAX_SP ,3800,60*60*24*365)
else
pet.summon(34015, "-Boney")
affect.add_collect(apply.ATT_GRADE_BONUS ,80,60*60*24*365)
affect.add_collect(apply.MAX_HP ,4800,60*60*24*365)
affect.add_collect(apply.MAX_SP ,3800,60*60*24*365)
end
end
when 53017.use begin
if pet.is_summon(34016) then
pet.unsummon(34016)
affect.remove_collect(apply.ATT_GRADE_BONUS ,85,60*60*24*365)
affect.remove_collect(apply.MAX_HP ,5000,60*60*24*365)
affect.remove_collect(apply.MAX_SP ,4000,60*60*24*365)
else
pet.summon(34016, "-Phoenix de Jad")
affect.add_collect(apply.ATT_GRADE_BONUS ,85,60*60*24*365)
affect.add_collect(apply.MAX_HP ,5000,60*60*24*365)
affect.add_collect(apply.MAX_SP ,4000,60*60*24*365)
end
end
when 53022.use begin
if pet.is_summon(34021) then
pet.unsummon(34021)
affect.remove_collect(apply.DEF_GRADE_BONUS,300,60*60*24*365)
affect.remove_collect(apply.ATT_GRADE_BONUS,300,60*60*24*365)
else
pet.summon(34021, "-Sheldon")
affect.add_collect(apply.DEF_GRADE_BONUS,300,60*60*24*365)
affect.add_collect(apply.ATT_GRADE_BONUS,300,60*60*24*365)
end
end
when 53023.use begin
if pet.is_summon(34022) then
pet.unsummon(34022)
affect.remove_collect(apply.DEF_GRADE_BONUS,300,60*60*24*365)
affect.remove_collect(apply.ATT_GRADE_BONUS,300,60*60*24*365)
else
pet.summon(34022, "-Cooper")
affect.add_collect(apply.DEF_GRADE_BONUS,300,60*60*24*365)
affect.add_collect(apply.ATT_GRADE_BONUS,300,60*60*24*365)
end
end
when 55701.use begin
if pet.is_summon(55701) then
pet.unsummon(55701)
affect.remove_collect(apply.DEF_GRADE_BONUS,100,60*60*24*365)
affect.remove_collect(apply.HP_REGEN ,45,60*60*24*365)
affect.remove_collect(apply.IMMUNE_STUN ,1,60*60*24*365)
else
pet.summon(55701, "-Maimuta")
affect.add_collect(apply.DEF_GRADE_BONUS,100,60*60*24*365)
affect.add_collect(apply.HP_REGEN ,45,60*60*24*365)
affect.add_collect(apply.IMMUNE_STUN ,1,60*60*24*365)
end
end
when 55702.use begin
if pet.is_summon(55702) then
pet.unsummon(55702)
affect.remove_collect(apply.DEF_GRADE_BONUS,100,60*60*24*365)
affect.remove_collect(apply.HP_REGEN ,45,60*60*24*365)
affect.remove_collect(apply.IMMUNE_STUN ,1,60*60*24*365)
else
pet.summon(55702, "-Paianjen")
affect.add_collect(apply.DEF_GRADE_BONUS,100,60*60*24*365)
affect.add_collect(apply.HP_REGEN ,45,60*60*24*365)
affect.add_collect(apply.IMMUNE_STUN ,1,60*60*24*365)
end
end
when 55703.use begin
if pet.is_summon(55703) then
pet.unsummon(55703)
affect.remove_collect(apply.DEF_GRADE_BONUS,100,60*60*24*365)
affect.remove_collect(apply.HP_REGEN ,45,60*60*24*365)
affect.remove_collect(apply.IMMUNE_STUN ,1,60*60*24*365)
else
pet.summon(55703, "-Razador")
affect.add_collect(apply.DEF_GRADE_BONUS,100,60*60*24*365)
affect.add_collect(apply.HP_REGEN ,45,60*60*24*365)
affect.add_collect(apply.IMMUNE_STUN ,1,60*60*24*365)
end
end
when 55704.use begin
if pet.is_summon(55704) then
pet.unsummon(55704)
affect.remove_collect(apply.DEF_GRADE_BONUS,100,60*60*24*365)
affect.remove_collect(apply.HP_REGEN ,45,60*60*24*365)
affect.remove_collect(apply.IMMUNE_STUN ,1,60*60*24*365)
else
pet.summon(55704, "-Nemere")
affect.add_collect(apply.DEF_GRADE_BONUS,100,60*60*24*365)
affect.add_collect(apply.HP_REGEN ,45,60*60*24*365)
affect.add_collect(apply.IMMUNE_STUN ,1,60*60*24*365)
end
end

end
end
problema este ca poti chema mai multe pet-uri deodata...ce pot face? fara sa modific quest-ul?
Avatar utilizator
Braxy
Quest Creator

Quest Creator
Mesaje: 293
Membru din: 04 Mai 2016, 17:13
Regat: Jinno
Aprecieri: 7  
Mulţumiri: 228  
Medalii

Acest lucru il poti face din client dar nu recomand pentru ca un client poate fi decriptat , deasemenea poti face acest lucru si din sursa , eu nu stiu daca deti sursa asa ca varianta de Lua (Quest) este perfecta in acest caz , mai jos ai rezolvare. (*Nu am testat , incearca si spune-mi rezultatul, daca este ceva gresit revin cu edit)

Cum ar trebui sa arate questul dupa adaugarea codului :
Imagine
Acesta este codul

Cod: Selectaţi tot

when 53001.use or 53002.use or 53003.use or 53005.use or 53006.use or 53007.use or 53008.use or 53009.use or 53010.use or 53011.use or 53012.use or 53013.use or 53014.use or 53015.use or 53016.use or 53017.use or 53022.use or 53023.use or 55701.use or 55702.use or 55703.use or 55704.use begin
		if pet.is_summon() then
			syschat("[i]: Nu poti chema un alt pet daca ai deja unul chemat")
		end
	end
Avatar utilizator
MGeorge
Nivel 3

Nivel 3
Mesaje: 317
Membru din: 28 Dec 2013, 12:43
Server: -
Regat: Chunjo
Aprecieri: 367  
Mulţumiri: 8  
Medalii

nu functioneaza...uite cum se manifesta...
http://tinypic.com/r/30tsxtg/9
PS: detin si sursa
Închis

Înapoi la “Arhivă Probleme şi Întrebări”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 60 vizitatori