Jump to content

1g0rS1lv4

Community
  • Content Count

    141
  • Joined

  • Last visited

  • Days Won

    15

Posts posted by 1g0rS1lv4


  1. On 1/4/2024 at 5:12 AM, StaffEN said:

    thank you bro, you know what im missing? i got this error

    >> Loading Kill/Death Ratio By Saeed
    resource/script\KD\init.lua:81: attempt to call global `file_exists' (a nil value)

     function file_exists(name)
            local f=io.open(name,"r")
            if f~=nil then io.close(f) return true else return false end
        end

     


  2. MisResultCondition(HasFlag, 37 , 10 )

    we can start here, you put the Mob ID instead of the Mission ID, and the flag would also be wrong.

    to calculate the value of HasFlag, you must take the amount of times you intend to kill this mob plus the value of the Flag and remove 1.

    MisResultCondition(HasFlag, 2041 , 59 )

    2041 =  MissionID

    59     = Flag ( 50 ( Need Kill ) + 10 ( Flag ) - 1 )

    sorry for the bad english.

     

     

    • Like 1
    • Thanks 1

  3. 17 minutes ago, Tera said:

    Hello V3ctor

     

    How can I make the function so that 1-50 is green, 50-100 is blue, and 100 - 150 is red?

    😸

    function GetPowerColor(Power)
    	if (Power >= 1 and Power <= 50) then			-- Green	
    		Colour = 4278255360
    	elseif (Power >= 51 and Power <= 100) then		-- Blue
    		Colour = 4278215413
    	elseif (Power >= 101) then				-- Red
    		Colour = 4294901760
    	end
    	return Colour
    end

     

    • Thanks 1

  4. 8 minutes ago, Rinor said:

    If this would been source code of vector i guess once its leaked he would have shared it by his self, just to make sure that none uses some random source that been edited.

     

    Edit: or it could also be some old code.

    well, it contains many comments from v3ct0r and White ADM from In-PKO selling these files as if it were his.


  5. function CheckTime ( Player )
    	local Now_Week = os.date("%w")
    	local Now_Hour = os.date("%H")
    	Now_Week = tonumber(Now_Week)
    	Now_Hour = tonumber(Now_Hour)
    	if Now_Week == 6 or Now_Week == 0 then
    		if Now_Hour >= 9 and Now_Hour < 12 then
    			return LUA_TRUE
    		elseif Now_Hour >= 21 then
    			return LUA_TRUE
    		end
    	end
    end

    you can use the CheckTime condition

    MissionSdk.lua

    			elseif conditions[i].func ==CheckTime then
    				PRINT( "ConditionsTest: CheckTime, p1 =, p2 =", conditions[i].p1)
    				local ret = CheckTime( character, conditions[i].p1 )
    				if ret ~= LUA_TRUE then
    					PRINT( "ConditionsTest:CheckTime = false" )
    					return LUA_FALSE
    				end

    way of use.

    MisBeginCondition(CheckTime)

     

×
×
  • Create New...