Jump to content

Fajar

Advanced members
  • Content Count

    52
  • Joined

  • Last visited

Posts posted by Fajar


  1. 56 minutes ago, Angelix said:

    Yes what? He asked for the function you put it into to, not a "yes or no" question. If you want help, you're going to need to be more specific.

    Sorry im bad in english.

    i put

    function CheckItemIsForged(item)
    
    	return (GetItemForgeParam(item, 0) > 0)
    	
    end
    
    
    function NoForge(role)
    
    	-- Checking Look
    	for i = 0, enumEQUIP_RHAND + 1, 1 do
    		local item = GetChaItem(role, 1, i)
    		if (item ~= 0 and item ~= nil) then
    			if (CheckItemIsForged(item) == 1) then
    				return 0
    			end
    		end
    	end
    	
    	-- Checking Inventory
    	local kbsize = GetKbCap(role)
    	for i = 0, kbsize - 1, 1 do
    		local item = GetChaItem(role, 2, i)
    		if (item ~= 0 and item ~= nil) then
    			if (CheckItemIsForged(item) == 1) then
    				return 0
    			end
    		end
    	end
    	
    	return 1
    	
    end

    at the end function.lua. And i put

    function check_can_enter_glacierpk(role, copy_mgr)
    	if (NoForge(role) == 0) then
    		SystemNotice(role, "You have forged items! You can't enter the map!")
    		return 0
    		end
    	return 1
    end

    in entry.lua

×
×
  • Create New...