wouter2004 11 Report post Posted September 11, 2021 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! Quote Share this post Link to post Share on other sites
JaR 7 Report post Posted September 11, 2021 @wouter2004 Try to add your NPC Builder to lua/plugin/npcexploit.lua in SailNpc 1 Quote Share this post Link to post Share on other sites
wouter2004 11 Report post Posted September 12, 2021 10 hours ago, JaR said: @wouter2004 Try to add your NPC Builder to lua/plugin/npcexploit.lua in SailNpc awesome that was the trick. thank you very much for pointing this out Quote Share this post Link to post Share on other sites