From 5f741e92867c34bea37ac07ec0266bf500da4be7 Mon Sep 17 00:00:00 2001 From: rylon Date: Tue, 30 Dec 2014 11:08:37 +0100 Subject: [PATCH] char create qq ordered, item scaling start --- mojotrollz/api/char/qq/CHAR_CREATE.php | 13 ++++++++++--- mojotrollz/api/database/item_scaling.sql | 16 ++++++++++++++++ 2 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 mojotrollz/api/database/item_scaling.sql diff --git a/mojotrollz/api/char/qq/CHAR_CREATE.php b/mojotrollz/api/char/qq/CHAR_CREATE.php index 65f4bca..a27c36a 100644 --- a/mojotrollz/api/char/qq/CHAR_CREATE.php +++ b/mojotrollz/api/char/qq/CHAR_CREATE.php @@ -8,14 +8,21 @@ class CHAR_CREATE extends \SYSTEM\DB\QP { '', //mys 'INSERT INTO `characters` (`guid`, `account`, `name`, `race`, `class`, `gender`, `level`, `xp`, `money`,'. - '`playerBytes`, `playerBytes2`, `playerFlags`, `position_x`, `position_y`, `position_z`, `map`, `orientation`,'. - '`taximask`, `online`, `cinematic`, `totaltime`, `leveltime`, `logout_time`, `is_logout_resting`, `rest_bonus`,'. + '`playerBytes`, `playerBytes2`, `playerFlags`, `position_x`, `position_y`, `position_z`, `map`, `orientation`,'. + '`taximask`, `online`, `cinematic`, `totaltime`, `leveltime`, `logout_time`, `is_logout_resting`, `rest_bonus`,'. '`resettalents_cost`, `resettalents_time`, `trans_x`, `trans_y`, `trans_z`, `trans_o`, `transguid`, `extra_flags`,'. '`stable_slots`, `at_login`, `zone`, `death_expire_time`, `taxi_path`, `honor_highest_rank`, `honor_standing`,'. '`stored_honor_rating`, `stored_dishonorable_kills`, `stored_honorable_kills`, `watchedFaction`, `drunk`,'. '`health`, `power1`, `power2`, `power3`, `power4`, `power5`, `exploredZones`, `equipmentCache`, `ammoId`,'. '`actionBars`, `deleteInfos_Account`, `deleteInfos_Name`, `deleteDate`)'. -' VALUES (?, ?, ?, ?, ?, ?, 60, 0, 0, 151061250, 33554438, 32, -4995.83, -863.73, 497.037, 0, 5.33359, "2 0 0 0 0 0 0 0 ", 0, 1, 554, 554, 1403118410, 1, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 1537, 0, "", 0, 0, 0, 0, 0, 4294967295, 0, 2201, 2282, 0, 0, 100, 0, "0 0 0 545259520 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 524288 131072 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ", "0 0 0 0 0 0 45 0 0 0 0 0 44 0 43 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2361 0 0 0 0 0 0 0 ", 0, 0, NULL, NULL, NULL);', +' VALUES (?, ?, ?, ?, ?, ?, 60, 0, 0,'. + '151061250, 33554438, 32, -4995.83, -863.73, 497.037, 0, 5.33359, '. + '"2 0 0 0 0 0 0 0 ", 0, 0, 0, 0, 0, 0, 0, '. + '0, 0, 0, 0, 0, 0, 0, 2, '. + '0, 0, 1537, 0, "", 0, 0, '. + '0, 0, 0, 0, 0, '. + '2201, 2282, 0, 0, 100, 0, "0 0 0 545259520 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 524288 131072 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ", "0 0 0 0 0 0 45 0 0 0 0 0 44 0 43 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2361 0 0 0 0 0 0 0 ", 0, '. + '0, NULL, NULL, NULL);', new \DBD\mangos_chars() );}} diff --git a/mojotrollz/api/database/item_scaling.sql b/mojotrollz/api/database/item_scaling.sql new file mode 100644 index 0000000..e633772 --- /dev/null +++ b/mojotrollz/api/database/item_scaling.sql @@ -0,0 +1,16 @@ +SELECT name,requiredlevel,COUNT(*) as count, quality,bonding,inventorytype, +avg(itemlevel),min(itemlevel),max(itemlevel), +avg(maxdurability),min(maxdurability),max(maxdurability), +avg(armor),min(armor),max(armor), +avg(holy_res),min(holy_res),max(holy_res), +avg(fire_res),min(fire_res),max(fire_res), +avg(nature_res),min(nature_res),max(nature_res), +avg(frost_res),min(frost_res),max(frost_res), +avg(shadow_res),min(shadow_res),max(shadow_res), +avg(arcane_res),min(arcane_res),max(arcane_res), +avg(dmg_min1),min(dmg_min1),max(dmg_min1), +avg(dmg_max1),min(dmg_max1),max(dmg_max1), +avg(buyprice),min(buyprice),max(buyprice), +avg(sellprice),min(sellprice),max(sellprice) +FROM item_template +GROUP BY quality,bonding,inventorytype,requiredlevel; \ No newline at end of file