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 yang_to_item_exchange begin
    	state start begin
    		function cfg()
    			local c = {}
    			c.NPC_VNUM = 20084
    			c.COST = 100000000  -- 100kk
    			c.REWARD_VNUM = 80017
    			return c
    		end
    
    		when cfg().NPC_VNUM.chat."Schimba 100kk Yang" begin
    			if pc.get_money() < cfg().COST then
    				say("Nu ai suficient Yang.")
    				return
    			end
    
    			pc.change_money(-cfg().COST)
    			pc.give_item2(cfg().REWARD_VNUM, 1)
    
    			say("Schimb realizat cu succes!")
    		end
    	end
    end