Jump to content
Sign in to follow this  
StaffEN

GLOBAL RANKING NPC

Recommended Posts

Hi, someone can help (share) me with Global ranking npc scripts? i was looking around the whole forum, and didnt see any help about that

Share this post


Link to post
Share on other sites
On 1/2/2024 at 10:17 PM, StaffEN said:

Hi, someone can help (share) me with Global ranking npc scripts? i was looking around the whole forum, and didnt see any help about that

https://mega.nz/folder/OUMUgTYb#jtCsqh7halK_O9uzWyaG0g/folder/yRc0lQ5Y

  • Like 1

Being better than others is for those who are weak; what matters is to be true to yourself.         

 

Share this post


Link to post
Share on other sites

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)

Edited by StaffEN

Share this post


Link to post
Share on other sites
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

 


Being better than others is for those who are weak; what matters is to be true to yourself.         

 

Share this post


Link to post
Share on other sites
15 hours ago, 1g0rS1lv4 said:

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

 

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

Share this post


Link to post
Share on other sites

Hello @StaffEN,

--[[ NpcSdk.lua Lines
		elseif item.func == GetRankingListing then
			GetRankingListing( character,item.p1)
		elseif item.func == PlayerPkPMazeCheck then
			PlayerPkPMazeCheck( character,item.p1)
		elseif item.func == PlayerPkPCheck then
			PlayerPkPCheck( character)
		elseif item.func == PvPWinnerReward then
			PvPWinnerReward( character)
		elseif item.func == PvPWinnerReward2 then
			PvPWinnerReward2( character)
			
	MissionSdk.lua Lines add this somewhere around line 2500
				elseif conditions[i].func == CheckIsPvPWinner then
				PRINT( "ConditionsTest:CheckIsPvPWinner, p1 = ", conditions[i].p1 )
				local ret = CheckIsPvPWinner( character, conditions[i].p1 )
				if ret ~= LUA_TRUE then
					PRINT( "ConditionsTest: CheckIsPvPWinner = false" )
					return LUA_FALSE
				end
				elseif conditions[i].func == CheckIsPvPWinner2 then
				PRINT( "ConditionsTest:CheckIsPvPWinner, p1 = ", conditions[i].p1 )
				local ret = CheckIsPvPWinner2( character, conditions[i].p1 )
				if ret ~= LUA_TRUE then
					PRINT( "ConditionsTest: CheckIsPvPWinner2 = false" )
					return LUA_FALSE
				end
]]--

Did you add these changes to files NpcSdk.lua and MissionSdk.lua?


Share this post


Link to post
Share on other sites
3 hours ago, V3ct0r said:

Hello @StaffEN,

Did you add these changes to files NpcSdk.lua and MissionSdk.lua?

Yes, i did, but i got that error now,"function npcproc transfer fail"

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...