Jump to content
Sign in to follow this  
Anthoni

help i have problem with KDR

Recommended Posts

the function signature has been modified, and I strongly urge that 
people do not modify function signatures.
If you have file_exists() function in your files, try changing:
exists_file -> file_exists
 

Edited by xtc

kong.png

a2.png

Share this post


Link to post
Share on other sites
1 hour ago, xtc said:

the function signature has been modified, and I strongly urge that 
people do not modify function signatures.
If you have file_exists() function in your files, try changing:
exists_file -> file_exists
 

now have problem agaian, 

Screenshot_1.png

Screenshot_2.png

Share this post


Link to post
Share on other sites

it is hard to decipher the issue now, because the table "tables" is not shown. If
should you choose to use the KDR I made for BIO, then I can help if any bug does occurs.


kong.png

a2.png

Share this post


Link to post
Share on other sites
12 minutes ago, xtc said:

it is hard to decipher the issue now, because the table "tables" is not shown. If
should you choose to use the KDR I made for BIO, then I can help if any bug does occurs.

can help me? Can a allot the KDR made BIO

Share this post


Link to post
Share on other sites
13 minutes ago, Lucky said:

if using one from @xtc should work

yes work, but i have problem.
why? you know lucky?
i click overal rangking or other .
msd function , function option unknown function!

Screenshot_2.png

Screenshot_1.png

Screenshot_3.png

Share this post


Link to post
Share on other sites

@Anthoni you have to add function (that calls on Overall Ranking) in TriggerAction to MissionSdk.lua (GameServer\resource\script\MisScript)

Find function ActionsProc( character, actions, npc, page, misid, scriptid, param1, param2 )

and add your function

		elseif actions[i].func == <Function Name> then
			return <Function Name>( character, actions[i].p1, params here ... )

 


Share this post


Link to post
Share on other sites
13 minutes ago, V3ct0r said:

@Anthoni you have to add function (that calls on Overall Ranking) in TriggerAction to MissionSdk.lua (GameServer\resource\script\MisScript)

Find function ActionsProc( character, actions, npc, page, misid, scriptid, param1, param2 )

and add your function


		elseif actions[i].func == <Function Name> then
			return <Function Name>( character, actions[i].p1, params here ... )

 

(GameServer\resource\script\MisScript)
where i add function.

Can you help me, I uploaded file

Screenshot_4.png

script.rar

Share this post


Link to post
Share on other sites

@Anthoni

Sorry! Not MisScript

GameServer\resource\script\MisSdk


Share this post


Link to post
Share on other sites
2 minutes ago, V3ct0r said:

@Anthoni

Sorry! Not MisScript

GameServer\resource\script\MisSdk

V3ct0r I'm sorry, I'm still a beginner. in which part should I edit or add?


--任務動作處理函數
function ActionsProc( character, actions, npc, page, misid, scriptid, param1, param2 )
    PRINT( "ActionProc: actions proc" )
    if actions == nil then
        PRINT( "ActionProc:quest action management function parameter actions cannot be as null!" )
        SystemNotice( character, "ActionProc:quest action management function parameter actions cannot be as null!" )
        return LUA_ERROR
    end
    

		elseif actions[i].func == <Function Name> then
			return <Function Name>( character, actions[i].p1, params here ... )

Share this post


Link to post
Share on other sites

@Anthoni, you have to add in the if statement code (see how oher functions added)

elseif actions[i].func == <Function Name> then
			return <Function Name>( character, actions[i].p1, params here ... )

Share this post


Link to post
Share on other sites
8 minutes ago, V3ct0r said:

@Anthoni, you have to add in the if statement code (see how oher functions added)


elseif actions[i].func == <Function Name> then
			return <Function Name>( character, actions[i].p1, params here ... )

ok, I will try

Share this post


Link to post
Share on other sites

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

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

 

 

 

 in your script/Misdk/MissionSdk

Share this post


Link to post
Share on other sites
1 hour ago, abdoelghoul said:

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

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

 

 

 

 in your script/Misdk/MissionSdk

 

Go facebook , send me TV user pass , let me help you on that ~_~

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...