avatar_3BEPb

Как установить кузницу в MU Online и MyMuWeb MMW

Автор 3BEPb, 2010 Фев. 21, 14:58

« назад - далее »

0 Пользователи и 1 гость просматривают эту тему.

3BEPb

Цитата: wolfen от 2010 Авг. 08, 20:39  Выложи плиз любой лишь бы вот так же было вид сундука в личном кабинете на сайте:

Спойлер
[свернуть]
не вроде не было на форуме не где такого у меня точно есть  >:]

Nikolazzz

я добавил новые вещи на сервер как мне их добавить кузнецу?

ausmann

а зачем продовай толко за кэш  

Nikolazzz

Нет экономика сервера постоена на том что то что за деньги можно добыть и за игровой процесс

3BEPb

Цитата: Nikolazzz от 2010 Окт. 27, 19:05  Нет экономика сервера постоена на том что то что за деньги можно добыть и за игровой процесс
В базе таблица Webshop вот туда и добавляй

Elrance

ЗВЕРЬ помоги выдает вот такие вот ошибки немогу понять почему..
в query analizer все кидал, маркет от Deathlesss есть...
Warning: mssql_query() [function.mssql-query]: message: Invalid object name 'MEMB_CREDITS'. (severity 16) in C:AppServwwwmumodulessmithy.php on line 11

Warning: mssql_query() [function.mssql-query]: Query failed in C:AppServwwwmumodulessmithy.php on line 11

Warning: mssql_fetch_row(): supplied argument is not a valid MS SQL-result resource in C:AppServwwwmumodulessmithy.php on line 12

Warning: mssql_query() [function.mssql-query]: message: Invalid object name 'MEMB_CREDITS'. (severity 16) in C:AppServwwwmumodulessmithy.php on line 13

Warning: mssql_query() [function.mssql-query]: Query failed in C:AppServwwwmumodulessmithy.php on line 13

Warning: mssql_fetch_row(): supplied argument is not a valid MS SQL-result resource in C:AppServwwwmumodulessmithy.php on line 14

3BEPb

Цитата: Elrance от 2010 Нояб. 14, 22:05  ЗВЕРЬ помоги выдает вот такие вот ошибки немогу понять почему..
в query analizer все кидал, маркет от Deathlesss есть...
Warning: mssql_query() [function.mssql-query]: message: Invalid object name 'MEMB_CREDITS'. (severity 16) in C:AppServwwwmumodulessmithy.php on line 11

Warning: mssql_query() [function.mssql-query]: Query failed in C:AppServwwwmumodulessmithy.php on line 11

Warning: mssql_fetch_row(): supplied argument is not a valid MS SQL-result resource in C:AppServwwwmumodulessmithy.php on line 12

Warning: mssql_query() [function.mssql-query]: message: Invalid object name 'MEMB_CREDITS'. (severity 16) in C:AppServwwwmumodulessmithy.php on line 13

Warning: mssql_query() [function.mssql-query]: Query failed in C:AppServwwwmumodulessmithy.php on line 13

Warning: mssql_fetch_row(): supplied argument is not a valid MS SQL-result resource in C:AppServwwwmumodulessmithy.php on line 14
это в кьюэри
CREATE TABLE [dbo].[MEMB_CREDITS] ([memb___id] [varchar] (10) COLLATE Modern_Spanish_CI_AS NOT NULL ,[credits] [int] NOT NULL) ON [PRIMARY];
ALTER TABLE [dbo].[MEMB_CREDITS] WITH NOCHECK ADD CONSTRAINT [DF_MEMB_CREDITS_credits] DEFAULT (0) FOR [credits];
ALTER TABLE [dbo].[MEMB_CREDITS] WITH NOCHECK ADD CONSTRAINT [PK_MEMB_CREDITS] PRIMARY KEY  CLUSTERED ([memb___id]) ON [PRIMARY];

CREATE PROCEDURE XCredits
@username VARCHAR(10),
@credits int
AS

BEGIN
IF ((select count(*) from [MEMB_CREDITS] where [memb___id]=@username)!=1)
insert into [MEMB_CREDITS] (memb___id,credits) VALUES (@username,0);

update [MEMB_CREDITS] set [credits]=[credits]+@credits where [memb___id]=@username;
select [credits] as QueryResult from [MEMB_CREDITS] where [memb___id]=@username

END

SET QUOTED_IDENTIFIER OFF
SET ANSI_NULLS ON

dn0

3BEPb а можеш подсказать где такую темку для сайта скачал?

ausmann

Цитата: Aragon от 2011 Янв. 18, 09:42  3BEPb а можеш подсказать где такую темку для сайта скачал?

Спиз*** он а не скачал  (chuckle)
-Взято с Ланэйдж2
-Вот толко думаю што эта не стандартноя тема одтуды

3BEPb

Обновляю ссылку точнее так вылаживаю
создайте файл smithy.php
и в него скопируйте это
Спойлер
<?php

if ($_SESSION['user'] == true) {

$login $_SESSION['user'];

include 
"Includes/Warehouse.php";


$credits mssql_query("select credits from MEMB_CREDITS WHERE memb___id='$login'");
$credits mssql_fetch_row($credits);
$credit_reslut mssql_query("SELECT credits from MEMB_CREDITS where memb___id='$login'");
$credit_row mssql_fetch_row($credit_reslut);

if(
$credit_row[0] > 0) {
$credits2 $credit_row[0];
}else {
$credits2 '0';
}
function 
get_market_cat_name($cat_id) {
switch(
$cat_id) {
case 
0:
return 
'Swords';
break;
case 
1:
return 
'Axes';
break;
case 
2:
return 
'Maces';
break;
case 
3:
return 
'Spears';
break;
case 
4:
return 
'Bows';
break;
case 
5:
return 
'Staffs';
break;
case 
6:
return 
'Shields';
break;
case 
7:
return 
'Helms';
break;
case 
8:
return 
'Armors';
break;
case 
9:
return 
'Pants';
break;
case 
10:
return 
'Gloves';
break;
case 
11:
return 
'Boots';
break;
case 
12:
return 
'Items';
break;
case 
13:
return 
'Jewels';
break;
case 
14:
return 
'Wings/Orbs';
break;
case 
15:
return 
'Scrolls';
break;
default:
return 
"Unknown Category";
break;
}
}



?>

<div class="page-head"><?php print phrase_menu_smithy;?></div>
<?
if(!$_GET['show'] == 'history'){
if(!isset($_GET['cat_id']) and !isset($_GET['item_id'])){

?>

<script type="text/javascript">
var mpns = new caBox("mpns");
mpns.add("<?php print phrase_menu_smithy;?>","selected");
mpns.add("<?php print phrase_menu_smithy_history;?>","?op=smithy&show=history");
mpns.construct2();
</script><? print phrase_menu_smithy_info; ?><BR><BR>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>

<td width="45%" height="20" style="border: 0px solid #ecca97; " align="center">
<a title="<? print phrase_menu_smithy_item;?>">
<img alt="<? print phrase_menu_smithy_item;?>" src="Images/Misc/smithy.gif">
</a>
</td>
<td width="2"></td><td height="100%">

<?

$ii = -1;
while($ii<15) {
$ii++;
$get_item_info = "SELECT TOP 100 type,id,name,credits,category,stickLevel FROM WebShop WHERE category= '$ii' order by id asc";
$get_item_info_ = mssql_query($get_item_info);
$category_name[$ii] = get_market_cat_name($ii);
print" <div class="box" style="margin-bottom:2px;"><a onclick="dm_show('top-menu-dmm$ii');" href="java script:;">
<b>

".$category_name[$ii]."<BR>
</b> </a></div><div id="top-menu-dmm$ii" style="
border-top: 1px dashed #000000;
border-left: 1px dashed #000000;
border-right: 1px dashed #000000;
margin-left: 1px; margin-top: 3px; margin-bottom: 3px; display: none;"></B>
";
for($i=0;$i < mssql_num_rows($get_item_info_);++$i)
{
$get_item_info = mssql_fetch_row($get_item_info_);
$item_name=$get_item_info[2];
$cat_id=$get_item_info[0];
$item_id=$get_item_info[1];
$stick_level=$get_item_info[5];
$categories_++;
$itemimg = ws_image($item_id,$cat_id,0,$stick_level);

if ($get_item_info[3]==0)  {

}
else{
print"<div style="border-bottom: 1px dashed #000000; padding: 2px; padding-left: 15px;">
<a title="<img src=$itemimg>" href="?op=smithy&cat_id=$cat_id&item_id=$item_id&level=$stick_level">$item_name</a><BR></div>";
}
}
print"</div>";
}


?>
</table>
<?
}
else
{

?>


<script type="text/javascript">
var mpns = new caBox("mpns");
mpns.add("<?php print phrase_menu_smithy;?>","selected");
mpns.add("<?php print phrase_menu_smithy_history;?>","?op=smithy&show=history");
mpns.construct2();
</script>

<?

$cat_id=$_GET['cat_id'];
$item_id=$_GET['item_id'];
$stick_level=$_GET['level'];
$item_info = mssql_query("SELECT * FROM [WebShop] WHERE [type]='$cat_id' and [id] = '$item_id' and [stickLevel] = '$stick_level'");
$item_info = mssql_fetch_array($item_info);
$query = mssql_query("select * from [WebShop] where [uid]='".$item_id."'");
$z++;
$i_info = mssql_fetch_array($query);
$query = mssql_query("exec WZ_GetItemSerial");
$credita = mssql_fetch_row($query);
$credita = sprintf("%08X", $credita[0],00000000);
$rqcredit = round($item_info['credits']);            //*$webshop['credits']['multiplier']);
$AA = sprintf("%02X", $item_info['id'],00);
$BB = 0;
$ZZ = 0;
$CC = sprintf("%02X", $item_info['default_durability'],00);
$DDEE = $credita;
$itemtype = $item_info['type'];
switch ($itemtype) {
case 14:
$itemtype=12;
break;
case 12:
$itemtype=13;
break;
case 13:
$itemtype=14;
break;
}
$itemtype = $itemtype*16;
$FF = sprintf("%02X", $itemtype,00);
$HH = 0;
$itemimg = ws_image($item_info['id'],$item_info['type'],0,$item_info['stickLevel']);

if ($item_info['maxitlv']>0)
$Webshop['limit']['item_level'] = $item_info['maxitlv'];

if ($item_info['maxitop']>0)
$Webshop['limit']['item_option'] = $item_info['maxitop'];

if ($item_info['maxitxl']>0)
$Webshop['limit']['item_excellent'] = $item_info['maxitxl'];



if (($item_info['hasLevel']==1) && ($_POST['item_level']>0) && ($_POST['item_level']<=$Webshop['limit']['item_level']))
{
$BB += $_POST['item_level']*8;
$rqcredit+= $Webshop['credits']['itemlvl']*$_POST['item_level'];
}
else
$BB += $item_info['stickLevel']*8;

if (($item_info['stickLevel']>0) && ($_POST['item_level']>0) && ($_POST['item_level']<=$Webshop['limit']['item_level']))
{
$BB += $item_info['stickLevel']*8;
}

if ($_POST['item_level']>$Webshop['limit']['item_level'])
{
print 'The maximum level that item can be is <b>'.$webshop['limit']['item_level'].'</b>, do not exceed it!';
break;
}
if ($_POST['item_option']>$Webshop['limit']['item_option'])
{
print 'The maximum option that item can have is at stage #<b>'.$webshop['limit']['item_option'].'</b>, do not exceed it!';
break;
}
$ops = 0;
if (($item_info['hasOption']==1) && ($_POST['item_option']>0) && ($_POST['item_option']<=7))
{
if ($_POST['item_option']>=4)
{
$BB+=$_POST['item_option']-4;
$HH+=64;
}
else
$BB += $_POST['item_option'];

$rqcredit+= $Webshop['credits']['itemopt']*$_POST['item_option'];
}

if (($item_info['luck']==1) && ($_POST['item_luck']==1))
{
$BB += 4;
$rqcredit+= $Webshop['credits']['itemluck'];
header("Location: ");
}
if (($item_info['skill']==1) && ($_POST['item_skill']==1))
{
$BB += 128;
$rqcredit+= $Webshop['credits']['itemskill'];
}
if (($item_info['ex_type']!=-1) && ($item_info['ex_type']!=3)) {
if ($_POST['ex1']){
$HH+=1;
$ops++;
$rqcredit+=$Webshop['credits']['itemexl'];
}
if ($_POST['ex2']){
$HH+=2;
$ops++;
$rqcredit+=$Webshop['credits']['itemexl'];
}
if ($_POST['ex3']){
$HH+=4;
$ops++;
$rqcredit+=$Webshop['credits']['itemexl'];
}
if ($_POST['ex4']){
$HH+=8;
$ops++;
$rqcredit+=$Webshop['credits']['itemexl'];
}
if ($_POST['ex5']){
$HH+=16;
$ops++;
$rqcredit+=$Webshop['credits']['itemexl'];
}
if ($_POST['ex6']){
$HH+=32;
$ops++;
$rqcredit+=$Webshop['credits']['itemexl'];
}
}
if ($ops>$Webshop['limit']['item_excellent'])
{
print phrase_max_options.' #<b>'.$Webshop['limit']['item_excellent'].'</b>, do not exceed them!';
break;
}

if ($item_info['credits']==0)  {

return false;
}
$BB = sprintf("%02X", $BB,00);
$HH = sprintf("%02X", $HH,00);
$ZZ = sprintf("%02X", $ZZ,00);
$query = mssql_query("declare @it varbinary(1920);
set @it=(select [Items] from [warehouse] where [AccountID]='$login');
print @it");
$mycuritems = mssql_get_last_message();
$newitem = $AA.$BB.$CC.$DDEE.$HH.$ZZ.$FF.'000000000000';
$test = 0;
$item = ItemInfo($newitem);


if($_POST['additem']){

$slot = smartsearch($mycuritems,$item_info['X'],$item_info['Y']);
$test = $slot*32;
$key=$_POST['code_in'];
if ($slot==1337)
{
$additemerror = phrase_m_itembuy_dont_have_free_vault_space;
}
elseif ($credits[0] < $rqcredit)
{
$additemerror = phrase_m_itembuy_dont_have_credits;
}

else{
if(!$errormsg){
$current_time=time();
$new_credits=$credits[0] - $rqcredit;
mssql_query("UPDATE MEMB_CREDITS set credits = '$new_credits' where memb___id = '$login'");
$mynewitems = substr_replace($mycuritems, $newitem, ($test+2), 32);
mssql_query("INSERT INTO [smithy_history]
([memb___id]
,[cat_id]
,[item]
,[buy_date]
,[price]
,[pay_type])
VALUES('$login','$cat_id','$newitem','$current_time','$rqcredit','credit')");
mssql_query("update [warehouse] set [Items]=".$mynewitems." where [AccountId]='$login'");
$additemok = "Вы успешно приобрели новую вещь!";
$add_done=1;
}
}
}?><script>
function set_itemprice() {
my_credits=<? print $credits[0]; ?>;
item_price = <? print $rqcredit; ?>;
item_price = item_price + document.getElementById('item_level').value*<? print $Webshop['credits']['itemlvl']; ?>;
item_price = item_price + document.getElementById('item_option').value*<? print $Webshop['credits']['itemopt']; ?>;
exc_opt_limit=<? print $Webshop['limit']['item_excellent']; ?>;
selected_exc_opt_count=0;

if (document.getElementById('item_skill').checked == true) {
item_price = item_price + <? print $Webshop['credits']['itemskill']; ?>;
}
if (document.getElementById('item_luck').checked == true) {
item_price = item_price + <? print $Webshop['credits']['itemluck']; ?>;
}
exc_opt_price = <? print $Webshop['credits']['itemexl']; ?>;
if (document.getElementById('ex1').checked == true) {
item_price=item_price+exc_opt_price;
selected_exc_opt_count=selected_exc_opt_count+1;
}
if (document.getElementById('ex2').checked == true) {
item_price=item_price+exc_opt_price;
selected_exc_opt_count=selected_exc_opt_count+1;
}
if (document.getElementById('ex3').checked == true) {
item_price=item_price+exc_opt_price;
selected_exc_opt_count=selected_exc_opt_count+1;
}
if (document.getElementById('ex4').checked == true) {
item_price=item_price+exc_opt_price;
selected_exc_opt_count=selected_exc_opt_count+1;
}
if (document.getElementById('ex5').checked == true) {
item_price=item_price+exc_opt_price;
selected_exc_opt_count=selected_exc_opt_count+1;
}
if (document.getElementById('ex6').checked == true) {
item_price=item_price+exc_opt_price;
selected_exc_opt_count=selected_exc_opt_count+1;
}
if(selected_exc_opt_count >= exc_opt_limit){
if (document.getElementById('ex1').checked != true) {
document.getElementById('ex1').disabled=true;
}
if (document.getElementById('ex2').checked != true) {
document.getElementById('ex2').disabled=true;
}
if (document.getElementById('ex3').checked != true) {
document.getElementById('ex3').disabled=true;
}
if (document.getElementById('ex4').checked != true) {
document.getElementById('ex4').disabled=true;
}
if (document.getElementById('ex5').checked != true) {
document.getElementById('ex5').disabled=true;
}
if (document.getElementById('ex6').checked != true) {
document.getElementById('ex6').disabled=true;
}
}
else{
document.getElementById('ex1').disabled=false;
document.getElementById('ex2').disabled=false;
document.getElementById('ex3').disabled=false;
document.getElementById('ex4').disabled=false;
document.getElementById('ex5').disabled=false;
document.getElementById('ex6').disabled=false;
}

document.getElementById('item_price').innerHTML=item_price;
if(my_credits < item_price){
document.getElementById("additem").style.display = "none";
}
else{
document.getElementById("additem").style.display = "block";
}
}
</script>
<?php
if(!empty($additemerror)){echo"<div class="msg-error"><ul><li>$additemerror</li></ul></div>";
}
if(!empty(
$additemok)){
echo
"<div class="msg-ok"><ul><li>$additemok</li></ul></div>";}

?>

<?
if(!$add_done)
{
?>

<? print phrase_menu_smithy_info; ?><BR><BR>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>

<td width="50%" height="20" style="border: 1px dashed rgb(102, 153, 204); " align="center">
<form method="post" action="" >
<center><div ><B><? print $item_info['name']; ?></B><BR><img src="<? print $itemimg; ?>"><BR>
<B>Item size:</B> <? print $item_info['X']; ?> x <? print $item_info['Y']; ?><BR>
<B><? print phrase_m_list_price; ?>: </b><font color=green><b id="item_price"><? print $rqcredit; ?></B> <B>Kred</B></font><BR>
<B><? print phrase_m_change_cred; ?>: </B><B> <? print $credits2; ?> </B> <B>Kred</B><BR>



<div align="left">

<?

// Item Level Adjustment
if ($item_info['hasLevel']==1)
{
print"
<select id="item_level" style="width: 80px;" name="item_level" onclick="set_itemprice();">
<optgroup label="Item Level"><option value="0">+0</option>
";
$op=0;
while ($op<$Webshop['limit']['item_level']) {
$op++;
print'<option value="'.$op.'">+'.$op.'</option>';
}
print'</select>&nbsp;';
}

// Item Option Adjustment
if ($item_info['hasOption']==1) {
switch ($item_info['optionType']) {
case 1:
$opmultiplier=1;
break;
case 2:
$opmultiplier=5;
break;
default:
$opmultiplier=4;
}
print"<select style="padding: 0px; width:80px;" id="item_option" name="item_option" onclick="set_itemprice();">
<optgroup label="Item Option"><option value="0">+0</option>";
$op=0;
while ($op<$Webshop['limit']['item_option']) {
$op++;
print'<option value="'.$op.'">+'.($op*$opmultiplier).'</option>';
}
print'</select><BR>';
}


if ($item_info['luck']==1)
print'<input id="item_luck" name="item_luck" value="1" onclick="set_itemprice();" type="checkbox">Luck<BR>';

// Item Skill Adjustment
if ($item_info['skill']==1)
print'<input id="item_skill" name="item_skill" value="1" onclick="set_itemprice();" type="checkbox">Skill<BR>';
else
print'<input type="checkbox" style="display:none;" id="item_skill" name="item_skill" value="1">';

// Excellent Item Options Adjustment
switch ($item_info['ex_type']) {
case -1 :
print'<input type="checkbox" style="display:none;" value=1 id=ex1 name=ex1><input type="checkbox" style="display:none;" value=1 id=ex2 name=ex2><input type="checkbox" style="display:none;" value=1 id=ex3 name=ex3><input type="checkbox" style="display:none;" value=1 id=ex4 name=ex4><input type="checkbox" style="display:none;" value=1 id=ex5 name=ex5><input type="checkbox" style="display:none;" value=1 id=ex6 name=ex6>';
break;
case 0 :
$op1 = 'Increase MP/kill +8';
$op2 = 'Increase HP/kill +8';
$op3 = 'Increase attacking(wizardly)speed+7';
$op4 = 'Increase wizardly damage +2%';
$op5 = 'Increase Damage +level/20';
$op6 = 'Excellent Damage Rate +10%';
break;
case 1 :
$op1 = 'Increase Zen After Hunt +40%';
$op2 = 'Defense success rate +10%';
$op3 = 'Reflect damage +5%';
$op4 = 'Damage Decrease +4%';
$op5 = 'Increase MaxMana +4%';
$op6 = 'Increase MaxHP +4%';
break;
case 2 :
$op1 = ' Increase HP';
$op2 = ' Increase MP';
$op3 = ' Ignore opponents defense +3%';
$op4 = ' Increase Stamina';
$op5 = ' Increase attack speed';
$op6 = ' <i>Do not select (Gives nothing)</i>';
break;
case 3:
print'<input type="checkbox" style="display:none;" value="0" id="ex1" name="ex1"><input type="checkbox" style="display:none"; value="0" id="ex2" name="ex2"><input type="checkbox" style="display:none"; value="0" id="ex3" name="ex3"><input type="checkbox" style="display:none"; value="0" id="ex4" name="ex4"><input type="checkbox" style="display:none"; value="0" id="ex5" name="ex5"><input type="checkbox" style="display:none"; value="0" id="ex6" name="ex6">';
break;
case 4:
$op1 = ' +115 HP';
$op2 = ' +115 MP';
$op3 = ' Ignore Enemy's defense 3%';
$op4 = ' +50 Max stamina';
$op5 = ' <i>Do not select (Gives nothing)</i>';
$op6 = ' <i>Do not select (Gives nothing)</i>';
break;
}
if (($item_info['ex_type']!=-1) && ($item_info['ex_type']!=3))
print'
<label><input onclick="set_itemprice();" type=checkbox value=1 id=ex1 name=ex1>'.$op1.'</label>
<br>
<label><input onclick="set_itemprice();" type=checkbox value=1 id=ex2 name=ex2>'.$op2.'</label>
<br>
<label><input onclick="set_itemprice();" type=checkbox value=1 id=ex3 name=ex3>'.$op3.'</label>
<br>
<label><input onclick="set_itemprice();" type=checkbox value=1 id=ex4 name=ex4>'.$op4.'</label>
<br>
<label><input onclick="set_itemprice();" type=checkbox value=1 id=ex5 name=ex5>'.$op5.'</label>
<br>
<label><input onclick="set_itemprice();" type=checkbox value=1 id=ex6 name=ex6>'.$op6.'</label>
<BR><BR>';



?>


<center>
<input type="hidden" name="additem" value="1" />
<input type="submit" class="button-gray" value="<? print phrase_m_itembuy_buy; ?>" />
</div></div></form></center></td>
<td width="2"></td><td height="100%">

<?

$ii = -1;
while($ii<15) {
$ii++;
$get_item_info = "SELECT TOP 100 type,id,name,credits,category,stickLevel FROM WebShop WHERE category= '$ii' order by id asc";
$get_item_info_ = mssql_query($get_item_info);
$category_name[$ii] = get_market_cat_name($ii);
print" <div class="box" style="margin-bottom:2px;"><a onclick="dm_show('top-menu-dmm$ii');" href="java script:;">
<b>

".$category_name[$ii]."<BR>
</b> </a></div><div id="top-menu-dmm$ii" style="
border-top: 1px dashed #000000;
border-left: 1px dashed #000000;
border-right: 1px dashed #000000;
margin-left: 1px; margin-top: 3px; margin-bottom: 3px; display: none;"></B>
";
for($i=0;$i < mssql_num_rows($get_item_info_);++$i)
{
$get_item_info = mssql_fetch_row($get_item_info_);
$item_name=$get_item_info[2];
$cat_id=$get_item_info[0];
$item_id=$get_item_info[1];
$stick_level=$get_item_info[5];
$categories_++;
$itemimg = ws_image($item_id,$cat_id,0,$stick_level);

if ($get_item_info[3]==0)  {

}
else{
print"<div style="border-bottom: 1px dashed #000000; padding: 2px; padding-left: 15px;">
<a title="<img src=$itemimg>" href="?op=smithy&cat_id=$cat_id&item_id=$item_id&level=$stick_level">$item_name</a><BR></div>";
}
}
print"</div>";
}


?>
</table>





<?

}
}
}
else
{

?>

<script type="text/javascript">
var mpns = new caBox("mpns");
mpns.add("<?php print phrase_menu_smithy;?>","?op=smithy");
mpns.add("<?php print phrase_menu_smithy_history;?>","selected");
mpns.construct2();
</script>

<?
$history_info = "SELECT TOP 1000 memb___id,cat_id,item,buy_date,price,pay_type FROM smithy_history WHERE memb___id= '$login' order by buy_date desc";
$history_info_ = mssql_query($history_info);

if(mssql_num_rows($history_info_ ) == 0){
print"<div class="msg-error"><ul><li>".phrase_m_history_is_empty."</li></ul></div>";
}

//Page Code
$m_page=$_GET['page'];
if(!$m_page){
$m_page = '1';
}

$total_items = mssql_num_rows($history_info_);

$total_pages = $total_items / $Webshop['history']['items_per_page'];

$r_pages = round($total_pages);

if($r_pages > $total_pages){
$total_pages = $r_pages;
}

$i_value_s=$Webshop['history']['items_per_page'] * $m_page - $Webshop['history']['items_per_page'];

$i_value_e=$Webshop['history']['items_per_page'] * $m_page -1;



for($i=0;$i < $total_pages;++$i)
{
$page_n=$i +1;
if($page_n == $m_page){
$page_list .= "<b>[$page_n]</b>&nbsp;";
}
else{

$page_list .= "<a href="?op=smithy&show=history&page=$page_n">$page_n</a>&nbsp;";
}
}

$prev_p = $m_page - 1;
if($prev_p < 1){
$prev_page = "<img alt="No Previous pages" src="images/Misc/p_disabled.gif">&nbsp;";
}
else{
$prev_page = "<a href="?op=smithy&show=history&page=$prev_p"><img alt="Previous page" src="index/p_disabled.gif"></a>&nbsp;";
}

$next_p = $m_page + 1;
if($m_page >= $total_pages){
$next_page = "<img alt="No Previous pages" src="images/Misc/n_disabled.gif">&nbsp;";
}
else{
$next_page = "<a href="?op=smithy&show=history&page=$next_p"><img alt="Next page" src="index/n_disabled.gif"></a>&nbsp;";
}

//End page code



if(mssql_num_rows($history_info_) > 0){
print"<div align="center">";
print $prev_page.$page_list.$next_page;
print"</div>";

}



for($i=0;$i < mssql_num_rows($history_info_);++$i)
{
$history_info__ = mssql_fetch_array($history_info_);
$item_info = ItemInfo($history_info__['item']);

if($item_info['exl']) $item_info['exl']='<BR><b>Exc. Options:</b><font color=green>'.str_replace('^^','<br>', $item_info['exl']).'</font>';

if($item_info['level']){
$item_info['level']=" +".$item_info['level'];
}
else
{
$item_info['level']=NULL;
}
if(!$item_info['level']){
if($item_info['opt']){
$item_info['level']=" +0";
}
}
$time_format="d-m-Y H:i:s";

$cat_name=get_market_cat_name($history_info__['cat_id']);
$buy_time=date($time_format, $history_info__['buy_date']);

if($i >= $i_value_s AND $i <= $i_value_e){
print"


<div class="mih-list"><table border="0" cellspacing="0" cellpadding="0"><tr>
<td width="200"><img src="".$item_info['thumb'].""></td><td><b>$cat_name » <a title="<b>Durability:</b> ".$item_info['dur']."<br />
<b>Serial:</b> ".$item_info['sn']."".$item_info['exl'].""
href="java script:;"><b>".$item_info['name'].$item_info['level'].$item_info['opt'].$item_info['skill'].$item_info['luck']."</b></font></font></b></a>
<br />".phrase_m_history_price.":</B> ".$history_info__['price']." ".$history_info__['pay_type']."
<br /><B>".phrase_zenkred_history_time.":</B> $buy_time</td></tr></table><div style="border-top: 1px dashed #000000;"> </div></div>


";
}
}
if(mssql_num_rows($history_info_) > 0){
print"<div align="center">";
print $prev_page.$page_list.$next_page;
print"</div>";
}

}
}
else {
echo "<div class="msg-error"><ul><li>Please login first!</li></ul></div>";
}
?>
[свернуть]

LoKsTeR

Спойлер
Warning: include(Includes/Warehouse.php) [function.include]: failed to open stream: No such file or directory in C:xampphtdocsmodulessmithy.php on line 7

Warning: include() [function.include]: Failed opening 'Includes/Warehouse.php' for inclusion (include_path='.;C:xamppphppear') in C:xampphtdocsmodulessmithy.php on line 7
[свернуть]
Чего мне делать?  Warehouse.php где взять?

3BEPb

Цитата: LoKsTeR от 2012 Март 21, 22:02  
Спойлер
Warning: include(Includes/Warehouse.php) [function.include]: failed to open stream: No such file or directory in C:xampphtdocsmodulessmithy.php on line 7

Warning: include() [function.include]: Failed opening 'Includes/Warehouse.php' for inclusion (include_path='.;C:xamppphppear') in C:xampphtdocsmodulessmithy.php on line 7
[свернуть]
Чего мне делать?  Warehouse.php где взять?
Читаем 1 пост
и так чтобы её установить нам понадобится
1. уже установленный маркет от Deathless
(с)3ВЕРЬ

SanneA

Спойлер
## здесь был скриншот ##
[свернуть]

3BEPb

Цитата: SanneA от 2012 Март 22, 17:54  
Спойлер
## здесь был скриншот ##
[свернуть]
и в чем тут прикол что за сообщение если я выложил уже код

SanneA

Прошу прошения, не заметил   :wacko:
Спойлер
хотя кто знает? :trollface:
[свернуть]

Iros

3BEPb
Как хитро ) у Deathless'a хайд в 150, у тебя в 50 )) как же без его файлов поставить этот магаз тогда ?)
Спасибо за труды, выглядит хорошо, жду с нетерпением когда смогу попробовать )

vyavya

Скачал с сайта создателя и такая беда, нажимаю на категорию и нечего не происходит, WebShop база есть посмотрел по коду тоже все нормально, стоит маркет, маркет все показывает на ура. Помогите.

cool-jonik

А есть при нем же модуль топ 5 вещей на рынке? где можно скачать не могу найти никак(

InternationalMU

блин ещё долго ждать до 50 сообщений)

Похожие темы (5)

Сообщений: 19
Просмотров: 12021

Сообщений: 110
Просмотров: 38673

Сообщений: 1
Просмотров: 8855