[Rezolvat]Probleme quest Roua Permanenta

Înainte de a posta o problemă, caută în acest forum și poate găsești rezolvare.
Închis
Avatar utilizator
norryTM
Nivel 1

Nivel 1
Mesaje: 82
Membru din: 07 Sep 2014, 19:58
Aprecieri: 2  
Mulţumiri: 1  
 Contact:
Medalii

Salut am si eu o problema cu un quest pentru roua.. si anume da bonusirile de n ori la playeri.. as vrea sa dea doar o singura data acel bonus.
Questu ar fi :

Cod: Selectaţi tot

quest rouapermanenta begin
        state start begin
                when 20095.chat."Roua Permanenta" begin           
                    say("Eu iti pot oferii")
                    say("roua permanenta.")
                    say("Esti sigur ca vrei?")                   
                    local s=select("Da!")                   
                    if s==1 then
                    --Da!
         say_reward("Bonus Viteza de miscare +10% (Permanent).")
         say_reward("Bonus Viteza de atac +10% (Permanent).")
         say_reward("Valoarea atacului +120% (Permanent).")
         say_reward("Rezistenta la magie +20% (Permanent).")
         say_reward("Aparare +200% (Permanent).")
         say_reward("Sansa de lov. Critica +20% (Permanent).")
         say_reward("Sansa de lov. Patrunzatoare +20% (Permanent).")
         affect.add_collect(apply.MOV_SPEED, 10, 60*60*24*365*60) --60年   
         affect.add_collect(apply.ATT_SPEED, 10, 60*60*24*365*60) --60年   
         affect.add_collect(apply.CRITICAL_PCT, 20, 60*60*24*365*60) --60年
         affect.add_collect(apply.PENETRATE_PCT, 20, 60*60*24*365*60) --60年   
         affect.add_collect(apply.ATT_GRADE_BONUS, 120, 60*60*24*365*60) --60年
         affect.add_collect(apply.DEF_GRADE_BONUS, 200, 60*60*24*365*60) --60年
         affect.add_collect(apply.RESIST_MAGIC, 20, 60*60*24*365*60) --60年  
         end
      end
   end 
end 
Avatar utilizator
Syron
Developer

Developer
Mesaje: 712
Membru din: 14 Mai 2014, 23:41
Aprecieri: 5  
Mulţumiri: 138  
Medalii

Cod: Selectaţi tot

quest rouapermanenta begin
        state start begin
                when 20095.chat."Roua Permanenta" with pc.getqf("roua") == 0 begin           
                    say("Eu iti pot oferii")
                    say("roua permanenta.")
                    say("Esti sigur ca vrei?")                   
                    local s=select("Da!")                   
                    if s==1 then
                    --Da!
         say_reward("Bonus Viteza de miscare +10% (Permanent).")
         say_reward("Bonus Viteza de atac +10% (Permanent).")
         say_reward("Valoarea atacului +120% (Permanent).")
         say_reward("Rezistenta la magie +20% (Permanent).")
         say_reward("Aparare +200% (Permanent).")
         say_reward("Sansa de lov. Critica +20% (Permanent).")
         say_reward("Sansa de lov. Patrunzatoare +20% (Permanent).")
         affect.add_collect(apply.MOV_SPEED, 10, 60*60*24*365*60) --60年   
         affect.add_collect(apply.ATT_SPEED, 10, 60*60*24*365*60) --60年   
         affect.add_collect(apply.CRITICAL_PCT, 20, 60*60*24*365*60) --60年
         affect.add_collect(apply.PENETRATE_PCT, 20, 60*60*24*365*60) --60年   
         affect.add_collect(apply.ATT_GRADE_BONUS, 120, 60*60*24*365*60) --60年
         affect.add_collect(apply.DEF_GRADE_BONUS, 200, 60*60*24*365*60) --60年
         affect.add_collect(apply.RESIST_MAGIC, 20, 60*60*24*365*60) --60年  
		 pc.setqf("roua", 1)
			end
			end
			end
			end
Avatar utilizator
norryTM
Nivel 1

Nivel 1
Mesaje: 82
Membru din: 07 Sep 2014, 19:58
Aprecieri: 2  
Mulţumiri: 1  
 Contact:
Medalii

Syron scrie:

Cod: Selectaţi tot

quest rouapermanenta begin
        state start begin
                when 20095.chat."Roua Permanenta" with pc.getqf("roua") == 0 begin           
                    say("Eu iti pot oferii")
                    say("roua permanenta.")
                    say("Esti sigur ca vrei?")                   
                    local s=select("Da!")                   
                    if s==1 then
                    --Da!
         say_reward("Bonus Viteza de miscare +10% (Permanent).")
         say_reward("Bonus Viteza de atac +10% (Permanent).")
         say_reward("Valoarea atacului +120% (Permanent).")
         say_reward("Rezistenta la magie +20% (Permanent).")
         say_reward("Aparare +200% (Permanent).")
         say_reward("Sansa de lov. Critica +20% (Permanent).")
         say_reward("Sansa de lov. Patrunzatoare +20% (Permanent).")
         affect.add_collect(apply.MOV_SPEED, 10, 60*60*24*365*60) --60年   
         affect.add_collect(apply.ATT_SPEED, 10, 60*60*24*365*60) --60年   
         affect.add_collect(apply.CRITICAL_PCT, 20, 60*60*24*365*60) --60年
         affect.add_collect(apply.PENETRATE_PCT, 20, 60*60*24*365*60) --60年   
         affect.add_collect(apply.ATT_GRADE_BONUS, 120, 60*60*24*365*60) --60年
         affect.add_collect(apply.DEF_GRADE_BONUS, 200, 60*60*24*365*60) --60年
         affect.add_collect(apply.RESIST_MAGIC, 20, 60*60*24*365*60) --60年  
		 pc.setqf("roua", 1)
			end
			end
			end
			end
Da dar daca ies din client si intru iar.. iar apare la npc..
Avatar utilizator
Syron
Developer

Developer
Mesaje: 712
Membru din: 14 Mai 2014, 23:41
Aprecieri: 5  
Mulţumiri: 138  
Medalii

Greseala mea, poftim aici.

Cod: Selectaţi tot

quest roua begin
	state start begin
		when 20095.chat."Roua permanenta" begin
			if pc.getqf("roua") != 0 then 
			return
			end
			if pc.getqf("roua") == 1 then
			say_title(mob_name(20095))
			say("Ai primit deja recompensa de la mine.")
			return
			end
			say_title(mob_name(20095)) 
			say("Doresti roua permanenta ?")
			say("Foarte bine... imediat vei primi ce iti doresti..")
			wait()
			say("Ai primit roua permanenta.")
			affect.add_collect(apply.MOV_SPEED, 10, 60*60*24*365*60) 
			affect.add_collect(apply.ATT_SPEED, 10, 60*60*24*365*60)
			affect.add_collect(apply.CRITICAL_PCT, 20, 60*60*24*365*60) 
			affect.add_collect(apply.PENETRATE_PCT, 20, 60*60*24*365*60)
			affect.add_collect(apply.ATT_GRADE_BONUS, 120, 60*60*24*365*60) 
			affect.add_collect(apply.DEF_GRADE_BONUS, 200, 60*60*24*365*60) 
			affect.add_collect(apply.RESIST_MAGIC, 20, 60*60*24*365*60)
			pc.setqf("roua", 1)
			clear_letter()
		end
	end
end
Avatar utilizator
norryTM
Nivel 1

Nivel 1
Mesaje: 82
Membru din: 07 Sep 2014, 19:58
Aprecieri: 2  
Mulţumiri: 1  
 Contact:
Medalii

Syron scrie:Greseala mea, poftim aici.

Cod: Selectaţi tot

quest roua begin
	state start begin
		when 20095.chat."Roua permanenta" begin
			if pc.getqf("roua") != 0 then 
			return
			end
			if pc.getqf("roua") == 1 then
			say_title(mob_name(20095))
			say("Ai primit deja recompensa de la mine.")
			return
			end
			say_title(mob_name(20095)) 
			say("Doresti roua permanenta ?")
			say("Foarte bine... imediat vei primi ce iti doresti..")
			wait()
			say("Ai primit roua permanenta.")
			affect.add_collect(apply.MOV_SPEED, 10, 60*60*24*365*60) 
			affect.add_collect(apply.ATT_SPEED, 10, 60*60*24*365*60)
			affect.add_collect(apply.CRITICAL_PCT, 20, 60*60*24*365*60) 
			affect.add_collect(apply.PENETRATE_PCT, 20, 60*60*24*365*60)
			affect.add_collect(apply.ATT_GRADE_BONUS, 120, 60*60*24*365*60) 
			affect.add_collect(apply.DEF_GRADE_BONUS, 200, 60*60*24*365*60) 
			affect.add_collect(apply.RESIST_MAGIC, 20, 60*60*24*365*60)
			pc.setqf("roua", 1)
			clear_letter()
		end
	end
end
E bun :D Dar se poate face daca ai primit roua sa scrie cand mai dai odata pe npc ceva gen '' Ai primit deja bonusurile la roua'' ?
Avatar utilizator
F. Gabriel
Membru Club

Membru Club
Mesaje: 3759
Membru din: 17 Aug 2013, 20:44
Server: -
Regat: Shinsoo
Aprecieri: 358  
Mulţumiri: 84  
 Contact:
Medalii

Nu ti-l da de 2x.. Ai jos cand termina misiunea.
Imagine

Hosting Metin2 by OVINETWORK.RO
Afișează semnătura
Avatar utilizator
MenDarK
Nivel 6

Nivel 6
Mesaje: 998
Membru din: 27 Iul 2013, 12:55
Server: Nu Mai JOC !
Regat: Shinsoo
Aprecieri: 0
Mulţumiri: 250  
 Contact:
Medalii

Subiect rezolvat , mutat in sectiunea corespunzatoare.
Afișează semnătura
Închis
Răspunsuri
4
Vizualizări
613
Răspunsuri
3
Vizualizări
231
Răspunsuri
2
Vizualizări
2178
Răspunsuri
6
Vizualizări
414

Înapoi la “Probleme rezolvate”

  • Informaţie