• 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!

[Gesior AAC] Equipment Shower

Oh I see XD its just a minor fix

Change
$val[3]=$result['weight'];

TO
$val[3]=$result['weight']/100;
 
In the V4-SoulAAc it's in the plugin_3_eqshower.php

And in the V4 standalone it's in index.php.

And for the gesior version I have no clue. I haven't made it. but it'll problably be in the eqshower.php if I'm correct
 
eqshower.php
Code:
<?PHP
$host="localhost"; // Host name 
$username="root"; // Mysql username 
$password="2824768"; // Mysql password 
$db_name="forgottenserver"; // Database name 
$tbl_name="players"; // Table name 

// Connect to server and select databse.
mysql_connect("$host", "$username", "$password")or die("cannot connect"); 
mysql_select_db("$db_name")or die("cannot select DB");

$getcss= '<link rel="stylesheet" type="text/css" href="js/tooltip.css" />';
$getjs ='<script src=\'js/tooltip.js\'></script>';
//Classes of the grades
 $config['class']['normal']="norm";
 $config['class']['rare']="rare";
 $config['class']['epic']="epic";
 $config['class']['legendary']="lege";
 
 //Amount Of Attributes Determine Grade.
 $config['normal']['attributes']=3;
 $config['rare']['attributes']=4;
 $config['epic']['attributes']=5;
 $config['legendary']['attributes']=6;
 
 // Installer config don't change any 
 //unless you know what you're doing
 $files[0]='s_items.sql';
 $files[1]='s_attributes.sql';
 


?>
 
eq-class.php
Code:
<?PHP
class EQShower {
    function item_info($val,$attributes)
    {
        $EQShower=new EQShower;
        $cl=$EQShower->item_grade($attributes);
        
        empty($val[1])?$desc_str="":$desc_str="<br /><br />".$val[1];
        empty($val[2])?$arm_str="":$arm_str="Armor: ".$val[2]."<br />";
        empty($val[4])?$size_str="":$size_str="Size: ".$val[4]." slots";
        empty($val[5])?$att_str="":$att_str="Attack: ".$val[5]."<br />";
        empty($val[6])?$sp_str="":$sp_str="Speed: + ".$val[6]."<br />";
        empty($val[13])?$def_a="":$def_a="+ ".$val[13];
        empty($val[7])?$def_str="":$def_str="Defense: ".$val[7]." $def_a<br />";
        if(!empty($val[8])){$el_str="Fire: ".$val[8]."<br />";}
        if(!empty($val[9])){$el_str="Ice: ".$val[9]."<br />";}
        if(!empty($val[10])){$el_str="Earth: ".$val[10]."<br />";}
        if(!empty($val[11])){$el_str="Energy: ".$val[11]."<br />";}
        empty($val[12])?$ran_str="":$ran_str="Range: ".$val[12]."<br />";
        empty($val[14])?$sk_sh="":$sk_sh="Shielding: + ".$val[14]."<br />";
        empty($val[15])?$sk_mag="":$sk_mag="Magic: + ".$val[15]."<br />"; 
        empty($val[16])?$eb_all="":$eb_all="Protection All: ".$val[16]."%<br />"; 
        empty($val[17])?$charg_str="":$charg_str="Charges: ".$val[17]."<br />";
        empty($val[18])?$sk_dist="":$sk_dist="Distance: + ".$val[18]."<br />"; 
        empty($val[19])?$eb_fire="":$eb_fire="Protection fire: ".$val[19]."%<br />"; 
        empty($val[20])?$eb_earth="":$eb_earth="Protection earth: ".$val[20]."%<br />"; 
        empty($val[21])?$eb_ice="":$eb_ice="Protection ice: ".$val[21]."%<br />"; 
        empty($val[22])?$eb_ene="":$eb_ene="Protection energy: ".$val[22]."%<br />";   
        empty($val[23])?$eb_dth="":$eb_dth="Protection death: ".$val[23]."%<br />"; 
        empty($val[24])?$eb_hol="":$eb_hol="Protection holy: ".$val[24]."%<br />"; 
        empty($val[25])?$eb_pys="":$eb_pys="Protection physical: ".$val[25]."%<br />"; 
        empty($val[26])?$sk_axe="":$sk_axe="Axe: + ".$val[26]."<br />";
        empty($val[27])?$sk_club="":$sk_club="Club: + ".$val[27]."<br />";
        empty($val[28])?$sk_sword="":$sk_sword="Sword: + ".$val[28]."<br />";
        empty($val[29])?$dura="":$dura="Duration: ".$val[29]." minutes.<br />";
        empty($val[30])?$sk_fist="":$sk_fist="Fist: + ".$val[30]."<br />";
        empty($val[31])?$eb_mana="":$eb_mana="Protection manadrain: ".$val[31]."%<br />"; 
        empty($val[32])?$eb_life="":$eb_life="Protection lifedrain: ".$val[32]."%<br />";
        empty($val[33])?$eb_drop="":$eb_drop="Protection drop: ".$val[33]."%<br />";
        empty($val[34])?$hit_ch="":$hit_ch="Hit chance: ".$val[34]."%<br />";
        empty($val[35])?$sh_type="":$sh_type="Element: ".$val[35]."<br />";
        
        if(empty($val[8]) AND empty($val[9]) AND empty($val[10]) AND empty($val[11])){$ele_str="";}
        
        $str="<div class=\'$cl\'>".$val[0]."</div><font class=\'attr\'>$arm_str $sp_str $sh_type $att_str $ran_str $def_str $hit_ch $sk_sh $sk_sword $sk_axe $sk_club $sk_fist $sk_mag $sk_dist $eb_all $eb_drop $eb_mana $eb_life $eb_fire $eb_earth $eb_ice $eb_ene $eb_dth $eb_hol $eb_pys $el_str $charg_str $dura Weight: ".$val[3]." oz $desc_str</font>";
        return $str;
    }
    
    function item_grade($attributes)
    {
require ('eqshower.php');
        if($attributes<=$config['normal']['attributes']){return $config['class']['normal'];}
        if($attributes==$config['rare']['attributes']){return $config['class']['rare'];}
        if($attributes==$config['epic']['attributes']){return $config['class']['epic'];}
        if($attributes>=$config['legendary']['attributes']){return $config['class']['legendary'];}
    }
    
    function table_exists ($table, $db) { 
	$tables = mysql_list_tables ($db); 
	while (list ($temp) = mysql_fetch_array ($tables)) {
		if ($temp == $table) {
			return TRUE;
		}
	}
	return FALSE;
}

}
?>
maybe here ?
 
Well good so let's start, fixed bugs with the installation and display the weight.
ALL THANKS TO STEFANHAAN AND KAVVSON!!!
step 1
take attachment and unpack into your web

step 2
all files descripted "to" place in specific places
example:
file "tocharacters.php" place into your characters.php

step 3
open eqshower.php and write yor database and password

step 4
go to http://localhost/eqshower/install/install.php
and excute instalation

step 5
replace folder "js" and file "eqshower.php" from folder eqshower to your web dir

AND DONE!!! I HOPE SO HELPED YOU :)
 

Attachments

i got error
Code:
Fatal error: Cannot redeclare class EQShower in D:\Program Files\xampp\htdocs\eq-class.php on line 2
 
use mine wihout eq-class.php should be fine :)
@up yes but wihout it script wont work idk why.
to all into attachment are files like "functions.php~" it is garbage after changing script do not use it...:p
 
Last edited:
ok i have delateed eq-class.php
now it loke like this
4troe8.jpg

how to fix my hp status, put in right place ?
 
Learn CSS?:p

Obviously the tableing into Gesior whent wrong. Or my stylesheet interferes with gesior style.

But I don't know gesior AAC so.
 
it were look like this befor fixed bugs with the installation and display the weight
pcbwy.jpg
 
@venn
removing one file it is not all there comming some changing on other files take mine attachment and going to steps, should help...
also you must put correctly table with equipment show us characters.php
 
on my files?
then change your password and database into eqshower.php

~~ and I find one more bug dont show item with names included (') example : "Master archer's armor" showing nothing onmouse but I changed it to "Master archers armor" show all ~~

I also added it to mine modernACC but I have this errors.
moderno.jpg
 
Last edited:

Similar threads

Back
Top Bottom