I added sets, and everytime someone buys the sets, he gets an excellent kris +13.....
Help?
Printable View
I added sets, and everytime someone buys the sets, he gets an excellent kris +13.....
Help?
maybe your webshop_items season 1 items and game is high then season 1 or vice verca
that's cool. exe kris+13.. very old school
Any real fixes?
Hello 4Funer!
I use season 4, and I remade all the set-parts, and combined it into a set.
The URL : UnitedMU Webshop
I get this on all sets [well, I checked 5 and all of them had the problem, so I guess all the sets]
Thanks,
Noam.
So you do use savoy webshop, i found copy of 0.9c & its working on S6 E3
I've added group for titan set & 5 set parts was added correctly
have you modified anything in modules/itemadder.php ?
& if not
Upload your modules/itemadder.php so i'll check if it's adding correctly, also tell me which set i shud test.
yeah works fine with me with savoy webshop
Hey 4Funer!
Thanks a lot for answering!
I haven't changed (modified) itemadder.php.
Unfortunately I'm not home now, so here's my itemadder not uploaded:
Thanks,Code:<?php
switch (1) {
default:
require 'inc/function.iteminfo.php';
if ($_GET['additem']=="sy") {
if ($_POST['groupid']) {
$query = mssql_query("select * from [WebShop_Groups] where [id]='".secure($_POST['groupid'])."'");
$result = mssql_fetch_array($query);
$newc = $result['credits']*$webshop['credits']['multiplier'];
if ($newc<1) {
print 'That group is not accessable';
break;
}
$query = mssql_query("select [uid] from [WebShop] where [groupid]='".$result['id']."'");
if (mssql_num_rows($query)<1) {
print 'That group is empty';
break;
}
while($result=mssql_fetch_row($query))
$item_iid[]=$result[0];
$peritem= $newc/count($item_iid);
}
else
$item_iid[0]=secure($_POST['iid']);
$z=0;
while ($item_id=$item_iid[$z]) {
$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($i_info['credits']*$webshop['credits']['multiplier']);
$AA = sprintf("%02X", $i_info['id'],00);
$BB = 0;
$ZZ = 0;
$CC = sprintf("%02X", $i_info['default_durability'],00);
$DDEE = $credita;
$itemtype = $i_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;
if ($i_info['maxitlv']>0)
$webshop['limit']['item_level'] = $i_info['maxitlv'];
if ($i_info['maxitop']>0)
$webshop['limit']['item_option'] = $i_info['maxitop'];
if ($i_info['maxitxl']>0)
$webshop['limit']['item_excellent'] = $i_info['maxitxl'];
if (($i_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 += $i_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 (($i_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 (($i_info['skill']==1) && ($_POST['item_skill']==1))
{
$BB += 128;
$rqcredit+= $webshop['credits']['itemskill'];
}
if (($i_info['luck']==1) && ($_POST['item_luck']==1))
{
$BB += 4;
$rqcredit+= $webshop['credits']['itemluck'];
}
if ($BB<0)
$BB=0;
if (($i_info['ex_type']==3) && ($_POST['ancient']>0))
{
switch($_POST['ancient']) {
case 1:
$ZZ=5;
$rqcredit+=$webshop['credits']['ancient1'];
break;
case 2:
$ZZ=9;
$rqcredit+=$webshop['credits']['ancient2'];
break;
}
}
if (($i_info['type']==12) && ($i_info['id']==37))
{
switch($_POST['ancient']) {
case 1:
if ($webshop['credits']['fenrir_destroy']) {
$HH=1;
$rqcredit+=$webshop['credits']['fenrir_destroy'];
break;
}
case 2:
if ($webshop['credits']['fenrir_protect']) {
$HH=2;
$rqcredit+=$webshop['credits']['fenrir_protect'];
break;
}
case 3:
if ($webshop['credits']['golden_fenrir']) {
$HH=4;
$rqcredit+=$webshop['credits']['golden_fenrir'];
break;
}
}
}
if (($i_info['ex_type']!=-1) && ($i_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 ($mycreds<$rqcredit) {
print phrase_lack_credits;
break;
}
if ($i_info['credits']==0) {
print phrase_banned_item;
break;
}
$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]='".$GLOBALS['mu_user']."');
print @it");
$mycuritems = mssql_get_last_message();
$newitem = $AA.$BB.$CC.$DDEE.$HH.$ZZ.$FF.'000000000000';
$test = 0;
$slot = smartsearch($mycuritems,$i_info['X'],$i_info['Y']); // v0.9
$test = $slot*32;
if ($slot==1337) { // Got full house, aren't we l33t ;-)
print "<br>".phrase_no_slots;
break;
}
$item = ItemInfo($newitem);
$mynewitems = substr_replace($mycuritems, $newitem, ($test+2), 32);
$itemformat = "<div align=center style=padding-left: 6px;padding-right:6px;font-family:arial;font-size:10px;><span style=font-weight:bold;font-size:11px;>Name</span>RequirementsDurabilitySkillLuck[Excellent]</span></div>";
if ($item['level'])
$plusche = '+'.$item['level'];
$overlib = str_replace('Name','<span style=color:'.$item['color'].'>'.$item['name'].' '.$plusche.'</span>', $itemformat);
$rqs='';
if ($item['str'])
$rqs.=$item['str'].' Strength required<br>';
if ($item['nrg'])
$rqs.=$item['nrg'].' Energy required<br>';
if ($item['cmd'])
$rqs.=$item['cmd'].' Command required<br>';
if ($item['agi'])
$rqs.=$item['agi'].' Agility required<br>';
if ((!$item['luck']) && (!$item['exl']) && (!$item['skill']) && (!$item['option']))
$addx='<br>';
$overlib = str_replace('Durability', $item['dur'].' durability'.$addx, $overlib);
$overlib = str_replace('Requirements', '<br><br>'.$rqs, $overlib);
if ($item['opt'])
$option='<br><font color=#9aadd5>'.$item['opt'].'</font>';
if ($item['luck'])
$luck='<br><font color=#9aadd5>'.$item['luck'].'';
$overlib = str_replace('Luck', $luck.$option.'</font>', $overlib);
if ($item['skill'])
$skill='<br><font color=#9aadd5>'.$item['skill'].'</font>';
$overlib = str_replace('Skill', $skill, $overlib);
if ($item['exl'])
$exl='<font color=#8CB0EA>'.str_replace('^^','<br>', $item['exl']);
$overlib = str_replace('[Excellent]', $exl,$overlib);
if (!$_POST['groupid']) {
mssql_query("insert into [WebShop_UI] ([item],[credits]) VALUES ('".$newitem."','".$rqcredit."')");
} else
$rqcredit+= $peritem-($i_info['credits']*$webshop['credits']['multiplier']);
if ($z>1)
$rqcredit = $peritem;
shoplog("Bought <a style=\"border-bottom: 1px dashed #339942\" onClick=\"overlib('".$overlib."');\" onMouseOut=\"return nd();\">".$i_info['name']."</a> (<a href=\"index.php?sy=search&item_serial=".$credita."\" onMouseOut=\"return nd();\" onMouseOver=\"overlib('Click here to trackdown this item');\">Serial: ".$credita."</a>) for ".$rqcredit." credits");
$query = "exec XCredits '".$GLOBALS['mu_user']."', ".($rqcredit*-1).";
update [warehouse] set [Items]=".$mynewitems." where [AccountId]='".$GLOBALS['mu_user']."';";
if (!mssql_query($query))
{
print "There has been an error while adding your item!!";
break;
}
if ($z==count($item_iid))
{
print '<script type="text/javascript">location.href="index.php";</script>';
break;
}
}
}
print '<fieldset style="width: 400px"><legend class="mu_style2" style="padding: 0px;font-weight:bold;">Item adder</legend><div align="justify">'.phrase_item_warning.'</div></fieldset><br><br>';
switch($_GET['items']) {
default:
$zz=0;
while ($zz<16) {
$query = mssql_query("select count(*) from [WebShop] where [credits]=0 and [type]=".$zz);
$result_= mssql_fetch_row($query);
$query = mssql_query("select count(*) from [WebShop] where [credits]>0 and [type]=".$zz);
$result = mssql_fetch_row($query);
$type[$zz]=$result[0]." active, ".$result_[0]." banned";
$zz++;
}
$result = mssql_fetch_row(mssql_query("select count(*) from [WebShop_Groups] where [credits]>0;"));
$type[16]= $result[0];
print '<fieldset style="width: 400px; padding-top: 2px;background-color: #DDDDDD;border: 1px solid #000000; "><legend class="mu_style2" style="padding: 3px;font-weight:bold;background-color: #DDDDDD;border: 1px solid #000000;border-bottom:0px;">'.phrase_categories.'</legend><div align="justify" style="font-size: 11px; font-family:verdana;">
<div align="center"><span onMouseOut="return nd();" onMouseOver="overlib(\''.phrase_prices_tip.'\');">'.phrase_prices.' '.round($webshop['credits']['multiplier']*100).'%</span><hr></div>
<table width=100% cellpadding="1" cellspacing="0" border="0">
<tr><td>
<a onClick="wsic(0);" onMouseOver="document.getElementById(\'iteminf\').innerHTML=\'Items: '.$type[0].'\';" onMouseOut="document.getElementById(\'iteminf\').innerHTML=\'\';">'.phrase_category_0.'</a> <br>
<a onClick="wsic(1);" onMouseOver="document.getElementById(\'iteminf\').innerHTML=\'Items: '.$type[1].'\';" onMouseOut="document.getElementById(\'iteminf\').innerHTML=\'\';">'.phrase_category_1.'</a><br>
<a onClick="wsic(2);" onMouseOver="document.getElementById(\'iteminf\').innerHTML=\'Items: '.$type[2].'\';" onMouseOut="document.getElementById(\'iteminf\').innerHTML=\'\';">'.phrase_category_2.'</a><br>
<a onClick="wsic(3);" onMouseOver="document.getElementById(\'iteminf\').innerHTML=\'Items: '.$type[3].'\';" onMouseOut="document.getElementById(\'iteminf\').innerHTML=\'\';">'.phrase_category_3.'</a><br>
<a onClick="wsic(4);" onMouseOver="document.getElementById(\'iteminf\').innerHTML=\'Items: '.$type[4].'\';" onMouseOut="document.getElementById(\'iteminf\').innerHTML=\'\';">'.phrase_category_4.'</a><br>
<a onClick="wsic(5);" onMouseOver="document.getElementById(\'iteminf\').innerHTML=\'Items: '.$type[5].'\';" onMouseOut="document.getElementById(\'iteminf\').innerHTML=\'\';">'.phrase_category_5.'</a></td><td>
<a onClick="wsic(7);" onMouseOver="document.getElementById(\'iteminf\').innerHTML=\'Items: '.$type[7].'\';" onMouseOut="document.getElementById(\'iteminf\').innerHTML=\'\';">'.phrase_category_6.'</a> <br>
<a onClick="wsic(8);" onMouseOver="document.getElementById(\'iteminf\').innerHTML=\'Items: '.$type[8].'\';" onMouseOut="document.getElementById(\'iteminf\').innerHTML=\'\';">'.phrase_category_7.'</a> <br>
<a onClick="wsic(10);" onMouseOver="document.getElementById(\'iteminf\').innerHTML=\'Items: '.$type[10].'\';" onMouseOut="document.getElementById(\'iteminf\').innerHTML=\'\';">'.phrase_category_8.'</a> <br>
<a onClick="wsic(9);" onMouseOver="document.getElementById(\'iteminf\').innerHTML=\'Items: '.$type[9].'\';" onMouseOut="document.getElementById(\'iteminf\').innerHTML=\'\';">'.phrase_category_9.'</a> <br>
<a onClick="wsic(11);" onMouseOver="document.getElementById(\'iteminf\').innerHTML=\'Items: '.$type[11].'\';" onMouseOut="document.getElementById(\'iteminf\').innerHTML=\'\';">'.phrase_category_10.'</a><br>
<a onClick="wsic(6);" onMouseOver="document.getElementById(\'iteminf\').innerHTML=\'Items: '.$type[6].'\';" onMouseOut="document.getElementById(\'iteminf\').innerHTML=\'\';">'.phrase_category_11.'</a> </td><td valign="top" align="right">
<a onClick="wsic(12);" onMouseOver="document.getElementById(\'iteminf\').innerHTML=\'Items: '.$type[12].'\';" onMouseOut="document.getElementById(\'iteminf\').innerHTML=\'\';">'.phrase_category_12.'</a> <br>
<a onClick="wsic(13);" onMouseOver="document.getElementById(\'iteminf\').innerHTML=\'Items: '.$type[13].'\';" onMouseOut="document.getElementById(\'iteminf\').innerHTML=\'\';">'.phrase_category_13.'</a> <br>
<a onClick="wsic(14);" onMouseOver="document.getElementById(\'iteminf\').innerHTML=\'Items: '.$type[14].'\';" onMouseOut="document.getElementById(\'iteminf\').innerHTML=\'\';">'.phrase_category_14.'</a> <br>
<a onClick="wsic(15);" onMouseOver="document.getElementById(\'iteminf\').innerHTML=\'Items: '.$type[15].'\';" onMouseOut="document.getElementById(\'iteminf\').innerHTML=\'\';">'.phrase_category_15.'</a> <br>
<a onClick="wsic(\'groups\');" onMouseOver="document.getElementById(\'iteminf\').innerHTML=\'Groups: '.$type[16].'\';" onMouseOut="document.getElementById(\'iteminf\').innerHTML=\'\';">Grouped Items/sets</a> <br>
<div align="right" style="font-variant:small-caps;font-size:10px;color: red" id="iteminf" name="iteminf"> </div>
</td></tr></table>
</div>
</fieldset><br><br>
<div id="item_content" name="item_content"> </div>';
break;
}
}
?>
Noam
Item adder looks fine ;/ must be different problem
hmm let's check ur webshop again
helm/armor/pant/gloves/boots groups show count (0)
http://oi39.tinypic.com/29kt4hu.jpg
But you have items in there, so i checked code a bit more and, in 1 possible ways that's when type is wrong but category is fine,
maybe that's ur issue, then it would be normal that shit is added instead of items which doesn't exist, but appear on list
Anw let's check if that's the problem, go to sql & open webshop table
and make me SS of result starting from Bronze Helm
like this
http://oi41.tinypic.com/2i0bqs7.jpg
or upload me ur Webshop table (export to text file in sql)
ps. fix your armor sizes, for example, titan armor 2x2 and by default in-game it's 2x3, so next added item on that 0x1 slot will dissapear :)
What do you mean +all :D 63 ? lol
anw if your type is wrong for those categories then it's the problem because type should be correct for each item
like
helm 7, armor 8, pants, 9, gloves 10, boots 11
2. Remove those lines from itemadder.php
3. What fix? Items type? in SQL it's fast :)Code:<a onClick="wsic(7);" onMouseOver="document.getElementById(\'iteminf\').innerHTML=\'Items: '.$type[7].'\';" onMouseOut="document.getElementById(\'iteminf\').innerHTML=\'\';">'.phrase_category_6.'</a> <br>
<a onClick="wsic(8);" onMouseOver="document.getElementById(\'iteminf\').innerHTML=\'Items: '.$type[8].'\';" onMouseOut="document.getElementById(\'iteminf\').innerHTML=\'\';">'.phrase_category_7.'</a> <br>
<a onClick="wsic(10);" onMouseOver="document.getElementById(\'iteminf\').innerHTML=\'Items: '.$type[10].'\';" onMouseOut="document.getElementById(\'iteminf\').innerHTML=\'\';">'.phrase_category_8.'</a> <br>
<a onClick="wsic(9);" onMouseOver="document.getElementById(\'iteminf\').innerHTML=\'Items: '.$type[9].'\';" onMouseOut="document.getElementById(\'iteminf\').innerHTML=\'\';">'.phrase_category_9.'</a> <br>
<a onClick="wsic(11);" onMouseOver="document.getElementById(\'iteminf\').innerHTML=\'Items: '.$type[11].'\';" onMouseOut="document.getElementById(\'iteminf\').innerHTML=\'\';">'.phrase_category_10.'</a><br>
or if you talk abt armor size, then you don't have much to do, i guess only your S4 armos r fkd up :)
(check in sql & compare to item.txt)