Cod: Selectaţi tot
quest boss_kill_reward begin
state start begin
function cfg()
local c = {}
c.TAG = "[BOSS]"
-- lista bossi (adauga/schimba vnum-uri)
c.BOSSES = {
[691] = "Regele Demon",
[1091] = "Dragonul Rosu",
[2493] = "Beran-Setaou"
}
-- recompensa
c.REWARD_VNUM = 80017 -- item recompensa (schimba)
c.REWARD_COUNT = 1
return c
end
when kill begin
local c = boss_kill_reward.cfg()
local vnum = npc.get_race()
-- daca nu e boss din lista, iesi
if c.BOSSES[vnum] == nil then
return
end
-- da recompensa
pc.give_item2(c.REWARD_VNUM, c.REWARD_COUNT)
-- anunt global
notice_all("|cff56ff00|H|h"..c.TAG.."|h|r "..pc.get_name().." a omorat |cffffa700|H|h"..c.BOSSES[vnum].."|h|r si a primit recompensa!")
end
end
end
