Jump to content
wouter2004

Upgrade ship - Corsairs files [✓] Solved

Recommended Posts

Hi everyone,

 

I am running a top CA server for friends and myself, but we cannot upgrade our ship.

 

Ok here is the problem. When I move to the ship builder in Argent called Sinbad, I am able to see the ship that can be upgraded, but when I select it nothing happens.

So I did a trace and this is what happens so far:

 

 

NpcScript03.lua file, has a function called r_talk155, which calls the BoatLevelBerthList function.

 


function r_talk155 ()
        
    Talk( 1, "George: Hey you! Want to go sailing? How can you do so without a good ship! Come have a look at what I have!" )
    InitTrigger()
    TriggerCondition( 1, IsBoatFull )
    TriggerAction( 1, SystemNotice, "Ships limit reached. Unable to build more ship" )
    TriggerFailure( 1, JumpPage, 2 )
    Text( 1, "Build Ship", MultiTrigger, GetMultiTrigger(), 1 )
    InitTrigger()
    TriggerCondition( 1, HasBoatInBerth, 4 )
    TriggerAction( 1, BoatLevelBerthList, 4 )     <--------------
    TriggerFailure( 1, JumpPage, 3 )
    Text( 1, "Upgrade ship", MultiTrigger, GetMultiTrigger(), 1 )

 

then this BoatLevelBerthList, open the function in the MissionSDK.lua


elseif actions[i].func == BoatLevelBerthList then
            PRINT( "ActionsProc:BoatLevelBerthList, p1 = ", actions[i].p1 )
            local ret = BoatLevelBerthList( character, npc, actions[i].p1 )  <-----------------
            if ret ~= LUA_TRUE then
                PRINT( "ActionsProc:BoatLevelBerthList failed!" )
                SystemNotice( character, "ActionsProc:BoatLevelBerthList failed!" )
                return LUA_FALSE
            end

 

Now the NPCSDK.lua has the following function BoatLevelBerthList, which returns the values.

 


--船只升级列表
function BoatLevelBerthList( character, npc, berth )
    PRINT( "BoatLevelList: Show upgrade list of ships docked in this harbor!" )
    SystemNotice( character, "BoatLevelList: Show upgrade list of ships docked in this harbor!" ) <---------- this is what I see
    local npcid = GetCharID( npc )
    return BoatBerthList( character, npcid, BERTH_BOATLEVEL_LIST, berth, 0, 0, 0 ) <-------- BERTH_BOATLEVEL_LIST = 6
end

 

After this nothing happens and I lost track of what to check next.

exp_and_level.lua file, has a function called "BoatLevelUpProc", which is not triggered at all.

 

So I am kinda stuck with this issue, as no one can upgrade their ship and no error messages are triggered.

 

Please help. thanks in advance!

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.


×
×
  • Create New...