This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: Custom Consumable  (Read 2449 times)

askion

  • Contributors
  • LUA Script Tinker
  • *****
  • Posts: 40
    • View Profile
Custom Consumable
« 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?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
AnimeFusion Dev.

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: Custom Consumable
« Reply #1 on: June 04, 2012, 11:52:24 am »
Yes, there is.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

askion

  • Contributors
  • LUA Script Tinker
  • *****
  • Posts: 40
    • View Profile
Re: Custom Consumable
« Reply #2 on: June 04, 2012, 12:00:39 pm »
Chance of you telling? pleaseeee ^_^
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
AnimeFusion Dev.

Ascathos

  • Moderators
  • Creator of Worlds
  • *****
  • Posts: 1129
    • View Profile
Re: Custom Consumable
« Reply #3 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
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

askion

  • Contributors
  • LUA Script Tinker
  • *****
  • Posts: 40
    • View Profile
Re: Custom Consumable
« Reply #4 on: June 04, 2012, 01:03:24 pm »
Thanks, i was trying to get it too work through item_template ._.

i'll try this ^_^
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
AnimeFusion Dev.

Elinora

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 187
    • View Profile
Re: Custom Consumable
« Reply #5 on: June 04, 2012, 02:09:03 pm »
totally offtopic, but I love that nicolas cage picture hahahaha
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Currently studying Game Design at Copenhagen University. I also have a big project going on, sadly I have no portfolio of it (yet).

Soldan

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 159
    • View Profile
Re: Custom Consumable
« Reply #6 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?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: Custom Consumable
« Reply #7 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Please mark as solved if solved.
Don't ask if you could ask a question... JUST ask the Question.
You can send me also offline messages. I will answer if I get online.
Skype: project.modcraft
Discord: steff#6954

ZxOxZ21

  • Registred Member
  • Race Changer
  • *****
  • Posts: 30
    • View Profile
Re: Custom Consumable
« Reply #8 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Solarion

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 154
    • View Profile
Re: Custom Consumable
« Reply #9 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...
« Last Edit: January 01, 1970, 01:00:00 am by Admin »