Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Serverside Modding => Topic started by: askion on June 04, 2012, 10:56:27 am

Title: Custom Consumable
Post by: askion on June 04, 2012, 10:56:27 am
is there a way to make custom consumable items, like custom drinks get removed from inventory on use?
Title: Re: Custom Consumable
Post by: schlumpf on June 04, 2012, 11:52:24 am
Yes, there is.
Title: Re: Custom Consumable
Post by: askion on June 04, 2012, 12:00:39 pm
Chance of you telling? pleaseeee ^_^
Title: Re: Custom Consumable
Post by: Ascathos on June 04, 2012, 12:38:57 pm
Basically an item in the item.dbc with consumable settings. Search for one as basic and work your way up from there. Set an existing foodtype or create a new one - I think that one is in an dbc, but I might be wrong. Checking right now


// Edited
Title: Re: Custom Consumable
Post by: askion on June 04, 2012, 01:03:24 pm
Thanks, i was trying to get it too work through item_template ._.

i'll try this ^_^
Title: Re: Custom Consumable
Post by: Elinora on June 04, 2012, 02:09:03 pm
totally offtopic, but I love that nicolas cage picture hahahaha
Title: Re: Custom Consumable
Post by: Soldan on June 04, 2012, 03:38:40 pm
Ehm... Sometimes I don't get why there are topics including the most complex mods based on WoW, and then.. topics that reduce themselves to a simple sql query, and the simplest dbc editing xD

Extract the same type of item that you want, change the entry, display, spell, or whatever you want, execute the query and re-make item.dbc, put it in a patch, and in your server.


O.o?
Title: Re: Custom Consumable
Post by: Steff on June 05, 2012, 09:41:50 am
Some people post to fast. Instead of having a look at the data from Blizzard and try it self.
Title: Re: Custom Consumable
Post by: ZxOxZ21 on June 25, 2012, 12:50:05 pm
You can make an custom item, use Spell ID 33208 (Dummy Spell), and make the Use: Use Details using Item Description. All you have to do is to remove Quotes from Item Descriptions and use the Color Tags, like:

Code: [Select]
|CFF07F800 Use: Teleports the caster to Silvermoon City. |R
|CFF07F800 - That's the Color of the Green Text from Consumable Items.

And after, you can script in Lua the item.
If you need more help with that feel free to contact me.

Also, I'm gonna post a thread soon how to remove the Item Description's Quotes.
Title: Re: Custom Consumable
Post by: Solarion on June 25, 2012, 01:22:47 pm
Lol....is there really need to make a patch for it? Just change the stuff you need in HeidiSQL save, restart server and there you go...