🟧 QUEST: Recompensă la completare Biolog (bonus 24h) (simplu)
Scris: Dum Feb 01, 2026 10:34 am
Cod: Selectaţi tot
quest biolog_reward begin
state start begin
function cfg()
local c = {}
c.TAG = "[Biolog]"
c.TIME = 60 * 60 * 24
c.HP = 200
return c
end
-- schimba qf-ul cu unul pe care il pui tu cand termina biologul
-- exemplu: cand termini biologul, pui pc.setqf("biolog_done", 1)
when login begin
local c = biolog_reward.cfg()
if pc.getqf("biolog_done") == 1 and pc.getqf("biolog_rewarded") != 1 then
pc.setqf("biolog_rewarded", 1)
affect.add(apply.MAX_HP, c.HP, c.TIME)
syschat("|cff56ff00|H|h"..c.TAG.."|h|r : Ai primit recompensa pentru Biolog (24h)!")
end
end
end
end