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 New Quests Guide

Newbie Spellweaver
Joined
Apr 26, 2013
Messages
11
Reaction score
1
A bit explanation for those who wants to create new quests :

You have to look into QuestString and QuestScript bins ;

in QuestScript you will find this : example of quest :

$QUEST 585 53 132 (Reading this : 585 : is the quest ID - 53 is Map ID and 132 is NPC Unique ID - you find the unique id in StaticNPC.bin)
{
$SUBQUEST 0 (Subquest 0 is where you state the quest requeriments)
{
#LIMIT &LEVEL 97 101 (Im telling here that the quest is only for lv 97 to 101)
#LIMIT &QUEST 386 (Im telling here that the quest is only showable if you have completed Quest 386 (Hunter A emblem)

#TRIGGER @TalKTONPC 132(npc unique id) 585 (Quest ID *GIVEMONEY 20000000(here im stating that you have to give to npc 2kk gold to start the quest) *ENDSUB *STARTSUB 585 1 ( here im telling the game to state the strings descriptions that i stated in QUESTSTRING.bin) it will search for strings subquest 585 - string 1

#NPCSCRIPT @NPC 132 110 1 0 - mission
}
$SUBQUEST 1 (start string 1 for quest 585 so it will show the quest description for that quest)
{
#TRIGGER @HUNT 320 (monster unique id) 0 *ADDCOUNT 1 100 (add count to quest description and when player kills mob)
#TRIGGER @count 1 100 (quantity of mobs to kill) *ENDSUB *ADDCOUNT 5 4

#NPCSCRIPT @NPC 132 111 2 0
}

$SUBQUEST 2 (start string 2 if mission ended)
{
#TRIGGER @TalKTONPC 132 585 (talk to npc) *ENDSUB *ENDQUEST 1 (end quest) *TAKEMONEY 2100000 *TAKEEXP 10900000 (give reward)

#NPCSCRIPT @NPC 132 120 1 0
}
}



Explaining QuestString.bin :
So here we have the description of the quest we created :

$SUBQUESTSTR 585 0 (description for quest 585 - string 0 the quest requeriments)
{
#TITLE Hunter S++ Quest : Insects invade
#DESC
{
You can enter text here for quest details or history.
}
}
$SUBQUESTSTR 585 1 (String 1 for quest 585 where we told the questscript to hunt for 100 mobs)
{
#TITLE Elimina Mosquitos
#DESC
{
Elimina 50 Mosquitos (mob id was mosquitos and we told in script to hunt for 100 and added a count to 100)
}
}

That's all ; if you want to add more strings just add or look into other quests and analyze the data you have there.

hope it helps for your new quests.

- - - Updated - - -

Quests


Quests Commands :
*ENDQUEST
*STARTSUB
*ENDSUB
*ENDOTHERSUB
*ADDCOUNT
*ADDCOUNTFQW
*ADDCOUNTFW
*ADDCOUNTLEVELGAP
*ADDCOUNTMONLEVEL
*GIVEQUESTITEM
*TAKEQUESTITEM
*GIVEITEM
*GIVEMONEY
*TAKEITEM
*TAKEMONEY
*TAKEEXP
*TAKESEXP
*TAKEQUESTITEMFQW
*TAKEQUESTITEMFW
*TAKEMONEYPERCOUNT
*RANDOMTAKEITEM
*REGENMONSTER
*MAPCHANGE
*CHANGESTAGE
*REGISTTIME

 
Last edited:
Newbie Spellweaver
Joined
Oct 27, 2013
Messages
57
Reaction score
10
Should also be mentioned that for writing new quests or even adjusting existing ones, the clients TESTCLIENT build configuration is extremely helpful, as it features a quest testing system that can aid in debugging any issues and ensuring your quest works and triggers where desired.
 
Back
Top