Jump to content
Sign in to follow this  
xArvy

Kill monsters quest - Problem

Recommended Posts

Hi all, I'm trying to get the players to kill a few different monsters to complete a quest. I have a weird issue where killing mob X also counts towards mob Y. Please see attached screenshot.

 

Screenshot:

https://imgur.com/0bek5rJ

 

The problem happens after players kill 20x Hell Corpse A - from the 21st kill, the players also get kill count for Hell Corpse B.

 

Script for quest:     

DefineMission(190,"RB2 - Second Quest",190)

      MisBeginTalk("<t>The first quest was easy. This time it will be harder. ")
      MisBeginCondition(HasRecord, 189)
      
      MisBeginCondition(NoRecord,190)
      MisBeginCondition(NoMission,190)
      
      MisBeginAction(AddMission,190)
      MisBeginAction(AddTrigger, 1901, TE_KILL, 824, 40)
      MisBeginAction(AddTrigger, 1902, TE_KILL, 825, 40)
      MisBeginAction(AddTrigger, 1903, TE_KILL, 826, 40)
      MisBeginAction(AddTrigger, 1904, TE_KILL, 807, 5)
      MisBeginAction(AddTrigger, 1905, TE_KILL, 821, 40)
      MisBeginAction(AddTrigger, 1906, TE_KILL, 678, 5)
      MisCancelAction(ClearMission, 190)

      MisNeed(MIS_NEED_DESP, "Kill 40x Hell Mummy B, 40x Hell Corpse A, 40x Hell Corpse B, 5x Deathsoul Commander, 40x Hell Skeleton A, and 5x Snowman Warlord!")
      MisNeed(MIS_NEED_KILL, 824, 40, 10, 40)
      MisNeed(MIS_NEED_KILL, 825, 40, 30, 40)
      MisNeed(MIS_NEED_KILL, 826, 40, 50, 40)
      MisNeed(MIS_NEED_KILL, 807, 5, 70, 5)
      MisNeed(MIS_NEED_KILL, 821, 40, 90, 40)
      MisNeed(MIS_NEED_KILL, 678, 5, 110, 5)

      MisHelpTalk("<t>Kill them.")  
      MisResultTalk("<t>You have good skills. Learn from me from now on. This Fragment represents Wisdom. Take it to fulfill your dream. Rumored that rebirth allows you to reselect class…")
      MisResultCondition(HasMission,190 )
      MisResultCondition(NoRecord,190)
      MisResultCondition(HasFlag, 190, 49)
      MisResultCondition(HasFlag, 190, 69)
      MisResultCondition(HasFlag, 190, 89)
      MisResultCondition(HasFlag, 190, 74)
      MisResultCondition(HasFlag, 190, 129)
      MisResultCondition(HasFlag, 190, 114)
      MisResultAction(GiveItem, 8495, 1, 4 )
      MisResultAction(ClearMission, 190 )
      MisResultAction(SetRecord, 190)
      MisResultBagNeed(1)

      InitTrigger()
      TriggerCondition( 1, IsMonster, 824 )
      TriggerAction( 1, AddNextFlag, 190, 10, 40 )
      RegCurTrigger( 1901 )
      InitTrigger()
      TriggerCondition( 1, IsMonster, 825)
      TriggerAction( 1, AddNextFlag, 190, 30, 40 )
      RegCurTrigger( 1902 )
      InitTrigger()
      TriggerCondition( 1, IsMonster,826  )
      TriggerAction( 1, AddNextFlag, 190, 50, 40 )
      RegCurTrigger( 1903 )
      InitTrigger()
      TriggerCondition( 1, IsMonster, 807 )
      TriggerAction( 1, AddNextFlag, 190, 70, 5 )
      RegCurTrigger( 1904 )
      InitTrigger()
      TriggerCondition( 1, IsMonster, 821 )
      TriggerAction( 1, AddNextFlag, 190, 90, 40 )
      RegCurTrigger( 1905 )
      InitTrigger()
      TriggerCondition( 1, IsMonster,678)
      TriggerAction( 1, AddNextFlag, 190, 110, 5 )
      RegCurTrigger( 1906 )

 

Thanks.

Share this post


Link to post
Share on other sites

Hi @xArvy i dont know how to explain properly , your problem is the flag it has limited num by default, i think 100 or 119

MisNeed(MIS_NEED_KILL, 824, 40, 10, 40), flag 10-49 is belongs to ID 824

Then

MisNeed(MIS_NEED_KILL, 825, 40, 30, 40), flag here would be 30-69 which flag 30-49 already used by ID 824

Simple solution: not too many monster needs to be killed.

This would be perfect

DefineMission(190,"RB2 - Second Quest",190)

      MisBeginTalk("<t>The first quest was easy. This time it will be harder. ")
      MisBeginCondition(HasRecord, 189)
      
      MisBeginCondition(NoRecord,190)
      MisBeginCondition(NoMission,190)
      
      MisBeginAction(AddMission,190)
      MisBeginAction(AddTrigger, 1901, TE_KILL, 824, 20)
      MisBeginAction(AddTrigger, 1902, TE_KILL, 825, 20)
      MisBeginAction(AddTrigger, 1903, TE_KILL, 826, 20)
      MisBeginAction(AddTrigger, 1904, TE_KILL, 807, 5)
      MisBeginAction(AddTrigger, 1905, TE_KILL, 821, 20)
      MisBeginAction(AddTrigger, 1906, TE_KILL, 678, 5)
      MisCancelAction(ClearMission, 190)

      MisNeed(MIS_NEED_DESP, "Kill 40x Hell Mummy B, 40x Hell Corpse A, 40x Hell Corpse B, 5x Deathsoul Commander, 40x Hell Skeleton A, and 5x Snowman Warlord!")
      MisNeed(MIS_NEED_KILL, 824, 20, 10, 20)
      MisNeed(MIS_NEED_KILL, 825, 20, 30, 20)
      MisNeed(MIS_NEED_KILL, 826, 20, 50, 20)
      MisNeed(MIS_NEED_KILL, 807, 5, 70, 5)
      MisNeed(MIS_NEED_KILL, 821, 20, 75, 20)
      MisNeed(MIS_NEED_KILL, 678, 5, 95, 5)

      MisHelpTalk("<t>Kill them.")  
      MisResultTalk("<t>You have good skills. Learn from me from now on. This Fragment represents Wisdom. Take it to fulfill your dream. Rumored that rebirth allows you to reselect class…")
      MisResultCondition(HasMission,190 )
      MisResultCondition(NoRecord,190)
      MisResultCondition(HasFlag, 190, 19)
      MisResultCondition(HasFlag, 190, 49)
      MisResultCondition(HasFlag, 190, 69)
      MisResultCondition(HasFlag, 190, 74)
      MisResultCondition(HasFlag, 190, 94)
      MisResultCondition(HasFlag, 190, 99)
      MisResultAction(GiveItem, 8495, 1, 4 )
      MisResultAction(ClearMission, 190 )
      MisResultAction(SetRecord, 190)
      MisResultBagNeed(1)

      InitTrigger()
      TriggerCondition( 1, IsMonster, 824 )
      TriggerAction( 1, AddNextFlag, 190, 10, 20 )
      RegCurTrigger( 1901 )
      InitTrigger()
      TriggerCondition( 1, IsMonster, 825)
      TriggerAction( 1, AddNextFlag, 190, 30, 20 )
      RegCurTrigger( 1902 )
      InitTrigger()
      TriggerCondition( 1, IsMonster,826  )
      TriggerAction( 1, AddNextFlag, 190, 50, 20 )
      RegCurTrigger( 1903 )
      InitTrigger()
      TriggerCondition( 1, IsMonster, 807 )
      TriggerAction( 1, AddNextFlag, 190, 70, 5 )
      RegCurTrigger( 1904 )
      InitTrigger()
      TriggerCondition( 1, IsMonster, 821 )
      TriggerAction( 1, AddNextFlag, 190, 75, 20 )
      RegCurTrigger( 1905 )
      InitTrigger()
      TriggerCondition( 1, IsMonster,678)
      TriggerAction( 1, AddNextFlag, 190, 95, 5 )
      RegCurTrigger( 1906 )

 

Edited by Yudha

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.

Sign in to follow this  

×
×
  • Create New...