Quest System

Mu online season 21 - grand opening

Xander

Pantie Sniffer!
Developer
Oct 20, 2003
2,738
57
275
Sheffield
Hi,

Could some one tell me how the quest system works.
I have this.

The NPC has an option to talk to (Green Writing)
IN the code its looking for the QuestDiary ( theres two of these which one do i edit? )

Theres one in Convert_Def and one in Envir

then this is the meat NPC for example:

Code:
[Convert]

[@Convert_01Meat_Bichon-0_0]
{
<¹ØÓÚ½ñÈÕÈÎÎñ½øÐжԻ°¡£/@CALL_Npc_TodayQuest> \
}

[@Convert_01Meat_Bichon-0_1]
{
<¹ØÓÚÈÎÎñ½øÐжԻ°¡£/@CALL_Quest_5> \
}

[@Convert_01Meat_Bichon-0_2]
{
_ÎÒÃÇÕâÀïµÄÅ£Ö»ÓÐÔÚ²ÝÔ*Éϳ¤´óµÄ´¿ÖÖÅ££¬ÍõС¶þÂôµÄÅ£ËäÈ»¼ÛÇ®¹ó£¬µ«Å£ÈâÖÊÁ¿¶¼ÊÇÉϳ˵ġ£\ \
_<¹Ø ±Õ/@exit>

}

Where is @CALL_Npc_TodayQuest and how do i change it and so on.
Basically just run through how this system works!

Thanks!
 

Xander

Pantie Sniffer!
Developer
Oct 20, 2003
2,738
57
275
Sheffield
Could you explain how it calls all different files and which ones i need to edit so i can do this please?

Do i edit the Envir\QuestDiary or Convert_Def\QuestDiary

Also i dont understand how the NPCs actually call the quests. With this @CALL_Npc_TodayQuest i searched for a file name that but nothing returned.

Thanks!
 
Upvote 0

Demonic

LOMCN VIP
VIP
Dec 1, 2003
1,806
2
165
Folder QUESTDIARY on its own Folder is the Mechanics (workings) of the script - this does not hold any Speech part and this is where to look for Items, Mobs and the like.

\Envir\Convert_Def\Market_Def - This is the Speech Part of the NPCS In town
\Envir\Convert_Def\QuestDiary - Speech part of the Quests

\Envir\Market_Def - Where it goes to start with when you click on an NPC.

I would so each Folder one at a time - this way the entire Server will be in English and having the correct Items/mobs and so forth. Most people got bored half way through and thus why you never see 100% english Server with working quests.
 
Upvote 0

Xander

Pantie Sniffer!
Developer
Oct 20, 2003
2,738
57
275
Sheffield
Right thanks for that. Also could you explain the basics of this if its not too much trouble

[@Convert_01Meat_Bichon-0_0]
<¹ØÓÚ½ñÈÕÈÎÎñ½øÐжԻ°¡£/@CALL_Npc_TodayQuest> \

CALL_Npc_TodayQuest
What does this call and where from?

[@Convert_01Meat_Bichon-0_1]
<¹ØÓÚÈÎÎñ½øÐжԻ°¡£/@CALL_Quest_5> \

CALL_Quest_5
Where are these quests located.

Thanks
 
Upvote 0

Demonic

LOMCN VIP
VIP
Dec 1, 2003
1,806
2
165
Little Tip for You - Windows Search :brows:

On Mine it goes a something Liek this:

\Envir\Convert_Def\Market_Def\01Meet_Bichon-0.txt

Talk to {FCOLOR/10}<$NPCNAME>{FOCLOR/12} <About Quest/@TalkToQuest>\\

In \Envir\Market_Def\01Meet_Bichon-0.txt

[@TalkToQuest]
#CALL [NPCQuest_Def\01Meet_Bichon-0.txt] @NPCQuest_Check


This now Jumps to \Envir\QuestDiary\NpcQuest_Def\01Meet_Bichon-0.txt

[@CALL_Quest_5]
#CALL [AreaQuest\ChoBoGuide1\ChoBoGuide1_Warrior.txt] @Basic_Warrior_5

------------------------------------

Maybe I forgot to mention any Call to a folder like that always goes into QUESTDIARY to find the gubbins of the file it wants...

---------------------------------

Does it matter where it jumps? Go Through one directory at a time, Translate it and one everything is done, the server will speak to you in English. There is no Quick Way to Achive this, using Systran will screw up the <Hello@/Here> Calls or other things (As Proven by Fred of Mirworlds), a General Search and Replace program will screw up Mobs and Items - remembering the Chinese can do an entire Sentence using a few Symbols.

End of day though - you have a bit of work ahead of you - which probably explains why there is so few 3G Servers Online.
 
Upvote 0

Xander

Pantie Sniffer!
Developer
Oct 20, 2003
2,738
57
275
Sheffield
Thats great thanks, i know about the work load and tbh im re doing all npcs town by town instead of going through each dir (just the way i like to work lol) but it will be done i just needed to figure out how the quest system works so i didnt screw everything up.

One last question

Code:
#IF
Check [209] 1
Check [409] 0

#SAY
#INCLUDE [..\Convert_Def\QuestDiary\NpcQuest_Def\01Meet_Bichon-0.txt] @Convert_01Meet_Bichon-0_0

#ACT
Mov D0 1

What is this checking?
Code:
#IF
Check [101] 1
Check [301] 0
checkjob Warrior

As this checks to see if the class is warrior and to see if the player has already done the quest.

Looking at some of the quest files there are alot of code/text in them some of these files a big lol i can see why people quit
 
Upvote 0

Demonic

LOMCN VIP
VIP
Dec 1, 2003
1,806
2
165
Flags bascially, when you accept a Quest it sets certain flags, later on when you go to a NPC, if the flags match then you are doing one of the Quests, if other flags match, your doing Daily Quests and finally none of the flags match - it tells you some text such as "I am a brilliant meat dude"..

I cannot remember while I am on by the way if I shared my Game3G, this has all the parts in for Daily Quests such as Items, Mobs and so forth. You need to trabnslate this as well for Daily Quests and some items may well be wrong. One thing I found about Quests (any) is the Killing a Mob Part - it may ask you to go kill Snakes and bring back Potion. There is coded certain parts that you only get the potion when you kill XX Mobs and then sets the flags. If you make the potion as GM, it wont have set all the flags - go to NPC and it wont work but again will set more flags. In turn you end of never getting the potion even if you Kill the mobs and can never complete the quest - Remember this when Testing.

Another thing ref mobs - you migth have to kill 1 or 10000 - the way it is coded in is not that good. This matches by the way Euromir, so even if it says Go Kill EC, you might have to kill 50 of these to finish your quest. Now I have re-written myself this part, if its 3 mobs you have to kill, thats when the part pops up etc...

RARES - you have to make sure your Server name is held in the rareItemdb part or you will be dropping rares till the cows come home, there is a SQL Statement to change this and When I find it, Ill post it for you..
 
Upvote 0