PDA

View Full Version : TrinityCore 3.3.5 Class item usage



madman1851
08-17-2016, 06:21 PM
Hi guys,

could anyone point me to place in core where you can set what item can class use?

Thank you for answers :-)

Vitrex
08-17-2016, 06:30 PM
As far as i know you can find some checks/disables in itemHandler.cpp
if i remember correct i edited it here for vendors : https://github.com/TrinityCore/TrinityCore/blob/3.3.5/src/server/game/Handlers/ItemHandler.cpp#L777
Also there is one more place where it sets the data : https://github.com/TrinityCore/TrinityCore/blob/3.3.5/src/server/game/Handlers/ItemHandler.cpp#L343

unfortunately in itemPrototype.h there is no comments for AllowableClass variable the same as in .cpp

And the main edits should be done i player.cpp here i guess.

https://github.com/TrinityCore/TrinityCore/blob/3.3.5/src/server/game/Entities/Player/Player.cpp#L11589
https://github.com/TrinityCore/TrinityCore/blob/3.3.5/src/server/game/Entities/Player/Player.cpp#L11641

slp13at420
08-18-2016, 10:34 PM
Side-Note

There also is a place in the sql DB to set that:
world.item_template.AllowableClass

madman1851
08-19-2016, 04:26 PM
Thank you for your answers, but i'm seeking different thing (my bad for writing it first time wrong). I need to find skills that class is able to use like plate mail etc.

Vitrex
08-19-2016, 05:42 PM
same place, player.cpp
https://github.com/TrinityCore/TrinityCore/blob/3.3.5/src/server/game/Entities/Player/Player.cpp#L11647