Keywords

eluna  

Latest topics
» TrinityCore 2 Gold Max Work-Around
Tue Mar 21, 2017 9:14 pm by Grumbo

» [CPP][Conv] Dedicated World Chat Channel
Tue Mar 21, 2017 8:56 pm by Grumbo

» Cool [CPP] Grumbo'z VIP System
Tue Mar 21, 2017 8:03 pm by Grumbo

» [CPP] EmuDevs Premium System
Tue Mar 21, 2017 7:18 pm by Grumbo

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

» [Eluna] Grumbo`z VIP System
Tue Mar 21, 2017 6:20 pm by Grumbo

» [CPP] Grumbo'z Capture the Flag System
Tue Mar 21, 2017 5:14 pm by Grumbo

» Black Wolfs Den
Mon Mar 20, 2017 10:07 pm by Grumbo

» [CPP] Patchless Item Extended Costs
Thu Mar 16, 2017 9:11 pm by Grumbo

November 2017
MonTueWedThuFriSatSun
  12345
6789101112
13141516171819
20212223242526
27282930   

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

View previous topic View next topic Go down

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

Post by Grumbo on 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
avatar
Grumbo
Admin
Admin

Posts : 94
Points : 231
Join date : 2014-08-21
Location : Pocatello Idaho

View user profile http://blackwolfsden.dnsdynamic.net/

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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