Mathias
Exalted Member
Hai guys! I have been working on this system that allows me to add stats requirements to items, i got all that working but there is a little probleme when it comes to loading the stat requirements from database
currently i have a table in my database called items_StatRequirement and i load that inside ObjectMgr.cpp in the function LoadItemTemplates();
but the way i do to load is extremly slow and does not work properly here is the part of the function i edited my code starts at line 165
http://pastebin.com/DmQ0ec7i
so to explain what happens ingame. it loads all the items and the requirements or atleast thats what the console says. but when i get ingame it seems like it really only loaded the last one. anyone got a clue why also if you can make it more optimized i would love that too
currently i have a table in my database called items_StatRequirement and i load that inside ObjectMgr.cpp in the function LoadItemTemplates();
but the way i do to load is extremly slow and does not work properly here is the part of the function i edited my code starts at line 165
http://pastebin.com/DmQ0ec7i
so to explain what happens ingame. it loads all the items and the requirements or atleast thats what the console says. but when i get ingame it seems like it really only loaded the last one. anyone got a clue why also if you can make it more optimized i would love that too