<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>geekdiscussions.org &#187; MaNGOS</title>
	<atom:link href="http://geekdiscussions.org/category/mangos/feed/" rel="self" type="application/rss+xml" />
	<link>http://geekdiscussions.org</link>
	<description>the path to knowledge...</description>
	<lastBuildDate>Sun, 13 Dec 2009 11:57:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Making a cow speaking &#8211; MaNgos Scripting</title>
		<link>http://geekdiscussions.org/2009/04/making-a-cow-speaking-mangos-scripting/</link>
		<comments>http://geekdiscussions.org/2009/04/making-a-cow-speaking-mangos-scripting/#comments</comments>
		<pubDate>Sun, 26 Apr 2009 21:42:38 +0000</pubDate>
		<dc:creator>lin0x</dc:creator>
				<category><![CDATA[MaNGOS]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://geekdiscussions.org/?p=211</guid>
		<description><![CDATA[1. Modify creature 2442 (normal cow) and set the faction to 32.
2. Go to the table eventai_scripts and add a new entry, I used this data:
id: 9006734
creature_id: 2442
event_type: 4
event_chance: 100
action1_type: 1
action1_param1: -5621
comment: cow event on aggro
 
event_type 4 means, that the event is triggered by drawing aggro from a player. The action type basically says that the action is declared as &#8220;saying&#8221;, [...]]]></description>
			<content:encoded><![CDATA[<p>1. Modify creature 2442 (normal cow) and set the faction to 32.</p>
<p>2. Go to the table eventai_scripts and add a new entry, I used this data:</p>
<p><strong>id</strong>: 9006734</p>
<p><strong>creature_id</strong>: 2442</p>
<p><strong>event_type</strong>: 4</p>
<p><strong>event_chance</strong>: 100</p>
<p><strong>action1_type</strong>: 1</p>
<p><strong>action1_param1</strong>: -5621</p>
<p><strong>comment</strong>: cow event on aggro</p>
<p> </p>
<p>event_type 4 means, that the event is triggered by drawing aggro from a player. The action type basically says that the action is declared as &#8220;saying&#8221;, and the param refers to an entry in eventai_texts.</p>
<p>I created this one:</p>
<p><strong>entry:</strong> -5621</p>
<p><strong>content_default:</strong> Moooooooh. Don&#8217;t attack the cow!</p>
<p> </p>
<p>And for the whole thing to be working, edit the creature template of entry 2442 and add <strong>mob_eventai</strong> to the field &#8220;Script name&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://geekdiscussions.org/2009/04/making-a-cow-speaking-mangos-scripting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making a creature move &#8211; MaNGOS</title>
		<link>http://geekdiscussions.org/2009/04/making-a-creature-move-mangos/</link>
		<comments>http://geekdiscussions.org/2009/04/making-a-creature-move-mangos/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 21:49:57 +0000</pubDate>
		<dc:creator>lin0x</dc:creator>
				<category><![CDATA[MaNGOS]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://geekdiscussions.org/?p=209</guid>
		<description><![CDATA[If you want to let your creature move just spawn it (do .npc add ID) and go to a location near the spawn point. Do .wp add while you have selected the creature / have the creature in target. A waypoint will the be added to your current location, the creature will respawn and move [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to let your creature move just spawn it (do .npc add ID) and go to a location near the spawn point. Do .wp add while you have selected the creature / have the creature in target. A waypoint will the be added to your current location, the creature will respawn and move to this new way point immediately. You can now use .wp show on while you selected the creature &#8211; the waypoints will then become visible for you.</p>
<p>Of course you can devine several waypoints for this NPC &#8230; e.g. my custom quest givers are moving through a shopping center.</p>
]]></content:encoded>
			<wfw:commentRss>http://geekdiscussions.org/2009/04/making-a-creature-move-mangos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding a quest for a MaNGOSE data base</title>
		<link>http://geekdiscussions.org/2009/04/adding-a-quest-for-a-mangose-data-base/</link>
		<comments>http://geekdiscussions.org/2009/04/adding-a-quest-for-a-mangose-data-base/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 21:46:29 +0000</pubDate>
		<dc:creator>lin0x</dc:creator>
				<category><![CDATA[MaNGOS]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://geekdiscussions.org/?p=206</guid>
		<description><![CDATA[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 &#8220;modify&#8221; the data base directly.
Use PHPMyAdmin to login and access the [...]]]></description>
			<content:encoded><![CDATA[<p>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).</p>
<p>The solution is that you &#8220;modify&#8221; the data base directly.</p>
<p>Use PHPMyAdmin to login and access the table &#8220;quest_template&#8221; and add a new entry. Explanations:</p>
<p><strong>entry </strong>The &#8220;id&#8221; of the quest, make sure it is unique</p>
<p><strong>Method</strong> For me it is always &#8220;2&#8243;</p>
<p><strong>ZoneOrSort</strong> The zone where your quest is taking places, e.g. you can use &#8220;130&#8243; for the area where castle shadowfang is located, silverpine forest</p>
<p><strong>SkillOrClass</strong> Did not work for me at all</p>
<p><strong>MinLevel</strong> The level which is required of the player in order to be able to accept your new quest, I always use &#8220;78&#8243;</p>
<p><strong>QuestLevel</strong> The level of the quest, just play around with some values if you want to understand some details, I always use &#8220;78&#8243;</p>
<p>[..]</p>
<p><strong>QuestFlags</strong> Leave empty for normal quests or use &#8220;4104&#8243; for daily quests.</p>
<p><strong>Title</strong> Well, the title of your quest</p>
<p><strong>Details</strong> Some text being displayed when you open the quest and start to read it</p>
<p><strong>Objectives</strong> Just what the player has to do, e.g. kill some mobs or collect some items</p>
<p><strong>OfferRewardText</strong> The text being displayed when the player came back and is about to finish the quest</p>
<p><strong>RequestItemsText</strong> The text being displayed when you come back to the quest giver and start talking to him/her</p>
<p><strong>EndText</strong> 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 &#8211; LEFT MOUSE CLICK):</p>
<p>- Collecting the necessary ressources&#8230;.</p>
<p>- Mob1 5/5</p>
<p>- Mob2 12/12</p>
<p>- Items collected 55/55</p>
<p>For me, the EndText was kind of bugged sinced MaNGOS seemed to thread it like an objective&#8230; and you can not &#8220;complete&#8221; it because it does not require anything <img src='http://geekdiscussions.org/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  You you can not complete the quest because you can not complete this &#8220;text objective&#8221;&#8230;  so you better leave it blank <img src='http://geekdiscussions.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>[...]</p>
<p><strong>ReqItemId1 </strong>Enter the ID of an item here the player needs to get for an objective, e.g. wolf meat</p>
<p><strong>ReqItemCount1</strong> Enter the amount of items needed of <strong>ReqItemId1</strong></p>
<p><strong>ReqCreatureOrGOId1</strong> 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</p>
<p><strong>ReqCreatureOrGOCount1</strong>  The amount of mobs needed for <strong>ReqCreatureOrGOId1</strong></p>
<p><strong>ReqSpellCast1</strong> I never tested it, but I guess you can define a spell here which a player needs to cast to someone/something</p>
<p><strong>RewChoiceItemId1</strong> You can enter an ID of an item here which a player has to choose as reward&#8230; there can be maximum 6 items to chose from</p>
<p><strong>RewChoiceItemCount1 </strong>Amount of the item the player gets when he/she choses his/her reward</p>
<p><strong>RewItemId1</strong> The ID of the item the player gets when he/she finishes the quest</p>
<p><strong>RewItemCount1</strong> Amount of the items the player gets (refering to <strong>ReqItemId1</strong>)</p>
<p><strong>RewHonorableKills</strong> 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)</p>
<p><strong>RewOrReqMoney</strong> 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.</p>
<p><strong>RewMoneyMaxLevel</strong> 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&#8230; so be sure you use this field when it is inteded that players also get many exp.</p>
<p><strong>RewSpel</strong>l Teaches the player a spell</p>
<p><strong>RewSpellCast </strong>The creature where you can finish the quest will cast this spell on the player. Can be used to add some cool effects&#8230;</p>
<p>[...]</p>
<p> </p>
<p>I did not discribe every field because most of them are speaking for themselves. Just make sure you know what you are doing <img src='http://geekdiscussions.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>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 &#8220;Quests&#8221; 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&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://geekdiscussions.org/2009/04/adding-a-quest-for-a-mangose-data-base/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Extended Costs &#8211; MaNGOS stuff</title>
		<link>http://geekdiscussions.org/2009/04/extended-costs-mangos-stuff/</link>
		<comments>http://geekdiscussions.org/2009/04/extended-costs-mangos-stuff/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 21:20:34 +0000</pubDate>
		<dc:creator>lin0x</dc:creator>
				<category><![CDATA[MaNGOS]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://geekdiscussions.org/?p=202</guid>
		<description><![CDATA[When you add an item to a vendor (we are talking about MaNGOS here, an OpenSource World of Warcraft server software ), you can specify some paramters. One of them is called &#8220;extended costs&#8221; and can be used for additional requirements.
For example, you can define that a player needs some honor and arena points in [...]]]></description>
			<content:encoded><![CDATA[<p>When you add an item to a vendor (we are talking about MaNGOS here, an OpenSource World of Warcraft server software ), you can specify some paramters. One of them is called &#8220;extended costs&#8221; and can be used for additional requirements.</p>
<p>For example, you can define that a player needs some honor and arena points in order to be able to buy the item. Unfortunately you can not just insert a numeric value for the &#8220;extended costs&#8221;, in fact you need to to insert a sort of template id.  For example, if you use &#8220;2559&#8243; the item costs 49600 honor points. Until today I did not find any table within the database where I can view those &#8220;extended costs templates&#8221; &#8230; so I started to guess some numbers in order to find some honor only values.</p>
<p>This is what I found:</p>
<p>2570 (value for extended cost) = 50 000 honor points</p>
<p>2569 = 60 000 points</p>
<p>2561 = 38 000 points</p>
<p>2560 = 31600 points</p>
<p>2559 = 49 600 points</p>
<p> </p>
<p>So if you add an item with .npc additem &lt;maxcount&gt; &lt;incrtime&gt; &lt;extended costs&gt; (or within a webinterface) make sure you do it like this: .npc additem 0 0 2559 (e.g.)</p>
]]></content:encoded>
			<wfw:commentRss>http://geekdiscussions.org/2009/04/extended-costs-mangos-stuff/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
