Jump to content
dragontechi

quest counter

Recommended Posts

Sorry, I'm presenting this problem with a quest, I've already verified it several times and I can't find the erro

 

--------------------ring quest	
	DefineMission( 8541 , "Rings Quest" , 2041 )

	MisBeginTalk( "hello pirate i need you to remove some threats from the lower level world" )
	MisBeginCondition(NoMission, 2041 )
	MisBeginCondition(LvCheck, ">" , 70 )
	MisBeginAction(AddMission,2041)
	MisBeginAction(AddTrigger, 20411 , TE_KILL, 37 , 50 )
	MisBeginAction(AddTrigger, 20412 , TE_KILL, 284 , 50 )
	MisBeginAction(AddTrigger, 20413 , TE_KILL, 521 , 50 )
	MisBeginAction(AddTrigger, 20414 , TE_KILL, 528 , 50 )
	MisBeginAction(AddTrigger, 20415 , TE_KILL, 552 , 50 )
	MisBeginAction(AddTrigger, 20416 , TE_KILL, 735 , 50 )
	MisBeginAction(AddTrigger, 20417 , TE_KILL, 736 , 50 )
	MisBeginAction(AddTrigger, 20418 , TE_KILL, 788 , 1 )
	MisCancelAction(ClearMission, 2041)
	
	MisNeed(MIS_NEED_KILL, 37 , 50 , 10 , 50 )
	MisNeed(MIS_NEED_KILL, 284 , 50 , 20 , 50 )
	MisNeed(MIS_NEED_KILL, 521 , 50 , 30 , 50 )
	MisNeed(MIS_NEED_KILL, 528 , 50 , 40 , 50 )
	MisNeed(MIS_NEED_KILL, 552 , 50 , 50 , 50 )
	MisNeed(MIS_NEED_KILL, 735 , 50 , 60 , 50 )
	MisNeed(MIS_NEED_KILL, 736 , 50 , 70 , 50 )
	MisNeed(MIS_NEED_KILL, 788 , 1 , 80 , 1 )

	MisHelpTalk("dddddddddddddddddd" )
	MisResultTalk("ho you have saved the world with your power thank you very much herues" )
	MisResultCondition(HasFlag, 37 , 10 )
	MisResultCondition(HasFlag, 284 , 20 )
	MisResultCondition(HasFlag, 521 , 30 )
	MisResultCondition(HasFlag, 528 , 40 )
	MisResultCondition(HasFlag, 552 , 50 )
	MisResultCondition(HasFlag, 735 , 60 )
	MisResultCondition(HasFlag, 736 , 70 )
	MisResultCondition(HasFlag, 788 , 80 )

	MisResultAction(GiveItem, 7620 , 1 , 4 )
	MisResultBagNeed(1)

	InitTrigger()
	TriggerCondition( 1, IsMonster, 37 )
	TriggerAction( 1, AddNextFlag, 2041 , 10 , 50 )
	RegCurTrigger( 20411 )
	InitTrigger()
	TriggerCondition( 1, IsMonster, 284 )
	TriggerAction( 1, AddNextFlag, 2041 , 20 , 50 )
	RegCurTrigger( 20412 )
	InitTrigger()
	TriggerCondition( 1, IsMonster, 521 )
	TriggerAction( 1, AddNextFlag, 2041 , 30 , 50 )
	RegCurTrigger( 20413 )
	InitTrigger()
	TriggerCondition( 1, IsMonster, 528 )
	TriggerAction( 1, AddNextFlag, 2041 , 40 , 50 )
	RegCurTrigger( 20414 )
	InitTrigger()
	TriggerCondition( 1, IsMonster, 552 )
	TriggerAction( 1, AddNextFlag, 2041 , 50 , 50 )
	RegCurTrigger( 20415 )
	InitTrigger()
	TriggerCondition( 1, IsMonster, 735 )
	TriggerAction( 1, AddNextFlag, 2041 , 60 , 50 )
	RegCurTrigger( 20416 )
	InitTrigger()
	TriggerCondition( 1, IsMonster, 736 )
	TriggerAction( 1, AddNextFlag, 2041 , 70 , 50 )
	RegCurTrigger( 20417 )
	InitTrigger()
	TriggerCondition( 1, IsMonster, 788 )
	TriggerAction( 1, AddNextFlag, 2041 , 80 , 1 )
	RegCurTrigger( 20418 )

Share this post


Link to post
Share on other sites
MisResultCondition(HasFlag, 37 , 10 )

we can start here, you put the Mob ID instead of the Mission ID, and the flag would also be wrong.

to calculate the value of HasFlag, you must take the amount of times you intend to kill this mob plus the value of the Flag and remove 1.

MisResultCondition(HasFlag, 2041 , 59 )

2041 =  MissionID

59     = Flag ( 50 ( Need Kill ) + 10 ( Flag ) - 1 )

sorry for the bad english.

 

 

  • Like 1
  • Thanks 1

Being better than others is for those who are weak; what matters is to be true to yourself.         

 

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