Experimentat
Experimentat
Mesaje: 72
Membru din: Sâm Ian 31, 2026 4:11 pm
Server: metin2avange.mt2.xyz
Rasă: Ninja
Regat: Chunjo
  • Has thanked: 1 time
  • 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