StaffEN 3 Report post Posted April 22 Hi, i know this maybe sucks for someppl, but i was looking some guide about this in the forum and didnt found it, so, im gonna post this, maybe it help to someone 1.- Open the NpcDefine.Lua from SrvFiles>Resource>Script>MisScript 2.-Scroll down or search for "AddBerthPort", then scroll down to make another port, lets try 16, "AddBerthPort(16,"X Harbor")" "X Harbor" = The name of the Dock u want 3.-For new dock at x map you need to open the "xEntity.lua", and add this in the function initx() CreateBerthEntity( "Docked", 455, 2, xxxx,xxxx, z, A, yyyy, yyyy, z ) A = Dock ID (in this case is the port 16) xxxx = Coords for the Dock at sea (in this case 341,104) yyyy = Coords where the player spawn at the city when docked (in this case 320,116) z = The angle where the player is looking 4.- Now Create the NPC for the dock, you gonna need 1 for build the ship and other to Set Sail, can copy the same at argent city but gonna change the port of the dock, something like this: function r_talStaffEN() Talk( 1, "Sinbad: Yo! Want to get out to the sea? How can you do so without a good ship? I offer the best ship around here. Come have a look!" ) 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, 16 ) ---Check the boat is in this port, TriggerAction( 1, BoatLevelBerthList, 16 ) ---Change the port here to make sure upgrade boat works TriggerFailure( 1, JumpPage, 3 ) Text( 1, "Upgrade ship", MultiTrigger, GetMultiTrigger(), 1 ) Talk( 2, "Sinbad: What type of ships you wish to build? I have a few varieties. Please have a look." ) InitTrigger() TriggerCondition( 1, BoatBuildCheck, 1 ) TriggerAction( 1, CreateBoat, 1, 16 ) ---16 is to create the boat dock at 16 (x harbor) Text( 2, "Build Guppy", MultiTrigger, GetMultiTrigger(), 1 ) InitTrigger() TriggerCondition( 1, BoatBuildCheck, 2 ) TriggerAction( 1, CreateBoat, 2, 16 ) ---Same here Text( 2, "Build Transporter", MultiTrigger, GetMultiTrigger(), 1 ) InitTrigger() TriggerCondition( 1, BoatBuildCheck, 3 ) TriggerAction( 1, CreateBoat, 3, 16 ) ---same here Text( 2, "Build Flying Fish", MultiTrigger, GetMultiTrigger(), 1 ) InitTrigger() TriggerCondition( 1, BoatBuildCheck, 6 ) TriggerAction( 1, CreateBoat, 6, 16 ) ---same here Text( 2, "Build Swordfish", MultiTrigger, GetMultiTrigger(), 1 ) Talk( 3, "Sinbad: I guess your ship is not docked here. You need to dock here to upgrade the level when it has gained enough experience from sailing or killing monsters out in the sea." ) end function r_talStaffEN1() Talk( 1, " Shirley: Hi! I am the Harbor Operator for Argent. I am in charge of all ships that is docked in this harbor. Look for me if you want to set sail." ) InitTrigger() TriggerCondition( 1, HasAllBoatInBerth, 16 ) ----16 is the port of the dock TriggerAction( 1, LuanchBerthList, 16, xx,xx, 177 ) ------xx= Coords where the ship gonna spawn TriggerFailure( 1, JumpPage, 3 ) Text( 1, "Set sail", MultiTrigger, GetMultiTrigger(), 1 ) InitTrigger() TriggerCondition( 1, HasLuanchOut ) TriggerAction( 1, RepairBoat ) TriggerCondition( 2, HasBoatInBerth, 16 ) ---need to put the port of the dock (in this case is 16) TriggerAction( 2, RepairBerthList, 16 ) --- same here to repair if need TriggerFailure( 2, JumpPage, 4 ) Text( 1, "Repair Ship", MultiTrigger, GetMultiTrigger(), 2 ) InitTrigger() TriggerCondition( 1, HasLuanchOut ) TriggerAction( 1, SupplyBoat ) TriggerCondition( 2, HasBoatInBerth, 16 ) --- need to edit this to the port of the dock to refuel TriggerAction( 2, SupplyBerthList, 16 ) ----same here, put the port (in this case is 16) TriggerFailure( 2, JumpPage, 5 ) Text( 1, "Refuel", MultiTrigger, GetMultiTrigger(), 2 ) InitTrigger() TriggerCondition( 1, HasDeadBoatInBerth, 16 ) ---this is for salvage ship, need to put the port TriggerAction( 1, SalvageBerthList, 16 ) --- same here, in this case is 16 TriggerFailure( 1, JumpPage, 6 ) Text( 1, "Salvage Ship", MultiTrigger, GetMultiTrigger(), 1 ) Talk( 3, "Sorry, you do not have a ship at the harbor or it was sunken. Please salvage it before setting sail again!" ) Talk( 4, "Sorry! I only repair ships docked in this harbor. Please pay 1000G." ) Talk( 5, "Sorry, you need to dock your ship in our harbor in order to refuel. Please pay 200G" ) Talk( 6, "Sorry! We only salvage ships docked in our harbor. You have to pay a fee of 1000G." ) end and thats all, New dock added, dont need to add birth point ****YOU NEED THE BOAT TRIGGERS ACTIVE!**** Quote Share this post Link to post Share on other sites