Crit, dodge, parry and block @ indexalt.php

Theme, template, layout, or image issues

Crit, dodge, parry and block @ indexalt.php

Postby yamyam » Tue Aug 08, 2006 8:50 pm

Hey guys, hi zanix & Co!

Just having an idea :thumright:

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! :thumleft:

Greetinx
Last edited by yamyam on Wed Aug 09, 2006 5:21 am, edited 1 time in total.
yamyam
WR.net Apprentice
WR.net Apprentice
 
Posts: 37
Joined: Sun Jul 16, 2006 4:11 am

More Details on indexalt.php

Postby yamyam » Wed Aug 09, 2006 5:20 am

Noone?

Zanix, Anthony? Someone?
Would be nice if someone could help me.
Can´t be a big thing cause all data is available in the DB.
(See char.php). Just wanna include that data (crit, dodge, parry and block) also on the indexalt.php

Help, Thank you!
yamyam
WR.net Apprentice
WR.net Apprentice
 
Posts: 37
Joined: Sun Jul 16, 2006 4:11 am

Crit, dodge, parry and block @ indexalt.php

Postby zanix » Wed Aug 09, 2006 8:38 am

You waited only 8 hours for an answer?
You are kinda impatient...

With that aside, it would not be hard at all to add these columns
Give me some time on this
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5543
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Crit, dodge, parry and block @ indexalt.php

Postby Chile » Wed Aug 09, 2006 8:26 pm

I would love to see Spell crit chance in there along with +spell damage and healing as well
User avatar
Chile
WR.net Apprentice
WR.net Apprentice
 
Posts: 17
Joined: Wed Jul 26, 2006 8:11 pm
Location: Illinois

Re: Crit, dodge, parry and block @ indexalt.php

Postby yamyam » Wed Aug 09, 2006 8:35 pm

@Zanix:

Sorry for beeing impatient :smurfin:
Just thought you already had seen this and given no answer :blackeye:

Great, thx for helping and take your time. Waiting for the sourcechanges and send ya some :flower:

Greetinx
yamyam
WR.net Apprentice
WR.net Apprentice
 
Posts: 37
Joined: Sun Jul 16, 2006 4:11 am

Re: Crit, dodge, parry and block @ indexalt.php

Postby yamyam » Wed Aug 09, 2006 8:38 pm

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
yamyam
WR.net Apprentice
WR.net Apprentice
 
Posts: 37
Joined: Sun Jul 16, 2006 4:11 am

Crit, dodge, parry and block @ indexalt.php

Postby zanix » Thu Aug 10, 2006 3:14 am

yamyam 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
Exactly
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5543
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Crit, dodge, parry and block @ indexalt.php

Postby yamyam » Fri Aug 11, 2006 3:57 am

I know you gotta have a lot to do and many questions and support to do, but is there anything new for me Mr. Roster Zanix? :P
yamyam
WR.net Apprentice
WR.net Apprentice
 
Posts: 37
Joined: Sun Jul 16, 2006 4:11 am

Crit, dodge, parry and block @ indexalt.php

Postby zanix » Fri Aug 11, 2006 4:10 am

Open indexalt.php
Find
Code: Select all
$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` ',
); 

Replace with
Code: Select all
$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' ",
); 



Find
Code: Select all
$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',
    ),
); 

After Add
Code: Select all
$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' ),
    ),
); 
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5543
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Crit, dodge, parry and block @ indexalt.php

Postby zanix » Fri Aug 11, 2006 4:11 am

This is even nice enough to be in 1.7.1

And so it shall be!
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5543
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Crit, dodge, parry and block @ indexalt.php

Postby yamyam » Fri Aug 11, 2006 9:25 am

Zanix, your my hero! :thumleft:

And thx for taking my idea into 1.7.1. :mrgreen:
Works fine and looks much better then before.

But i would like to add "%" after crit, dodge parry and block.
So it would be "24,67%" instead of "24,67". Whre do i have to do this?
yamyam
WR.net Apprentice
WR.net Apprentice
 
Posts: 37
Joined: Sun Jul 16, 2006 4:11 am

Crit, dodge, parry and block @ indexalt.php

Postby zanix » Fri Aug 11, 2006 1:01 pm

Well, you would have to make a display function for them

Wouldn't be too hard I don't think, I'll try to whip something up
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5543
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Crit, dodge, parry and block @ indexalt.php

Postby Chile » Mon Aug 14, 2006 10:42 pm

anyway we can get spell crit chance in there?

and maybe if you can be nice in the character profile too, i think its the char.php

you know where it says:

Crit:
Dodge:
Unused Talent Points:

so with it modded it will look like

Crit:
Dodge:
Parry:
Block:
Spell Crit:
Unused Talent Points:

that would rock just like you!
User avatar
Chile
WR.net Apprentice
WR.net Apprentice
 
Posts: 17
Joined: Wed Jul 26, 2006 8:11 pm
Location: Illinois

Crit, dodge, parry and block @ indexalt.php

Postby zanix » Tue Aug 15, 2006 11:18 am

If it's in CP.lua, then it can go in
But if it's not, I don't have a clue how to do the calculation for it
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5543
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Crit, dodge, parry and block @ indexalt.php

Postby Chile » Tue Aug 15, 2006 10:23 pm

ya i guess that wouldnt work if its not there...why doesnt blizzard tell us spell crit chance..seems lik it would be as easy as doing melee crit chance.

well...

Block and Parry should be in CP.lua

I remember on my warrior it would show me in the spell book. IT migh only be for warriors though...hmmm maybe only orc warriors too...it is there though
User avatar
Chile
WR.net Apprentice
WR.net Apprentice
 
Posts: 17
Joined: Wed Jul 26, 2006 8:11 pm
Location: Illinois

Next

Return to Appearance

Who is online

Users browsing this forum: No registered users and 0 guests

cron