Jump to content
ProTecTion

NPC Question

Recommended Posts

16 часов назад, ProTecTion сказал:

Hey,

 

how can i deny Voy Class to use a specific NPC?

 

other classes can use it normally.

 

Hi. Share code npc. 

  • Like 1

Share this post


Link to post
Share on other sites
5 hours ago, Graf said:

Hi. Share code npc. 

function r_ship1337()

    Talk( 1, " Shirley: Hi! I am the Harbor Operator for Argent City. 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, 1 )

    --TriggerAction( 1, RemoveYS )

    TriggerAction( 1, LuanchBerthList, 1, 160,163, 177 )

    TriggerFailure( 1, JumpPage, 3 )

    Text( 1, "Set sail", MultiTrigger, GetMultiTrigger(), 1 )

    InitTrigger()

    TriggerCondition( 1, HasLuanchOut )

    TriggerAction( 1, RepairBoat )

    TriggerCondition( 2, HasBoatInBerth, 1 )

    TriggerAction( 2, RepairBerthList, 1 )

    TriggerFailure( 2, JumpPage, 4 )

    Text( 1, "Repair Ship", MultiTrigger, GetMultiTrigger(), 2 )

    InitTrigger()

    TriggerCondition( 1, HasLuanchOut )

    TriggerAction( 1, SupplyBoat )

    TriggerCondition( 2, HasBoatInBerth, 1 )

    TriggerAction( 2, SupplyBerthList, 1 )

    TriggerFailure( 2, JumpPage, 5 )

    Text( 1, "Refuel", MultiTrigger, GetMultiTrigger(), 2 )

    InitTrigger()

    TriggerCondition( 1, HasDeadBoatInBerth, 1 )

    TriggerAction( 1, SalvageBerthList, 1 )

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

 

    AddNpcMission ( 294 )

    AddNpcMission ( 295 )

 

end

 

@Graf

Share this post


Link to post
Share on other sites

@V3ct0r Thank you for replying,

i have tried and it still shows the original npc code. or it stops working.

 

can you edit the code for me to make it work for all classes but deny Explorer / Voy from using the npc

Share this post


Link to post
Share on other sites
On 11/4/2022 at 5:42 PM, ProTecTion said:

@V3ct0r Thank you for replying,

i have tried and it still shows the original npc code. or it stops working.

 

can you edit the code for me to make it work for all classes but deny Explorer / Voy from using the npc

Show your NPC script please.


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