• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Modern AAC Injection - EQShower

Kavvson

Gdy boli cie glowa wez
Joined
Jun 25, 2008
Messages
1,177
Reaction score
72
Location
Poland
Greetings. I want to present you my latest work. Its based on my thread : http://otland.net/f118/gesior-aac-equipment-shower-84027/ and i added some extras.

Here is the screenshot

2u93fig.jpg

I. First part adding the css classes and images

1) Firstly, you have to open the following directory \public\css

1a) Now open tooltip.css and overwrite the content into

PHP:
#tt {
 position:absolute;
 display:block;
 background:url(images/tt_left.gif) top left no-repeat;
 }
 #tttop {
 display:block;
 height:5px;
 margin-left:5px;
 background:url(images/tt_top.gif) top right no-repeat;
 overflow:hidden;
 }
 #ttcont {
 display:block;
 padding:2px 12px 3px 7px;
 margin-left:5px;
 background:#222;
 color:#fff;
 }
#ttbot {
display:block;
height:5px;
margin-left:5px;
background:url(images/tt_bottom.gif) top right no-repeat;
overflow:hidden;
}

#bg {background-image:url('images/bg.gif');border:1px solid #000;width:110px;height:155px;padding:1px;}
#bg2 {background-image:url('images/bg.gif');border:1px solid #000000;width:260px;height:155px;padding:1px;}
#bg3 {background-image:url('images/bg.gif');border:1px solid #000000;width:160px;height:155px;padding:1px;}
#bg .col1 {float:left;margin-left:2px;}
#bg .col2 {float:left;margin-left:2px;}
#bg .col3 {float:left;margin-left:2px;}

.a2,.a0-2 {margin-top:15px;}
.a6,.a0-6 {margin-top:5px;}
.a9,.a0-9 {margin-top:5px;margin-bottom:15px;}

.a1,.a4,.a7,.a8,.a0-1,.a0-4,.a0-7,.a0-8 {margin-top:1.5px;}

.a3,.a0-3 {margin-top:15px;}
.a5,.a0-5 {margin-top:5px;}
.a10,.a0-10 {margin-bottom:15px;margin-top:5px;}

.a0,.a1,.a2,.a3,.a4,.a5,.a6,.a7,.a8,.a9,.a10 {width:34px;height:34px;}
.a0-1,.a0-2,.a0-3,.a0-4,.a0-5,.a0-6,.a0-7,.a0-8,.a0-9,.a0-10 {width:34px;height:34px;background-image:url('images/0.gif');}
/*img {position:relative;left:1px;top:1px;}*/
.a2 {background-image:url('images/2.gif');}
.a6 {background-image:url('images/6.gif');}
.a9 {background-image:url('images/9.gif');}

.a1 {background-image:url('images/1.gif');}
.a4 {background-image:url('images/4.gif');}
.a7 {background-image:url('images/7.gif');}
.a8 {background-image:url('images/8.gif');}

.a3 {background-image:url('images/3.gif');}
.a5 {background-image:url('images/5.gif');}
.a10 {background-image:url('images/10.gif');}

.soul {background-image:url('images/soul.png');margin-top:-14px;z-index:99999;height:25px;margin-left:-2px;;}
.cap {background-image:url('images/cap.png');margin-top:-14px;z-index:99999;height:25px;margin-left:-2px;;}
.cap .txtc {color: #CCCCCC;font-size:8px;font-weight:bold;  
  padding-left: 9px;
  padding-top: 7px;
  padding-right: 9px;
  padding-bottom: 2px;}
 .soul .txts {color: #CCCCCC;font-size:8px;font-weight:bold;  
  padding-left: 9px;
  padding-top: 7px;
  padding-right: 9px;
  padding-bottom: 2px;}
 .Health .h  {color: #CCCCCC;font-size:9px;font-weight:bold;  }
 .B-text {margin-top:6px;}
 .B-text .e  {color: #CCCCCC;font-size:9px;font-weight:bold;  }
  .B-text .ev {color: #CCCCCC;font-size:9px;font-weight:bold; text-align:right; margin-top:-16px; padding-bottom: 2px; }
  .B-text1 {margin-top:1px;}
 .B-text1 .e  {color: #CCCCCC;font-size:9px;font-weight:bold;  }
  .B-text1 .ev {color: #CCCCCC;font-size:9px;font-weight:bold; text-align:right; margin-top:-16px; padding-bottom: 2px; }
 .Health .hv {color: #CCCCCC;font-size:9px;font-weight:bold; text-align:right; margin-top:-21px; padding-bottom: 2px; }
 .Mana .m  {color: #CCCCCC;font-size:9px;font-weight:bold;  }
 .Mana .mv {color: #CCCCCC;font-size:9px;font-weight:bold; text-align:right; margin-top:-21px; padding-bottom: 2px; }
 .Exp .e  {color: #CCCCCC;font-size:9px;font-weight:bold;  }
 .Exp .ev {color: #CCCCCC;font-size:9px;font-weight:bold; text-align:right; margin-top:-21px; padding-bottom: 2px; }
 
.norm {color:#c2c2c2;font-weight:bold;font-size:12pt;text-decoration:underline;padding-bottom:6px;}
.rare {color:#002cba;font-weight:bold;font-size:12pt;text-decoration:underline;padding-bottom:6px;}
.epic {color:#6c008b;font-weight:bold;font-size:12pt;text-decoration:underline;padding-bottom:6px;}
.lege {color:#ffc000;font-weight:bold;font-size:12pt;text-decoration:underline;padding-bottom:6px;}
.attr {font-size:9pt;}

2) Now download the first attach to the topic:
attach1-images-css.rar (41.9 KB)

2a) And unpack the content into \public\css

This will be the end of the first part. CSS+Files​


II. Main part ( creating the files )​

1) Go into the following directory \injections\character_view\ create there a folder Eqshower.

1a) In the folder Eqshower create a file : injection.php and paste the content

PHP:
<?PHP
$player = $GLOBALS['player'];
$player->getId();
/// Begging of the EQ SHOWER modified by Kavvson //
//? Needed ?//
include "Eqshower/eqshower.php";
include "Eqshower/class.php";
/// Query + functions ///
$query=mysql_query("SELECT * FROM `player_items` WHERE player_id = '{$player->getId()}' AND `pid`<=10");

if($query){
    while ($result=mysql_fetch_array($query))
    {
        $item[$result['pid']]['img'] = "<img src='".WEBSITE."/public/images/items/{$result['itemtype']}.gif' alt='{$result['itemtype']}' />";
        $item[$result['pid']]['id']=$result['itemtype'];
        $class[$result['pid']]="a0-".$result['pid'];
    }
    $EQShower=new EQShower;
    
    for($i=1;$i<=10;$i++)
    {
        $num_attr=0;
        unset($val);$val=array();
        
        $query=mysql_query("SELECT * FROM `s_items` INNER JOIN `s_attributes` ON s_items.id=s_attributes.item_id WHERE s_items.itemid=".@$item[$i]['id']);
        if($query)$result=mysql_fetch_assoc($query);       
        $val[0]=ucfirst($result['name']);
        $val[1]=@$result['descr'];
        $val[2]=@$result['armor'];
        $val[3]=@$result['weight'];
        $val[4]=@$result['containerSize'];
        $val[5]=@$result['attack'];
        $val[6]=@$result['speed'];
        $val[7]=@$result['defense'];
        $val[8]=@$result['elementFire'];
        $val[9]=@$result['elementIce'];
        $val[10]=@$result['elementEarth'];
        $val[11]=@$result['elementEnergy'];
        $val[12]=@$result['range'];
        $val[13]=@$result['extraDef'];
        $val[14]=@$result['skillShield'];
        $val[15]=@$result['magicLevelPoints'];
        $val[16]=@$result['absorbPercentall'];
        $val[17]=@$result['charges'];
        $val[18]=@$result['skillDist'];
        $val[19]=@$result['absorbPercentFire'];
        $val[20]=@$result['absorbPercentEarth'];
        $val[21]=@$result['absorbPercentIce'];
        $val[22]=@$result['absorbPercentEnergy'];
        $val[23]=@$result['absorbPercentDeath'];
        $val[24]=@$result['absorbPercentHoly'];
        $val[25]=@$result['absorbPercentPhysical'];
        $val[26]=@$result['skillAxe'];
        $val[27]=@$result['skillClub'];
        $val[28]=@$result['skillSword'];
        $val[29]=@$result['duration'];
        $val[30]=@$result['skillFist'];
        $val[31]=@$result['absorbPercentManaDrain'];
        $val[32]=@$result['absorbPercentLifeDrain'];
        $val[33]=@$result['preventDrop'];
        $val[34]=@$result['hitChance'];
        $val[35]=@$result['shootType'];
        
        foreach($val as $attribute)
        {
            if(!empty($attribute))$num_attr++;
        }
        $tooltip[$i]=$EQShower->item_info($val,$num_attr);
        
        if(empty($item[$i])){
        $class[$i]="a".$i;
        $tooltip[$i]="<font class=\'attr\'>Nothing is equipped.</font>";
        }
    }
    
}
/// End of Query And Functions ///

/// Values ///
$hp = ($player->getHealth() / $player->getHealthMax() * 100);
$mana = ($player->getMana() / $player->getMana() * 100);
/// Values ///
/// Stylizing ///
/// You can change
/// Each color of
/// The bar; you might
/// Use english forms
/// Or Css colors #FFFFFF
/// Stylizing ///
$skillwidth = (100);
$expcolor = "green";
$skillcolor1 = "orange";
$skillcolor2 = "orange";
$skillcolor3 = "orange";
$skillcolor4 = "orange";
$skillcolor5 = "orange";
$skillcolor6 = "orange";
$skillcolor7 = "orange";
$barwidth = 90;
/// Display ///
/// If you put the value to 0
/// The content wont be displayed
/// Display ///
$config['characters']['bar'] = 1;
$config['characters']['skills'] = 1;
?>                 
<table>
<!-- Equipment Shower Part -->
<td><div id="bg">
    <div class="col1">
        <div class="<?php echo $class['2']; ?>" onmouseover="tooltip.show('<?php echo $tooltip[2]; ?>', 225);" onmouseout="tooltip.hide();" >
            <?php echo @$item['2']['img'];  ?>
        </div>
        <div class="<?php echo $class['6']; ?>" onmouseover="tooltip.show('<?php echo $tooltip[6]; ?>', 225);" onmouseout="tooltip.hide();" >
            <?php echo @$item['6']['img']; ?>
        </div>
        <div class="<?php echo $class['9']; ?>" onmouseover="tooltip.show('<?php echo $tooltip[9]; ?>', 225);" onmouseout="tooltip.hide();" >
            <?php echo @$item['9']['img']; ?>
        </div>
        <div class="soul"><div class="txts">150</div></div>
    </div>
    <div class="col2">
        <div class="<?php echo $class['1']; ?>" onmouseover="tooltip.show('<?php echo $tooltip[1]; ?>', 225);" onmouseout="tooltip.hide();" >
            <?php echo @$item['1']['img']; ?>
        </div>
        <div class="<?php echo $class['4']; ?>" onmouseover="tooltip.show('<?php echo $tooltip[4]; ?>', 225);" onmouseout="tooltip.hide();" >
            <?php echo @$item['4']['img']; ?>
        </div>
        <div class="<?php echo $class['7']; ?>" onmouseover="tooltip.show('<?php echo $tooltip[7]; ?>', 225);" onmouseout="tooltip.hide();" >
            <?php echo @$item['7']['img']; ?>
        </div>
        <div class="<?php echo $class['8']; ?>" onmouseover="tooltip.show('<?php echo $tooltip[8]; ?>', 225);" onmouseout="tooltip.hide();" >
            <?php echo @$item['8']['img']; ?>
        </div>
    </div>
    <div class="col3">
        <div class="<?php echo $class['3']; ?>" onmouseover="tooltip.show('<?php echo $tooltip[3]; ?>', 225);" onmouseout="tooltip.hide();" >
            <?php echo @$item['3']['img']; ?>
        </div>
        <div class="<?php echo $class['5']; ?>" onmouseover="tooltip.show('<?php echo $tooltip[5]; ?>', 225);" onmouseout="tooltip.hide();" >
            <?php echo @$item['5']['img']; ?>
        </div>
        <div class="<?php echo $class['10']; ?>" onmouseover="tooltip.show('<?php echo $tooltip[10]; ?>', 225);" onmouseout="tooltip.hide();" >
            <?php echo @$item['10']['img']; ?>
        </div>
            <div class="cap"><div class="txtc">150</div></div>
    </div>
</div>
</td>
<!-- End of Equipment Shower Part -->
<td>
<!-- Character Informations Part -->
<?PHP if($config['characters']['bar'] == 1){ ?>
<div id="bg3">
        <div class="Health">
            <div class="h">Health: <div style="<?PHP echo "".$barwidth."%" ?>; height: 3px; border: 1px solid #000;"><div style="background: red; width: <?PHP echo "".$hp."%" ?>; height: 3px;"> </div></div><div class="hv"><?php echo $player->getHealth() ?></div></div>
        </div>
        <div class="Mana">
            <div class="m">Mana: <div style="<?PHP echo "".$barwidth."%" ?>; height: 3px; border: 1px solid #000;"><div style="background: blue; width: <?PHP echo "".$mana."%" ?>; height: 3px;"> </div></div><div class="mv"><?php echo $player->getMana() ?></div></div>
        </div>
        <div class="Exp">
            <div class="e">Experience: <div style="<?PHP echo "".$barwidth."%" ?>; height: 3px; border: 1px solid #000;"><div style="background: <?PHP echo $expcolor ?>; width: <?PHP echo "".$skillwidth."%" ?>; height: 3px;"> </div></div><div class="ev"><?php echo $player->getExperience() ?></div></div>
        </div>
        <div class="B-text">
        <hr style="color:white">
            <div class="e">Level: <div class="ev"><?PHP echo $player->getLevel() ?></div></div>
        </div>
        <div class="B-text1">
            <div class="e">Magic Level: <div class="ev"><?PHP echo $player->getMagLevel() ?></div></div>
        </div>
    </div>
<?PHP  } ?>
    </td>
<!-- End of Character Informations Part -->
    <td>
<!-- Skill bars Part -->
<?PHP if($config['characters']['skills'] == 1){ ?>
    <div id="bg2">
        <div class="Exp">
            <div class="e"><strong>Fist</strong>: <div style="<?PHP echo "".$barwidth."%" ?>; height: 3px; border: 1px solid #000;"><div style="background: <?PHP echo $skillcolor1 ?>; width: <?PHP echo "".$skillwidth."%" ?>; height: 3px;"> </div></div><div class="ev"><?php echo $player->getSkill(0) ?></div></div>
        </div>
        <div class="Exp">
            <div class="e"><strong>Club</strong>: <div style="<?PHP echo "".$barwidth."%" ?>; height: 3px; border: 1px solid #000;"><div style="background: <?PHP echo $skillcolor2 ?>; width: <?PHP echo "".$skillwidth."%" ?>; height: 3px;"> </div></div><div class="ev"><?php echo $player->getSkill(1) ?></div></div>
        </div>
        <div class="Exp">
            <div class="e"><strong>Sword</strong>: <div style="<?PHP echo "".$barwidth."%" ?>; height: 3px; border: 1px solid #000;"><div style="background: <?PHP echo $skillcolor3 ?>; width: <?PHP echo "".$skillwidth."%" ?>; height: 3px;"> </div></div><div class="ev"><?php echo $player->getSkill(2) ?></div></div>
        </div>
        <div class="Exp">
            <div class="e"><strong>Axe</strong>: <div style="<?PHP echo "".$barwidth."%" ?>; height: 3px; border: 1px solid #000;"><div style="background: <?PHP echo $skillcolor4 ?>; width: <?PHP echo "".$skillwidth."%" ?>; height: 3px;"> </div></div><div class="ev"><?php echo $player->getSkill(3) ?></div></div>
        </div>
        <div class="Exp">
            <div class="e"><strong>Dist</strong>: <div style="<?PHP echo "".$barwidth."%" ?>; height: 3px; border: 1px solid #000;"><div style="background: <?PHP echo $skillcolor5 ?>; width: <?PHP echo "".$skillwidth."%" ?>; height: 3px;"> </div></div><div class="ev"><?php echo $player->getSkill(4) ?></div></div>
        </div>
        <div class="Exp">
            <div class="e"><strong>Shielding</strong>: <div style="<?PHP echo "".$barwidth."%" ?>; height: 3px; border: 1px solid #000;"><div style="background: <?PHP echo $skillcolor6 ?>; width: <?PHP echo "".$skillwidth."%" ?>; height: 3px;"> </div></div><div class="ev"><?php echo $player->getSkill(5) ?></div></div>
        </div>
        <div class="Exp">
            <div class="e"><strong>Fishishing</strong>: <div style="<?PHP echo "".$barwidth."%" ?>; height: 3px; border: 1px solid #000;"><div style="background: <?PHP echo $skillcolor7 ?>; width: <?PHP echo "".$skillwidth."%" ?>; height: 3px;"> </div></div><div class="ev"><?php echo $player->getSkill(6) ?></div></div>
        </div>
    </div>
<?PHP  } ?>
</td>
<!-- End of Skill bars Part -->
</table>

2) When you are in the directory \injections\character_view\Eqshower create a directory: Eqshower

2a) While being in the location \injections\character_view\Eqshower\Eqshower

2b) Now download the second attach to the topic:
attach2-main-files.rar (51.5 KB)

2c) The downloaded attach unpack in \injections\character_view\Eqshower\Eqshower

This will be the end of the second part. Main Files​


III. Installation & Working & Stylizing

1) Go into the directory \injections\character_view\Eqshower\Eqshower and locate the file eqshower.php

Here you will have to fill some informations, that are required to run the injection properly

1a) Connection

PHP:
$host="localhost"; // Host name 
$username="root"; // Mysql username 
$password=""; // Mysql password 
$db_name="mod"; // Database name 
$tbl_name="players"; // Table name

1b) Stylizing ( all is described in comments )

PHP:
/// Stylizing ///
/// You can change
/// Each color of
/// The bar; you might
/// Use english forms
/// Or Css colors #FFFFFF
/// Stylizing ///
$skillwidth = (100);
$expcolor = "green";
$skillcolor1 = "orange";
$skillcolor2 = "orange";
$skillcolor3 = "orange";
$skillcolor4 = "orange";
$skillcolor5 = "orange";
$skillcolor6 = "orange";
$skillcolor7 = "orange";
$barwidth = 90;
/// Display ///
/// If you put the value to 0
/// The content wont be displayed
/// Display ///
$config['characters']['bar'] = 1;
$config['characters']['skills'] = 1;

2) After filling the sql connect informations we might go to the installation step.

2a) Locate equip-installer.php in \injections\character_view\Eqshower\Eqshower **

If you found it open your browser and type


You should get a message

Succesfully inserted 1137 rows.
And failed to insert 0 rows:


3) Troubleshooting - If you will get any errors on the page equip-installer.php you should import into your database the file in the second attach : attach2-main-files.rar - database with records.sql

3a) After finishing this step you should have it all working.

If you received any errors while the installation or the other steps write them. I assume this is the best version of the eq shower and description. (not the eqshower as a script).. Dont forget to Rep me!!! after creating this long tutorial.

Regards
Kavvson


Alternative tutorial Modern_AAC_Injection_-_EQShower.rar
Here you will find all what you need as here including all attaches
 

Attachments

  • attach1-images-css.rar
    41.9 KB · Views: 450 · VirusTotal
  • attach2-main-files.rar
    51.5 KB · Views: 443 · VirusTotal
Approved! Thanks for your share! and Rep++ since its for Modern AAC. :D
 
Why don't u just use one of the DB drivers already in AAC.

And instead of writing db detail values you can put

HOSTNAME, LOGIN, PASSWORD, DATABASE you got these constants at the end of config.php

Anyway good I will check it later on.
 
Since its a port from Gesior / standalone? I guess its no surprise that it lacks a few awesome Modern AAC stuff.
 
Yes it has some places where could be made a fix (like the database connection) i was trying to do it but it wont work it was something wrong.. Paxi try to make it .. ;)
 
Form me not work shows a lot of errors...
but I improve it to mine modern ACC...
no one thank to me? so hurt....
 
another retard :) you will spoil the same with changed files ? where are you from morons?
 
yes maybe but mine version worked with one error with query (you fixed it with "@" and this work now) now I have thousad errors.
Morons isnt so bad... fixed on my file wihout spoiling :)
Thanks for tables with skills and health.
 
Last edited:
Omg retard im talking about converting all into gesior and modern aac versions that are working. This all was my part you doubt?
 
First of all, all you did was just copy my script and move some parts and add a few lines so it works on M-acc, if you had to do more as that. You are a moron l0ld.

Second of all I just refuse to add G-acc support since we should banish it from our community. And I will only add M-acc support for my scripts if I find they have a stable version. My next scripts therefore whon't be public domain. And will not be posted.

And Kavvson you might still whan't to give credits rofl, as you forgot.
~No offense to Paxton ofc, but I find your version not stable.
 
lol you are copying peoples work and not even giving credit to the person who made the majority of the EQShower scripts (stefanhaan), mods you need to close this thread or edit in credits...this Isn't all his work he is trying to take all the credit.

P.S. Nice tutorial layout haha looks just like mine...
 
Hmm ?

Greetings. I want to present you my latest work. Its based on my thread : [Gesior AAC] Equipment Shower and i added some extras.

in the topic of gesior is a credit

At first i would like to redirect you to EQShower Script (Non AAC) . Since i remade the script.

Links

?
 
Well stefan made this script you idiot not you!
You just "made" a how to injekt in to modern...
Write in Credits for stefan!
 
Hmm ?

Greetings. I want to present you my latest work. Its based on my thread : [Gesior AAC] Equipment Shower and i added some extras.

in the topic of gesior is a credit

At first i would like to redirect you to EQShower Script (Non AAC) . Since i remade the script.

Links

?

It doesn't matter, still have to give credit in this thread or people will think you made the whole script when you didn't and thats not fair on stefanhaan -.-
 
Well it doesn't matter anymore. Kavvson is just a rep whore trying to get credit for stuff he only editted *cough* wich a monkey could do.

(Don't blame me for being mean atm, I'm having exams and I only had 41/49 points >_>)
 
Back
Top