Jump to content
Adham

Quest Issue

Recommended Posts

DefineMission (64411, "Mario", 64411)

    MisBeginTalk ( "Mario")

    MisBeginCondition(NoMission, 64411)

    MisBeginAction (AddMission, 64411)

   

    MisBeginAction (AddTrigger, 64411, TE_GETITEM, 2601, 30)

    MisResultAction(clearMission,64411)

   

    MisNeed (MIS_NEED_ITEM, 2601, 30, 10, 30)

   

    MisResultCondition (HasMission, 64411)

    MisResultCondition(HasItem, 2601, 30)

    MisResultAction(TakeItem, 2601, 30)

 

   

    --MisResultCondition (HasRecord, 64411)

    MisResultAction (ClearMission, 64411)

   

    InitTrigger ()

    TriggerCondition (1, IsItem, 2601)

    TriggerAction (1, AddNextFlag, 64411, 10, 30)

    RegCurTrigger (64411)

 

here my quest script 

issues i have found 

 

1 - red system count works but freeze  on 0/30 no give 30/30 tick even if i has the items needed

2 - after i go finish the quest it says NPC script processing function failed 

 

i tryed to change triggers same ! 

 

any can help me 

on this easy QUEST please

Share this post


Link to post
Share on other sites

Hello @Adham,

 

Maybe this guide will help solve your problem:

 


Share this post


Link to post
Share on other sites

i think my problem cos of this XD i just used his scripot on first easy quest !  and it give me npc busy 
then i tryed to uses another script look similer to my quest and NPC busy sloved and came another problem 


all i need to know if my triggers wrong or not 
also i need to know if i it`s not allowed to use smilier quest id and mission id ? or i need make them diffrent not same id`s 

and i don`t know how to use fourm im new here thank u 

Share this post


Link to post
Share on other sites
14 minutes ago, Adham said:

i think my problem cos of this XD i just used his scripot on first easy quest !  and it give me npc busy 
then i tryed to uses another script look similer to my quest and NPC busy sloved and came another problem 


all i need to know if my triggers wrong or not 
also i need to know if i it`s not allowed to use smilier quest id and mission id ? or i need make them diffrent not same id`s 

and i don`t know how to use fourm im new here thank u 

Try to find an existing quest with a similar purpose from your server files and make a new one based on it.

 

14 minutes ago, Adham said:

also i need to know if i it`s not allowed to use smilier quest id and mission id ? or i need make them diffrent not same id`s 

Sure, each quest must have a unique ID.


Share this post


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

Try to find an existing quest with a similar purpose from your server files and make a new one based on it.

 

Sure, each quest must have a unique ID.

i know i meanon the same QUEST ... there is mission id an quest id for example quest id 2000  mission id can be 2000 ? 

that wat i maen 

 

also 

4 minutes ago, V3ct0r said:

Try to find an existing quest with a similar purpose from your server files and make a new one based on it.

 

I did that and it works ,  but I was looking to understand the script and not copy it 
 

Share this post


Link to post
Share on other sites

There's an issue on quests if you use IDs over 6K if I remember correctly, so your ID of "64411" might probably cause an issue as well.

  • Thanks 1

Share this post


Link to post
Share on other sites

i changed the quest number an it worked an every thing  become perfect . but i still can`t finish the quest even though the red tick is 20/20 but still can`t finish 
here is my script if u can cheack if any thin missed up 

 

DefineMission( 643, "Earn Your Barclet - Hunt ", 644 )



    MisBeginAction(AddMission, 644)



    MisBeginAction(SetFlag, 644, 1)



    MisBeginAction(AddTrigger, 6441, TE_GETITEM, 2604, 20)



    MisCancelAction(ClearMission, 644)



   



    MisNeed(MIS_NEED_ITEM, 2604, 20, 10, 20 )



   



    MisResultCondition(HasMission, 644)



    MisResultCondition(HasFlag, 2005, 29 )



    MisResultAction(AddMoney, 1000000, 1000000 )



    --MisResultAction(SetRecord, 644 )



    MisResultAction(ClearMission, 644 )



    MisResultBagNeed(20)



   



    InitTrigger()



    TriggerCondition( 1, IsItem, 2604)



    TriggerAction( 1, AddNextFlag, 644, 10, 20 )



    RegCurTrigger( 6441 )

 

Share this post


Link to post
Share on other sites

First of this is not correct, this type of condition is only for monster killing quests.

MisResultCondition(HasFlag, 2005, 29)

Please look again ay my guide, specifically "Part I" of it. Instead of that, just straight out put this:

MisResultCondition(HasItem, <ITEMINFO_ID>, <AMOUNT_NEEDED>)

In your case it would be this:

MisResultCondition(HasItem, 2604, 20)

Note: I don't know why you were placing "2005" at all, since that's not the item you were asking for.

 

 

Second of all, you're just handing out gold, why does a player need 20 free inventory slots? Just remove this.

MisResultBagNeed(20)

 

  • Thanks 1

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