• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[SOLVED] Create item lootable that give Currency

Status
Not open for further replies.

blackmetal

Exalted Member
As the title, i'm stucking at this. Example i want A bag have loot Dalaran Cooking Award ( Currency 81 ) . How i can do this? Thanks!
TrinityCore 4.3.4
 
Last edited:

Barebones

BETA Tester
Well, it's already a currency. You can make a bag that gives you 5x of them 100% of the time. Is that what you'd like?
 

Barebones

BETA Tester
Try using .additem 43016 100

Anyway, this what you do.

Go to item_loot_template in the DB and create a new row. Set the entry to 500000, set the item to 4306, set the chance to 100, set loot mode to 1, and set the mind and the max count to 5.

Now go into item_template in the DB. Find the item with the entry Id of 44113. Copy it. Change the entry Id to 500000. Change the name of the item.

There ya go.
 

blackmetal

Exalted Member
Did that several times.... Problem here is can't using item 43016 to purchase anything from Cooking Vendor!
Because It is in bag, not in tab currency :(
 

Barebones

BETA Tester
Go into item_template in your DB and delete the item with the entry 43016.

Now, copy this and run it in your query:
INSERT INTO `item_template` VALUES (43016, 10, 0, -1, 'Dalaran Cooking Award', 32746, 2, 0, 0, 1, 0, 0, 0, 262143, 32767, 70, 29, 0, 0, 0, 0, 0, 0, 0, 2147483647, 2147483647, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 1, 'Redeem at the Dalaran Cooking Supplier.', 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 8192, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, '', 0, 0, 0, 0, 0, 12340);
 

Barebones

BETA Tester
I should have asked. If you can, add a currency vendor that has all the currency in it. Then add each currency until you find one that goes into your currency tab. Then go into your database and find that item. Make a copy of it. Change the entry Id of the copied item to 43016. Change the name of the item. And there you go.

Make sure you have deleted the original 43016. Keep a back up just in case.
 

blackmetal

Exalted Member
I can't. This is cataclysm, not WOTLK :(
So currency is not item in Cataclysm and i have no way to add it in vendor >.<
 

Barebones

BETA Tester
[MENTION=713]blackmetal[/MENTION] Try this:

INSERT INTO `item_template` VALUES (43016, 10, 0, -1, 'Dalaran Cooking Reward', 32746, 2, 2048, 8192, 0.9661, 1, 1, 0, 0, 0, 262143, -1, 80, 80, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, -1, 0, -1, 0, 0, 0, -1, 0, -1, 0, 0, 0, -1, 0, -1, 0, 0, 0, -1, 0, -1, 1, 'Redeem at the Dalaran Cooking Supplier.', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8192, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15595);
 

Tommy

Founder
You want a bag to have loot? That's not difficult at all, and it shouldn't have taken 2 pages to answer it. :p

If you're creating a new bag, set the column values (in item_template) to:

Class: 1 -- Container
Subclass: 0 -- 1 | 0 = Bag
Flags: 4 -- Can be opened

As for the loot, you can look at this page: http://collab.kpsn.org/display/tc/Loot+template+tc2 for help.

Entry = Loot entry
Item = Item entry
ChanceOrQuestChance = Chance for the item to be added to the loot (100 = will be lootable all the time)
lootmode = Leave it at 0
groupid = Leave it at 0
mincountOrRef = Minimum count of how many items that will be looted
maxcount = Maximum count of how many items will be looted (Must be higher than minCount)
 
Status
Not open for further replies.
Top