Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Creating missions/quests (dragoncryx halp! xD)

Newbie Spellweaver
Joined
Nov 29, 2010
Messages
36
Reaction score
1
Quest bug

How do I create custom quest?

I want one that gives reward for killing x # of monster. help please?
 
Last edited:
Skilled Illusionist
Joined
Jun 5, 2009
Messages
311
Reaction score
28
lolz ... nice thread name xD

PHP:
	DefineMission( 9998, "Mision Name", 9999 )
	
	MisBeginTalk( "Text" )
	MisBeginCondition(NoMission, 9999)
	MisBeginCondition(LvCheck, ">", 1 )
	MisBeginCondition(PfEqual, 0 )
	MisBeginAction(AddMission, 9999)
	MisBeginAction(SetFlag, 9999, 1)
	MisBeginAction(AddTrigger, 1, TE_KILL, MobID, HowMany )
	MisBeginAction(AddTrigger, 2, TE_KILL, MobID, HowMany )
	MisCancelAction(ClearMission, 9999)
	
	MisNeed(MIS_NEED_KILL, ID, HowMany, 10, HowMany)
	MisNeed(MIS_NEED_KILL, ID, HowMany, 20, HowMany)
                  MisPrize(MIS_PRIZE_MONEY, 100000, 1)
	MisPrize(MIS_PRIZE_ITEM, RewardID, HowMany, 4)
	MisPrizeSelAll()
	
	MisResultTalk("Text")
	MisHelpTalk("Text2")
	MisResultCondition(HasMission, 9999)
	MisResultCondition(HasFlag, 1, 14 )
	MisResultCondition(HasFlag, 2, 29 )
	MisResultAction(ClearMission, 9999)
	MisResultBagNeed(1)
	
	InitTrigger()
	TriggerCondition( 1, IsMonster, ID )	
	TriggerAction( 1, AddNextFlag, 9999, 10, HowMany )
	RegCurTrigger( 1 )

	InitTrigger()
	TriggerCondition( 1, IsMonster, ID )	
	TriggerAction( 1, AddNextFlag, 9999, 20, HowMany )
	RegCurTrigger( 2 )
im not sure it will work but u can try
 
Newbie Spellweaver
Joined
Nov 29, 2010
Messages
36
Reaction score
1
Huge bump, please don't kill me =/ I'd just rather not create a new thread.

I have a giant bug: Simple thing: kill 50 forest spirits and 50 snails. Doing 10 of each works fine, but once you kill the 11th, your log jumps to 23/50... It also allows you to finish the quest without actually killing the right amount of mobs

Code:
DefineMission( 9994, "Ep. 1 Know the Capital II", 1402 )
	
	MisBeginTalk( "<t>Not releasing")
	MisBeginCondition(HasRecord, 1401)
	MisBeginCondition(NoMission, 1402)
	MisBeginAction(AddMission, 1402)
	MisBeginAction(SetFlag, 1402, 1)
	MisBeginAction(AddTrigger, 14021, TE_KILL, 71, 50 )
	MisBeginAction(AddTrigger, 14022, TE_KILL, 103, 50 )
	MisCancelAction(ClearMission, 1402)

	
	MisNeed(MIS_NEED_KILL, 71, 50, 10, 50)
	MisNeed(MIS_NEED_KILL, 103, 50, 20, 50)

	MisPrize(MIS_PRIZE_ITEM, 1, 1, 4)
	MisPrizeSelAll()
	
	MisResultTalk("not releasing")
	MisHelpTalk("<t>not releasing")
	MisResultCondition(HasMission, 1402)
	MisResultCondition(HasFlag, 1402, 59 )
	MisResultCondition(HasFlag, 1402, 69 )
	MisResultAction(ClearMission, 1402)
	MisResultAction(SetRecord, 1402)
	
	
	InitTrigger()
	TriggerCondition( 1, IsMonster, 71 )	
	TriggerAction( 1, AddNextFlag, 1402, 10, 50 )
	RegCurTrigger( 14021 )
	InitTrigger()
	TriggerCondition( 1, IsMonster, 103 )	
	TriggerAction( 1, AddNextFlag, 1402, 20, 50 )
	RegCurTrigger( 14022 )
 
Last edited:
Back
Top