Originally created by OtLand - View Profile: stefanhaan
At first i would like to redirect you to http://otland.net/f118/eqshower-script-non-aac-83736/ . Since i remade the script.
Now here comes the design part I guess it was a really awaiting script, guess what.. i also waited since someone publish it Now i want to show you it.
Installation/Modification
Try to find in your characters.php
And delete from
Till ( but not this )
Now we have some space to create the new table with the tooltip.
And in the empty place paste
Then download the .Rar with needed files.
Installing EQShower
Why? Because you need to add some database schemas.
The installation is simply:
type http://localhost/equip-installer.php
It will add the databases. Note that you need to have the items.xml file. Just drag all the files in the RAR to your main directory of account maker.
After the installation you can delete the following files (for safety since if you will refresh the equip-installer.php (site) if will fill the database ):
Styling:
You can change the directory to the files in your eqshower.php
Finishing:
To have it all working you should have:
Got questions or found a bug? Ask here dont forget to rep.
Here is a fixed version
I added also the Cap Status and the Soul Status.
Like before you should follow the steps to install it ( if you have the Schema you shouldnt install it )
I wrote also a fixed Characters.php and you are able to drag it to your folder and all will work.
To add the part manually follow the tutorial in the first post and paste this
But dont forget to drag all the files which are in the rar
At first i would like to redirect you to http://otland.net/f118/eqshower-script-non-aac-83736/ . Since i remade the script.
Now here comes the design part I guess it was a really awaiting script, guess what.. i also waited since someone publish it Now i want to show you it.
Installation/Modification
Try to find in your characters.php
PHP:
//modified status scripts by ballack13
main_content .= '<table width=100%><tr>';
//equipment shower by ballack13
PHP:
//equipment shower by ballack13
PHP:
$main_content .= '</tr></TABLE></td>';
And in the empty place paste
PHP:
/// Begging of the EQ SHOWER modified by Kavvson //
//? Needed ?//
include 'eqshower.php';
include 'eq-class.php';
///? Style and JS part ?///
ECHO $getcss;
ECHO $getjs;
///? End Of Style and JS part ?///
/// Query + functions ///
$query=mysql_query('SELECT * FROM `player_items` WHERE player_id = '.$id.' AND `pid`<=10');
if($query){
while ($result=mysql_fetch_array($query))
{
$item[$result['pid']]['img']="<img src='images/items/".$result['itemtype'].".gif' />";
$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 ///
$id = $player->getCustomField("id");
$main_content .= '<td align=center><table with=100% style="border: solid 1px #888888;" class="darkBorder" CELLSPACING="1"><TR class="darkBorder"> ';
$main_content .= '<div id="bg">
<div class="col1">
<div class="'.$class['2'].'" onmouseover="tooltip.show(\''.$tooltip[2].'\', 225)" onmouseout="tooltip.hide()">
'.$item['2']['img'].'
</div>
<div class="'.$class['6'].'" onmouseover="tooltip.show(\''.$tooltip[6].'\', 225)" onmouseout="tooltip.hide()">
'.$item['6']['img'].'
</div>
<div class="'.$class['9'].'" onmouseover="tooltip.show(\''.$tooltip[9].'\', 225)" onmouseout="tooltip.hide()">
'.$item['9']['img'].'
</div>
</div>
<div class="col2">
<div class="'.$class['1'].'" onmouseover="tooltip.show(\''.$tooltip[1].'\', 225)" onmouseout="tooltip.hide()">
'.$item['1']['img'].'
</div>
<div class="'.$class['4'].'" onmouseover="tooltip.show(\''.$tooltip[4].'\', 225)" onmouseout="tooltip.hide()">
'.$item['4']['img'].'
</div>
<div class="'.$class['7'].'" onmouseover="tooltip.show(\''.$tooltip[7].'\', 225)" onmouseout="tooltip.hide()">
'.$item['7']['img'].'
</div>
<div class="'.$class['8'].'" onmouseover="tooltip.show(\''.$tooltip[8].'\', 225)" onmouseout="tooltip.hide()">
'.$item['8']['img'].'
</div>
</div>
<div class="col3">
<div class="'.$class['3'].'" onmouseover="tooltip.show(\''.$tooltip[3].'\', 225)" onmouseout="tooltip.hide()">
'.$item['3']['img'].'
</div>
<div class="'.$class['5'].'" onmouseover="tooltip.show(\''.$tooltip[5].'\', 225)" onmouseout="tooltip.hide()">
'.$item['5']['img'].'
</div>
<div class="'.$class['10'].'" onmouseover="tooltip.show(\''.$tooltip[10].'\', 225)" onmouseout="tooltip.hide()">
'.$item['10']['img'].'
</div>
</div>
</div>';
/// End of the EQ SHOWER modified by Kavvson //
Installing EQShower
Why? Because you need to add some database schemas.
The installation is simply:
type http://localhost/equip-installer.php
It will add the databases. Note that you need to have the items.xml file. Just drag all the files in the RAR to your main directory of account maker.
After the installation you can delete the following files (for safety since if you will refresh the equip-installer.php (site) if will fill the database ):
- s_items.sql
- s_attributes.sql
- equip-installer.php
Styling:
You can change the directory to the files in your eqshower.php
PHP:
$getcss= '<link rel="stylesheet" type="text/css" href="js/tooltip.css" />';
$getjs ='<script src=\'js/tooltip.js\'></script>';
To have it all working you should have:
- The images with all items in http://otland.net/images/items (main folder not layout)
- The css and js file in /js (main folder not layout - or you can change it look the steps up)
Got questions or found a bug? Ask here dont forget to rep.
Here is a fixed version
I added also the Cap Status and the Soul Status.
Like before you should follow the steps to install it ( if you have the Schema you shouldnt install it )
I wrote also a fixed Characters.php and you are able to drag it to your folder and all will work.
To add the part manually follow the tutorial in the first post and paste this
PHP:
/// Beging of the EQ SHOWER modified by Kavvson //
//? Needed ?//
include 'eqshower.php';
include 'eq-class.php';
///? Style and JS part ?///
ECHO $getcss;
ECHO $getjs;
///? End Of Style and JS part ?///
/// Query + functions ///
$query=mysql_query('SELECT * FROM `player_items` WHERE player_id = '.$id.' AND `pid`<=10');
if($query){
while ($result=mysql_fetch_array($query))
{
$item[$result['pid']]['img']="<img src='images/items/".$result['itemtype'].".gif' />";
$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 ///
$id = $player->getCustomField("id");
$main_content .= '<td align=center><table with=100%><TR class="darkBorder"> ';
$main_content .= '<div id="bg">
<div class="col1">
<div class="'.$class['2'].'" onmouseover="tooltip.show(\''.$tooltip[2].'\', 225)" onmouseout="tooltip.hide()">
'.$item['2']['img'].'
</div>
<div class="'.$class['6'].'" onmouseover="tooltip.show(\''.$tooltip[6].'\', 225)" onmouseout="tooltip.hide()">
'.$item['6']['img'].'
</div>
<div class="'.$class['9'].'" onmouseover="tooltip.show(\''.$tooltip[9].'\', 225)" onmouseout="tooltip.hide()">
'.$item['9']['img'].'
</div>
<div class="soul"><div class="txts" onmouseover="tooltip.show(\'<center>Soul Points - '.$player->getSoul().'</center>\', 225)" onmouseout="tooltip.hide()" ><p style="padding-bottom:6px">'.$player->getSoul().'</p></div></div>
</div>
<div class="col2">
<div class="'.$class['1'].'" onmouseover="tooltip.show(\''.$tooltip[1].'\', 225)" onmouseout="tooltip.hide()">
'.$item['1']['img'].'
</div>
<div class="'.$class['4'].'" onmouseover="tooltip.show(\''.$tooltip[4].'\', 225)" onmouseout="tooltip.hide()">
'.$item['4']['img'].'
</div>
<div class="'.$class['7'].'" onmouseover="tooltip.show(\''.$tooltip[7].'\', 225)" onmouseout="tooltip.hide()">
'.$item['7']['img'].'
</div>
<div class="'.$class['8'].'" onmouseover="tooltip.show(\''.$tooltip[8].'\', 225)" onmouseout="tooltip.hide()">
'.$item['8']['img'].'
</div>
</div>
<div class="col3">
<div class="'.$class['3'].'" onmouseover="tooltip.show(\''.$tooltip[3].'\', 225)" onmouseout="tooltip.hide()">
'.$item['3']['img'].'
</div>
<div class="'.$class['5'].'" onmouseover="tooltip.show(\''.$tooltip[5].'\', 225)" onmouseout="tooltip.hide()">
'.$item['5']['img'].'
</div>
<div class="'.$class['10'].'" onmouseover="tooltip.show(\''.$tooltip[10].'\', 225)" onmouseout="tooltip.hide()">
'.$item['10']['img'].'
</div>
<div class="cap"><div class="txtc" onmouseover="tooltip.show(\'<center>Capability - '.$player->getCap().'</center>\', 225)" onmouseout="tooltip.hide()" ><p style="padding-bottom:6px">'.$player->getCap().'</p></div></div>
</div>
</div>';
/// End of the EQ SHOWER modified by Kavvson //
Attachments
-
EqShower.rar29 KB · Views: 410 · VirusTotal
-
EQShower With Characters.rar91.9 KB · Views: 449 · VirusTotal
-
EQShower-without Characters.rar86.1 KB · Views: 211 · VirusTotal
Last edited by a moderator: