🟩 QUEST: Protecție anti-drop (nu poți arunca iteme importante)
Scris: Dum Feb 01, 2026 10:48 am
Cod: Selectaţi tot
quest anti_drop_items begin
state start begin
-- lista iteme protejate
function is_protected(vnum)
local p = {
[80017] = true,
[70021] = true,
[30270] = true
}
return p[vnum] == true
end
-- pe unele base exista when drop, pe altele nu (daca iti da eroare, iti fac varianta compatibila)
when drop begin
local v = item.get_vnum()
if anti_drop_items.is_protected(v) then
syschat("[Protectie] Nu poti arunca acest item!")
return
end
end
end
end