[REUPLOAD][LUA] Vote4Buff aka Bonus zilnic

Avatar utilizator
zWn
Mister Just4Metin

Mister Just4Metin
Mesaje: 975
Membru din: 19 Mai 2018, 15:40
Server: selenem2.com
Regat: Jinno
Aprecieri: 348  
Mulţumiri: 4333  
Discord: Copiază ID
Medalii

reupload de la topicuri-sterse/vote4buff-aka-bonus-zilnic-t71825.html
quest vote4buff_andy begin
state start begin
when login begin
if get_time() < pc.getf("vote4buff_andy","timer_24h_andy") then
syschat("|cff04ff00|H|h(Metin2A)|h|r In "..get_time_remaining(pc.getf("vote4buff_andy","timer_24h_andy") - get_time()).."vei putea alege alt bonus.")
else
send_letter("Vote4Buff")
end
end
when info or button begin
-- local timp = 10 -- Pentru test (10 secunde)
local timp = 60*60*24 -- Valoarea normala (24 de ore)
say_title("Vote4Buff")
say("De aici poti lua zilnic cate un bonus")
say("care dureaza 24 de ore.")
say("Dupa ce trece timpul, poti alege altul.")
say("")
say_reward("Ce bonus vrei sa alegi?")
local a= select("Sansa lovitura critica +15%","Sansa lovitura patrunzatoare +15%","Rezistenta la magie +10%","Tare impotriva semi-om +10%","Inchide")
if 1==a then
pc.setf("vote4buff_andy", "timer_24h_andy",get_time()+timp)
affect.add_collect(apply.CRITICAL_PCT, 15, timp)
syschat("|cff04ff00|H|h(Metin2A)|h|r Ai primit bonusul |cffffe500|H|h[Sansa lovitura critica +15%]|h|r pentru "..get_time_remaining(pc.getf("vote4buff_andy","timer_24h_andy") - get_time())..".")
set_state(start)
clear_letter()
elseif 2==a then
pc.setf("vote4buff_andy", "timer_24h_andy",get_time()+timp)
affect.add_collect(apply.PENETRATE_PCT, 15, timp)
syschat("|cff04ff00|H|h(Metin2A)|h|r Ai primit bonusul |cffffe500|H|h[Sansa lovitura patrunzatoare +15%]|h|r pentru "..get_time_remaining(pc.getf("vote4buff_andy","timer_24h_andy") - get_time())..".")
set_state(start)
clear_letter()
elseif 3==a then
pc.setf("vote4buff_andy", "timer_24h_andy",get_time()+timp)
affect.add_collect(apply.RESIST_MAGIC, 10, timp)
syschat("|cff04ff00|H|h(Metin2A)|h|r Ai primit bonusul |cffffe500|H|h[Rezistenta la magie +10%]|h|r pentru "..get_time_remaining(pc.getf("vote4buff_andy","timer_24h_andy") - get_time())..".")
set_state(start)
clear_letter()
elseif 4==a then
pc.setf("vote4buff_andy", "timer_24h_andy",get_time()+timp)
affect.add_collect(apply.ATTBONUS_HUMAN, 10, timp)
syschat("|cff04ff00|H|h(Metin2A)|h|r Ai primit bonusul |cffffe500|H|h[Tare impotriva semi-om +10%]|h|r pentru "..get_time_remaining(pc.getf("vote4buff_andy","timer_24h_andy") - get_time())..".")
set_state(start)
clear_letter()
elseif 5==a then
syschat("|cff04ff00|H|h(Metin2A)|h|r Nu ai ales nici un buff.")
set_state(start)
send_letter("Vote4Buff")
end
end
end
end
Pentru acest mesaj, zWn a primit 3 (de) mulţumiri
emro500 • Cristi25 • cata96cfr
Imagine
Afișează semnătura
Răspunde
Răspunsuri
5
Vizualizări
2156
Răspunsuri
1
Vizualizări
405

Înapoi la “Quest-uri”

  • Informaţie
  • Cine este conectat

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