• 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] Max item Required Level 127

Status
Not open for further replies.

Fort

Respected Member
Hi Emudevs i recently Compiled a Recent version of Trinitycore and i am Having a Issue Setting item Required Equip Level on items, Everytime i try to set it to 255 it changes to level 127 only is there any fix to my Issue. Thanks in Advance more power to Emudevs
 

Hyperion

Founder
I'm only saying this because I am honest.
If you make a server with a max level over 99 where it hits 3 digits, you're bound to run into issues.

Out of curiosity, what happens if you set the required level to 300? Does the level raise higher than 127?
 

Fort

Respected Member
I'm only saying this because I am honest.
If you make a server with a max level over 99 where it hits 3 digits, you're bound to run into issues.

Out of curiosity, what happens if you set the required level to 300? Does the level raise higher than 127?

I edit the core to be max 255 leveling to 255 is ok But my issue are the items like when i edit shadowmourne to be usable by level 255 only. when i set 255 on the item template it sets only to 127 not 255 never tried increasing the level to 300
warglaive.jpg
Like this Weapon i set it to 255 but still stays at 127
 
Last edited:

Hyperion

Founder
I edit the core to be max 255 leveling to 255 is ok But my issue are the items like when i edit shadowmourne to be usable by level 255 only. when i set 255 on the item template it sets only to 127 not 255 never tried increasing the level to 300
View attachment 14
Like this Weapon i set it to 255 but still stays at 127

Try increasing the required level #
 

Fort

Respected Member
did you raise the max level in the core to 255 or just the config?
Yes i did i dont have issues with leveling to 255 i already edited the core to 255 only issue is the items wont set to 255 always reset to 127
 

Laurea

Enthusiast
Is it 127 in the database or only ingame? If the former, check what type the RequiredLevel field is (mine is tinyint(3) unsigned NOT NULL) using your prefered SQL editor. If the latter, you may have to look through the core - more specifically, ObjectMgr::LoadItemTemplates in ObjectMgr.cpp. (if you're using Visual Studio, searching for RequiredLevel with Current Block ( LoadItemTemplates() ) selected may help)
 

Fort

Respected Member
Is it 127 in the database or only ingame? If the former, check what type the RequiredLevel field is (mine is tinyint(3) unsigned NOT NULL) using your prefered SQL editor. If the latter, you may have to look through the core - more specifically, ObjectMgr::LoadItemTemplates in ObjectMgr.cpp. (if you're using Visual Studio, searching for RequiredLevel with Current Block ( LoadItemTemplates() ) selected may help)
When i try to set it in Database to 255 it resets to 127 also in Database
 

Rochet2

Moderator / Eluna Dev
Yup i did check nothing worked
"Nothing worked" So .. you tried something?
Could you tell us the column type?
Does the value reset even if you dont start the server?
???

Leave the core to UInt8. It is the correct and the max for that is 255.
 
Last edited:

Parranoia

Insane Member
The RequiredLevel field uses a TINYINT to store data so you cannot exceed it's limit. Whats strange though is that it seems your RequiredLevel field may be signed instead of unsigned.

Try this
Code:
ALTER TABLE `item_template`
	CHANGE COLUMN `RequiredLevel` `RequiredLevel` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0' AFTER `ItemLevel`;
 

Fort

Respected Member
The RequiredLevel field uses a TINYINT to store data so you cannot exceed it's limit. Whats strange though is that it seems your RequiredLevel field may be signed instead of unsigned.

Try this
Code:
ALTER TABLE `item_template`
	CHANGE COLUMN `RequiredLevel` `RequiredLevel` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0' AFTER `ItemLevel`;
Thanks Parranoia that Solved my problem really Appreciate all the help, and thanks to Faded,Laurea,Rochet2 for Taking Time to figure my issue out... Request for Thread to be Closed Issue Solved More Power to Emudevs :thumbupguy:
 
Status
Not open for further replies.
Top