Adding a quest for a MaNGOSE data base

Kategorie: MaNGOS, Tutorials     Autor: lin0x     Datum: Freitag 24 April 2009     Uhrzeit: 22:46          

If you have priviledged access to a MaNGOSE server and its data base, you can consider yourself  lucky. As you already may have noticed, you are not able to add quests to NPCs within a webinterface (being available for MaNGOS).

The solution is that you “modify” the data base directly.

Use PHPMyAdmin to login and access the table “quest_template” and add a new entry. Explanations:

entry The “id” of the quest, make sure it is unique

Method For me it is always “2″

ZoneOrSort The zone where your quest is taking places, e.g. you can use “130″ for the area where castle shadowfang is located, silverpine forest

SkillOrClass Did not work for me at all

MinLevel The level which is required of the player in order to be able to accept your new quest, I always use “78″

QuestLevel The level of the quest, just play around with some values if you want to understand some details, I always use “78″

[..]

QuestFlags Leave empty for normal quests or use “4104″ for daily quests.

Title Well, the title of your quest

Details Some text being displayed when you open the quest and start to read it

Objectives Just what the player has to do, e.g. kill some mobs or collect some items

OfferRewardText The text being displayed when the player came back and is about to finish the quest

RequestItemsText The text being displayed when you come back to the quest giver and start talking to him/her

EndText A short message being displayed when you finished a quest but did not talk to the quest giver yet.. for example (when you track the quest with SHIFT – LEFT MOUSE CLICK):

- Collecting the necessary ressources….

- Mob1 5/5

- Mob2 12/12

- Items collected 55/55

For me, the EndText was kind of bugged sinced MaNGOS seemed to thread it like an objective… and you can not “complete” it because it does not require anything :D You you can not complete the quest because you can not complete this “text objective”…  so you better leave it blank :)

[...]

ReqItemId1 Enter the ID of an item here the player needs to get for an objective, e.g. wolf meat

ReqItemCount1 Enter the amount of items needed of ReqItemId1

ReqCreatureOrGOId1 Enter the ID of a creature here which the player needs to kill.. you can also add .gps-locations as far as I understoof correctly, but never tested it

ReqCreatureOrGOCount1  The amount of mobs needed for ReqCreatureOrGOId1

ReqSpellCast1 I never tested it, but I guess you can define a spell here which a player needs to cast to someone/something

RewChoiceItemId1 You can enter an ID of an item here which a player has to choose as reward… there can be maximum 6 items to chose from

RewChoiceItemCount1 Amount of the item the player gets when he/she choses his/her reward

RewItemId1 The ID of the item the player gets when he/she finishes the quest

RewItemCount1 Amount of the items the player gets (refering to ReqItemId1)

RewHonorableKills Add 250 here if you want the player to get 7600 honor points (for me it is bugged, players get in fact the doubled amount)

RewOrReqMoney You can define here if the player needs to pay some gold (e.g. -3500000 means that the player needs to pay 350 gold in order to complete the quest) of if he/she gets some. Value is in copper.

RewMoneyMaxLevel If you use this field and enter a copper value, the player might even get the doubled amount (is bugged for me) and gets some EXP. Please noctice: If you run a high exp rate server, the player might just get enough exp to jump from level 1 to level 80. The amount of exp gained depends on the money amount you enter here… so be sure you use this field when it is inteded that players also get many exp.

RewSpell Teaches the player a spell

RewSpellCast The creature where you can finish the quest will cast this spell on the player. Can be used to add some cool effects…

[...]

 

I did not discribe every field because most of them are speaking for themselves. Just make sure you know what you are doing :)

After you saved your new quest you can either add the quest within a webinterface (just look up the creature, define it as a quest giver and use the menu “Quests” for adding the quest. You need to enter the quest ID in order to make the chosen creature giving the quest away) or you can add the quest via the two tables creature_involvedrelation and creature_questrelation. I guess the fields are also speaking for themselves…


Keine Kommentare »

Noch keine Kommentare.

RSS-Feed für Kommentare zu diesem Artikel. TrackBack URI

Einen Kommentar hinterlassen

You must be logged in to post a comment.

Copyright © 2010 geekdiscussions.org. WP Theme created by Web Top.