Hey guys, hi zanix & Co!
Just having an idea
I would love to also show the CRIT, DODGE, PARRY and BLOCK data on the indexalt.php.
Could anyone post the codechanges for that?
Thanks a lot!
Greetinx
Chile wrote:I would love to see Spell crit chance in there along with +spell damage and healing as well
Exactlyyamyam wrote:Chile wrote:I would love to see Spell crit chance in there along with +spell damage and healing as well
Good idea, but think this will be hard to realize.
I asked for Crit, dodge, parry and block because THIS DATA is already available in the database and used in char.php.
So its easy to also include it on the indexalt.php
$additional_sql = array(
'`players`.`health`, ',
"IF( `players`.`health` IS NULL OR `players`.`health` = '', 1, 0 ) AS 'hisnull', ",
'`players`.`mana`, ',
"IF( `players`.`mana` IS NULL OR `players`.`mana` = '', 1, 0 ) AS 'misnull', ",
'`players`.`money_g`, ',
'`players`.`money_s`, ',
'`players`.`money_c`, ',
'`players`.`stat_armor`, ',
'`players`.`stat_armor_c`, ',
'`players`.`stat_armor_b`, ',
'`players`.`stat_armor_d`, ',
"IF( `players`.`stat_armor_c` IS NULL OR `players`.`stat_armor_c` = '', 1, 0 ) AS 'aisnull', ",
'`players`.`mitigation` ',
);
$additional_sql = array(
'`players`.`health`, ',
"IF( `players`.`health` IS NULL OR `players`.`health` = '', 1, 0 ) AS 'hisnull', ",
'`players`.`mana`, ',
"IF( `players`.`mana` IS NULL OR `players`.`mana` = '', 1, 0 ) AS 'misnull', ",
'`players`.`money_g`, ',
'`players`.`money_s`, ',
'`players`.`money_c`, ',
'`players`.`stat_armor`, ',
'`players`.`stat_armor_c`, ',
'`players`.`stat_armor_b`, ',
'`players`.`stat_armor_d`, ',
"IF( `players`.`stat_armor_c` IS NULL OR `players`.`stat_armor_c` = '', 1, 0 ) AS 'aisnull', ",
'`players`.`mitigation`, ',
'`players`.`dodge`, ',
"IF( `players`.`dodge` IS NULL OR `players`.`dodge` = '', 1, 0 ) AS 'disnull', ",
'`players`.`parry`, ',
"IF( `players`.`parry` IS NULL OR `players`.`parry` = '', 1, 0 ) AS 'pisnull', ",
'`players`.`block`, ',
"IF( `players`.`block` IS NULL OR `players`.`block` = '', 1, 0 ) AS 'bisnull', ",
'`players`.`crit`, ',
"IF( `players`.`crit` IS NULL OR `players`.`crit` = '', 1, 0 ) AS 'cisnull' ",
);
$FIELD[] = array (
'stat_armor_c' => array(
'lang_field' => 'armor',
'order' => array( 'aisnull','`players`.`stat_armor_c` DESC' ),
'order_d' => array( 'aisnull','`players`.`stat_armor_c` ASC' ),
'value' => 'armor_value',
),
);
$FIELD[] = array (
'dodge' => array(
'lang_field' => 'dodge',
'order' => array( 'disnull','`players`.`dodge` DESC' ),
'order_d' => array( 'disnull','`players`.`dodge` ASC' ),
),
);
$FIELD[] = array (
'parry' => array(
'lang_field' => 'parry',
'order' => array( 'pisnull','`players`.`parry` DESC' ),
'order_d' => array( 'pisnull','`players`.`parry` ASC' ),
),
);
$FIELD[] = array (
'block' => array(
'lang_field' => 'block',
'order' => array( 'bisnull','`players`.`block` DESC' ),
'order_d' => array( 'bisnull','`players`.`block` ASC' ),
),
);
$FIELD[] = array (
'crit' => array(
'lang_field' => 'crit',
'order' => array( 'cisnull','`players`.`crit` DESC' ),
'order_d' => array( 'cisnull','`players`.`crit` ASC' ),
),
);
Users browsing this forum: No registered users and 1 guest