Fala galera, sou iniciante em website entendo bem pouco..
Estou tentando adicionar o market char system no meu gesior acc maker
Peguei um script de um forum e estou tentando editar.. o script está funcionando, porém eu não estou conseguindo criar um botão pra cancelar a venda de um char e não consigo criar um código para que venda char acima do level 100+ Algum bom scripter consegue me ajuda?
Script: accountmanager
$main_content .= '<TABLEBORDER=1CELLSPACING=1CELLPADDING=4WIDTH=100%><TRBGCOLOR='.$config['site']['vdarkborder'].'><TDCLASS=whitewidth="64px"><CENTER><B>Sell your characters</B></CENTER></TD></TR>';
$main_content .= '<TRBGCOLOR='.$config['site']['darkborder'].'><TDCLASS=blackwidth="64px"><B></B>';
$charArray = array();
$acct = false;
$players_from_logged_acc = $account_logged->getPlayersList();
$players_from_logged_acc->orderBy('name');
$main_content .= '<formaction=""method="post"><selectname="char">';
foreach($players_from_logged_acc as $player)
{
$charArray[] = $player->getName();
$main_content .= '<option>'.$player->getName().'</option>';
}
$main_content .= '</select>Select a character to sell<br>';
$main_content .= '<inputtype="text"name="price"maxlength="10"size="4">Select the price of the character<br>';
$main_content .= '<inputtype="submit"name="submit"value="Sell character"></TD></TR>';
$main_content .= '</form></table>';
if (isset($_POST['submit'])) {
$char = stripslashes($_POST['char']);
$price = stripslashes($_POST['price']);
$tmp = str_replace("'", '', $char);
if (in_array($tmp, $charArray )) { $acct = true; }
if ($char && $price && $acct) {
if(is_numeric(trim($_POST['price']))) {
$check2 = $SQL->query("SELECT * FROM `players` WHERE `name` = '$char'") or die(mysql_error());
foreach ($check2 as $re) {
$voc = $re['vocation'];
$oid = $re['account_id'];
}
$check1 = $SQL->query("UPDATE `players` SET `account_id` = 1 WHERE `name` = '$char'") or die(mysql_error());
$check3 = $SQL->query("INSERT INTO `sellchar` VALUES ('','$char','$voc','$price','1','$oid')");
$main_content .= '<b><center>You added your character correctly, thanks!</b></center>';
header("Location: index.php?subtopic=buychar");
} else {
$main_content .= '<b><center>Set a numeric price!!</b></center>';
}
} else {
$main_content .= '<b><center>Fill out all fields!</b></center>';
}
}
$main_content .= '<br>';
$main_content .= '<divclass="SmallBox"><divclass="MessageContainer"><divclass="BoxFrameHorizontal"style="background-image:url('.$layout_name.'/images/content/box-frame-horizontal.gif);"/></div><divclass="BoxFrameEdgeLeftTop"style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"/></div><divclass="BoxFrameEdgeRightTop"style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"/></div><divclass="Message"><divclass="BoxFrameVerticalLeft"style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);"/></div><divclass="BoxFrameVerticalRight"style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);"/></div><table><tr><tdclass="LabelV">Hint:</td><tdstyle="width:100%;">If you put your character on sale anyone can buy it, you will lose acces to that character and you wont be able to log in with that character until someone buys it, you can also delete your offer by buying your own character!<br><b>When someone buys your character you will get the price in points!</td></tr></table><divalign="center"><tableborder="0"cellspacing="0"cellpadding="0"><formaction="?subtopic=accountmanagement&action=registeraccount"method="post"><tr><tdstyle="border:0px;"></div></div></td></tr></form></table></div></div><divclass="BoxFrameHorizontal"style="background-image:url('.$layout_name.'/images/content/box-frame-horizontal.gif);"/></div><divclass="BoxFrameEdgeRightBottom"style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"/></div><divclass="BoxFrameEdgeLeftBottom"style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);"/></div></div></div><br/>';
Pergunta
Rodrigo94 0
Fala galera, sou iniciante em website entendo bem pouco..
Estou tentando adicionar o market char system no meu gesior acc maker
Peguei um script de um forum e estou tentando editar.. o script está funcionando, porém eu não estou conseguindo criar um botão pra cancelar a venda de um char e não consigo criar um código para que venda char acima do level 100+ Algum bom scripter consegue me ajuda?
Script: accountmanager
Link para o comentário
Compartilhar em outros sites
0 respostass a esta questão
Posts Recomendados