Black Wolfs Den
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Keywords

eluna  

Latest topics
» Were Back Baby \o/
[TC]255 server stats edit! By Frost - Thanx Icon_minitime1Fri Nov 15, 2019 8:00 pm by Grumbo

» TrinityCore 2 Gold Max Work-Around
[TC]255 server stats edit! By Frost - Thanx Icon_minitime1Tue Mar 21, 2017 9:14 pm by Grumbo

» [CPP][Conv] Dedicated World Chat Channel
[TC]255 server stats edit! By Frost - Thanx Icon_minitime1Tue Mar 21, 2017 8:56 pm by Grumbo

» Cool [CPP] Grumbo'z VIP System
[TC]255 server stats edit! By Frost - Thanx Icon_minitime1Tue Mar 21, 2017 8:03 pm by Grumbo

» [CPP] EmuDevs Premium System
[TC]255 server stats edit! By Frost - Thanx Icon_minitime1Tue Mar 21, 2017 7:18 pm by Grumbo

» [TC]255 server stats edit! By Frost - Thanx
[TC]255 server stats edit! By Frost - Thanx Icon_minitime1Tue Mar 21, 2017 6:27 pm by Grumbo

» [Eluna] Grumbo`z VIP System
[TC]255 server stats edit! By Frost - Thanx Icon_minitime1Tue Mar 21, 2017 6:20 pm by Grumbo

» [CPP] Grumbo'z Capture the Flag System
[TC]255 server stats edit! By Frost - Thanx Icon_minitime1Tue Mar 21, 2017 5:14 pm by Grumbo

» Black Wolfs Den
[TC]255 server stats edit! By Frost - Thanx Icon_minitime1Mon Mar 20, 2017 10:07 pm by Grumbo

March 2024
MonTueWedThuFriSatSun
    123
45678910
11121314151617
18192021222324
25262728293031

Calendar Calendar

Affiliates

free forum

Forumotion on Facebook Forumotion on Twitter Forumotion on YouTube Forumotion on Google+


[TC]255 server stats edit! By Frost - Thanx

Go down

[TC]255 server stats edit! By Frost - Thanx Empty [TC]255 server stats edit! By Frost - Thanx

Post by Grumbo Tue Mar 21, 2017 6:27 pm

BEFORE YOU BEGIN DOING THIS PLEASE KNOW HOW TO CHANGE A DATABASE STRUCTURE NOT THE
DATA IN THE DATABASE!

Ok, Welcome to my Tutorial.
if anyone knows a better way to do this by all means
post a reply with a different method.

first things first:

files to edit:
1)dbcenums.h
2)objectmgr.cpp


dbcenums.h


Code:

DEFAULT_MAX_LEVEL = 255,
MAX_LEVEL = 255,
STRONG_MAX_LEVEL = 255,
objectmgr.cpp
Stats Edit to allow higher hp/dmg etc:


Code:
// these edits are stats changes that make items/creatures stats cap go up.(like adding a shirt that adds 20394 health.
// NOTE: When making your gear don't go ape shit with the stats as there is still a cap because too high of stats
// and you get a few problems like npc's dead or spawning with low hp or too high of hp
// these edits require database table changes!!! don't set huge values for the tables lenth... i reccommend the max be set to 20
//you must change the table structures to the new data types or you will fail and shit wont work.
//if anyone has an sql file that can do the table edits please by all means post them here and ill add them to this tutorial Smile
//in the itemtemplate database when you edit the tables look for these rows

//find these lines and change them to the ones below inside of objectmgr.cpp

itemTemplate.ItemStat[i].ItemStatValue = int32(fields[29 + i*2].GetInt32()); // changed to bigint

itemTemplate.Damage[i].DamageMin = fields[50 + i*3].GetUInt32(); // changed from float to bigint

itemTemplate.Damage[i].DamageMax = fields[51 + i*3].GetUInt32(); // changed from float to bigint


creatureTemplate.ModHealth = fields[70].GetUInt32(); // changed to bigint from float

creatureTemplate.mindmg = fields[24].GetUInt32(); //change to bigint from float

creatureTemplate.maxdmg = fields[25].GetUInt32(); // change to bigint from float
now the fun part.

you must change your sql tables data structures for this to work:
if you use navicat rightclick the table and goto design table!
edit these rows in items_template "structure"


Code:
stat_value1 // change to bigint length 12
stat_value2 // change to bigint length 12
stat_value3 // change to bigint length 12
stat_value4 // change to bigint length 12
stat_value5 // change to bigint length 12
stat_value6 // change to bigint length 12
stat_value7 // change to bigint length 12
stat_value8 // change to bigint length 12
stat_value9 // change to bigint length 12
stat_value10 // change to bigint length 12
DamageMin //change to bigint and a lenth of 8
DamageMax //change to bigint and a lenth of 8


if you use navicat rightclick the table and goto design table!
edit these rows in creature_template "structure"

Code:
ModHealth //to bigint length 8
mindmg //to bigint length 8
maxdmg //to bigint length 8

Credits to slp13at420 for the toolz:
Next step:
toolz for 255 realm stats
Please consider donating for access to these tools Smile


edit: changed values from mediumint to bigint
newest fixes are in green
Grumbo
Grumbo
Admin
Admin

Posts : 95
Points : 234
Join date : 2014-08-21
Location : Pocatello Idaho

http://blackwolfsden.dnsdynamic.net/

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum