Jump to content
Faller

Quest Error (Solved)

Recommended Posts

Hello PkoDev!

I've been trying to make a quest, but pretty much everything I try, I get errors... I've even tried using the Quest Generator 2.0 tool, but no success. :\

I think I might be missing something, could you please help me?

 

The error I get:

 error.png

 

My Quest Script: 

Spoiler

DefineMission( 10001 , "Nasty Pirates" , 10002 )
    MisBeginTalk( "<t>miss talk")
    MisBeginCondition( NoMission, 10002)
    MisBeginCondition( HasItem, 10078, 1, 4)
    MisBeginAction( AddMission, 10002)
    MisBeginAction(AddTrigger, 700021, TE_KILL, 734, 10 )
    MisBeginAction(AddTrigger, 100022, TE_KILL, 735, 10 )
    MisBeginAction(AddTrigger, 100023, TE_KILL, 736, 10 )
    MisCancelAction( ClearMission, 10002)
    
    MisNeed( MIS_NEED_DESP, "miss do")
    MisNeed(MIS_NEED_KILL, 734, 10, 10, 10)
    MisNeed(MIS_NEED_KILL, 735, 10, 20, 10)
    MisNeed(MIS_NEED_KILL, 736, 10, 30, 10)

    MisHelpTalk( "<t>miss help")
    MisResultTalk( "<t> Miss finish ")
    MisResultCondition(HasFlag, 10002, 19 )
    MisResultCondition(HasFlag, 10002, 29 )
    MisResultCondition(HasFlag, 10002, 39 )
    MisResultAction(TakeItem, 10078, 1, 4)
    MisResultAction(GiveItem, 10079, 1, 4)
    MisResultAction(ClearMission, 10002)
    MisResultBagNeed( 1 )

    InitTrigger()
    TriggerCondition( 1, IsMonster, 734 )    
    TriggerAction( 1, AddNextFlag, 705, 10, 10 )
    RegCurTrigger( 7051 )

    InitTrigger()
    TriggerCondition( 1, IsMonster, 735 )    
    TriggerAction( 1, AddNextFlag, 705, 20, 10 )
    RegCurTrigger( 7052 )

    InitTrigger()
    TriggerCondition( 1, IsMonster, 736 )    
    TriggerAction( 1, AddNextFlag, 705, 30, 10 )
    RegCurTrigger( 7053 )

 

I hope you can help me, thanks!

Edited by Faller

Share this post


Link to post
Share on other sites

Hi @Faller! ;

Your trigger action had a number destined to the mission, you had not changed everything in some parts had the mission "705" and the mission to define is "10002" ... of there is the error. I leave you the mission corrected below

 

 

 

 

DefineMission( 10001 , "Nasty Pirates" , 10002 )
    MisBeginTalk( "<t>miss talk")
    MisBeginCondition( NoMission, 10002)
    MisBeginCondition( HasItem, 10078, 1, 4)
    MisBeginAction( AddMission, 10002)
    MisBeginAction(AddTrigger, 100021, TE_KILL, 734, 10 )
    MisBeginAction(AddTrigger, 100022, TE_KILL, 735, 10 )
    MisBeginAction(AddTrigger, 100023, TE_KILL, 736, 10 )
    MisCancelAction( ClearMission, 10002)
    
    MisNeed( MIS_NEED_DESP, "<t>miss do")
    MisNeed(MIS_NEED_KILL, 734, 10, 10, 10)
    MisNeed(MIS_NEED_KILL, 735, 10, 20, 10)
    MisNeed(MIS_NEED_KILL, 736, 10, 30, 10)
    MisHelpTalk( "<t>miss help")
    MisResultTalk( "<t> Miss finish ")
    MisResultCondition(HasFlag, 10002, 19 )
    MisResultCondition(HasFlag, 10002, 29 )
    MisResultCondition(HasFlag, 10002, 39 )
    MisResultAction(TakeItem, 10078, 1, 4)
    MisResultAction(GiveItem, 10079, 1, 4)
    MisResultAction(ClearMission, 10002)
    MisResultBagNeed( 1 )
    InitTrigger()
    TriggerCondition( 1, IsMonster, 734 )    
    TriggerAction( 1, AddNextFlag, 10002, 10, 10 )
    RegCurTrigger( 100021 )
    InitTrigger()
    TriggerCondition( 1, IsMonster, 735 )    
    TriggerAction( 1, AddNextFlag, 10002, 20, 10 )
    RegCurTrigger( 100022 )
    InitTrigger()
    TriggerCondition( 1, IsMonster, 736 )    
    TriggerAction( 1, AddNextFlag, 10002, 30, 10 )
    RegCurTrigger( 100023 )

 

Edited by Ximboliex
  • Like 2

xbx3.png

Share this post


Link to post
Share on other sites

Hey @Ximboliex! Thanks for your reply. :)

My bad xD that happened because I was trying to use another quest as base to check if it would work, but even putting your fixed code, it will give me the same error message. :\

Any ideas on what could be causing this?

 

#EDIT

Ok, so after some tests, I've finally fixed the problem. It seems like Quest_ID is limited to 10000, after this number, it will give the error mentioned above.

Thank you for the support, @Ximboliex!

Edited by Faller

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×
×
  • Create New...