Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 23:54

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Inventory Web script (CMS)

Discussion on Inventory Web script (CMS) within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
xdidid's Avatar
 
elite*gold: 0
Join Date: May 2010
Posts: 74
Received Thanks: 7
Inventory Web script (CMS)

Hi epvp

i use this php script from CMS

and +9 items not showing only +0 items :S
pic :




Code:
$id = (int)$_GET['id'];{
			echo '<b>Equipment:</b><br>';
			echo '<style type="text/css">
	#equipment {
		background:url("./images/inventory/equipment.png");
		width:156px;
		height:188px;
	}
	#tooltip_item {
		width:212px;
		position:absolute;
	}

	#item_middle {
		background:url("./images/inventory/tooltip_item.png") repeat-y right center;
		font-family:Tahoma, Geneva, sans-serif;
		text-shadow:0 1px 0px #000;
		line-height:22px;
		font-size:12px;
		color:#fff;
		text-align:center;
	}

	#item_middle font {
		text-shadow:0 1px 0px #000;
	}

	.item_top {
		background:url("./images/inventory/tooltip_item.png") no-repeat left top;
		height:10px;
		width:212px;
	}

	.item_bottom {
		background:url("./images/inventory/tooltip_item.png") no-repeat left bottom;
		height:10px;
		width:212px;
	}

	#eq_0 {
		position:absolute;
		margin-left:43px;
		margin-top:39px;
	}
	#eq_1 {
		position:absolute;
		margin-left:42px;
		margin-top:4px;
	}
	#eq_2 {
		position:absolute;
		margin-left:43px;
		margin-top:148px;
	}
	#eq_3 {
		position:absolute;
		margin-top:70px;
		margin-left:77px;
	}
	#eq_4 {
		position:absolute;
		margin-top:6px;
		margin-left:6px;
	}
	#eq_5 {
		position:absolute;
		margin-top:88px;
		margin-left:117px;
	}
	#eq_6 {
		position:absolute;
		margin-left:118px;
		margin-top:55px;
	}
	#eq_7 {
		position:absolute;
		margin-left:5px;
		margin-top:117px;
	}
	#eq_8 {
		position:absolute;
		margin-top:117px;
		margin-left:80px;
	}
	#eq_9 {
		position:absolute;
		margin-top:4px;
		margin-left:118px;
	}
	#eq_10 {
		position:absolute;
		margin-top:39px;
		margin-left:78px;
	}
			</style>';
			$seleq = mysql_query("SELECT item.pos,item.count,item_proto.locale_name,item_proto.limitvalue0,item_proto.antiflag,item_proto.type,item_proto.applyvalue0,item_proto.applytype0,item_proto.applyvalue1,item_proto.applytype1,item_proto.applyvalue2,item_proto.applytype2,item_proto.value1,item_proto.value2,item_proto.value3,item_proto.value4,item_proto.value5,item.vnum,player.gold,item.attrtype0,item.attrvalue0,item.attrtype1,item.attrvalue1,item.attrtype2,item.attrvalue2,item.attrtype3,item.attrvalue3,item.attrtype4,item.attrvalue4,item.attrtype5,item.attrvalue5,item.attrtype6,item.attrvalue6
			FROM item
				LEFT JOIN item_proto ON item_proto.vnum = item.vnum
				LEFT JOIN player ON player.id = item.owner_id
			WHERE item.owner_id = '".$user->player_id."' AND item.window = 'EQUIPMENT' ORDER BY item.pos ASC") or die(mysql_error());
			
			if(mysql_num_rows($seleq)>0) {
				echo '<div id="equipment">';
				while($eq = mysql_fetch_object($seleq)) {
					if(preg_match('/\+/',$eq->gb2312name)) {
						$plusnull = substr($eq->vnum,9,strlen($eq->vnum) - 9).'9';
					}
					else {
						$plusnull = $eq->vnum;
					}												
						$images = './images/items/';
					if(strlen($plusnull)==2) {
						$src = $images.'000'.$plusnull.'.png';
					}
					elseif(strlen($plusnull)==3) {
						$src = $images.'00'.$plusnull.'.png';
					}
					elseif(strlen($plusnull)==4) {
						$src = $images.'0'.$plusnull.'.png';
					}
					elseif(strlen($plusnull)==5) {
						$src = $images.$plusnull.'.png';
					}
						
					if(!file_exists($src)) {
						$src = $images.'27995.png';
					}
					echo '<div id="eq_'.$eq->pos.'" class="tooltip" title="'.item_title($eq).'"><img src="'.$src.'"></div>';
				}
				echo '</div>';
		}
		else {
			echo 'No Items';
		}
	}
	}
	else {
		echo 'Dieser Spieler existiert nicht.';
	}
}
else {
		echo '';
}

?>
xdidid is offline  
Old 07/09/2012, 03:26   #2
 
elite*gold: 0
Join Date: Jun 2011
Posts: 8
Received Thanks: 2
nice
nanoeray is offline  
Old 04/06/2013, 09:28   #3
 
©NewProject's Avatar
 
elite*gold: 0
Join Date: Feb 2013
Posts: 55
Received Thanks: 11
this is because you dont´t have icon item on web...
©NewProject is offline  
Reply


Similar Threads Similar Threads
L2Walker script: Solo rebuff/restock/return script
08/08/2012 - Lin2 Exploits, Hacks, Bots, Tools & Macros - 63 Replies
Hello! I've been reading alot and not really contributing so i'll start off here with a very well working script im using to bot my SK outside ivory tower in oren. I've tried to structure the code so it easily can be modified for another level of character, town, and hunting spot. The script is made for CT2 Retail, mainly to get advantage of the newbie buffs (which now lasts all the way until level 62) Change log: Update 2008-09-01 Version 1.14 -Download
Script to auto-clean inventory
07/22/2008 - Flyff - 2 Replies
Hi everybody, i was wondering if theres a way to put a function in the automaton script to auto-delete stuff from the inventory, in this case the pumkins. ty, for your answers ------------------------------------------------- --------------------------- Hallo, ich frage mich, Theres, wenn ein Weg, um eine Funktion in der Automaten-Skript automatisch zu löschen Zeug aus dem Inventar, in diesem Fall die pumkins. Ty, für Ihre Antworten (sorry, wenn es schlecht...



All times are GMT +2. The time now is 23:54.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.