Ir para conteúdo

Comprar Vip Pelo Site!


leobogas

Posts Recomendados

I ae gente, tudo blz??

 

então, eu to com meu ot e site prontinho pra colocar online.. mas ainda falta uma coisa, eu queria colocar para o player comprar vip pelo site...

 

eu não quero nada de points, o player vai la e compra points e faz oq quiser, não quero isso..

 

assim: ele vai la no site, clica para comprar a vip e apartir dai some o dinheiro gasto do char dele..

 

ahh e outra coisa também, eu quero por itens para o player comprar pelo site tbm... (igual vip).... (ele vai la, clica no item que ele quiser, aparece o item no char dele e some a grana gasta pelo item do char dele)

 

como fazer isso??

 

OBS: eu uso Gesior 0.3.7 e um ot 8.60

 

 

Obrigado!!

Link para o comentário
Compartilhar em outros sites

Leobogas isso você encontra na seção de Tutoriais de Webssites

 

Clique aqui

 

 

então, eu fui ver la e não tem nem um tutorial ensisando isso :s

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

alguem ajuda? pls ;x

Editado por leobogas
Link para o comentário
Compartilhar em outros sites

leobogas, dá pra fazer o que você quer, porém tomaria muito tempo, se eu fosse você faria um NPC mesmo, ou então um sistema para trocar Crystal Coin por pontos no site.

 

Para realizar a segunda opção que te dei, você precisaria recorrer à ajuda de programadores Lua.

 

Para pedidos de scripts:

http://www.xtibia.com/forum/forum/86-pedidos-de-scripts/

Editado por Alexx Pirado lol
Link para o comentário
Compartilhar em outros sites

[Gesior ACC Maker] Vendendo vip pelo pacc!

 

Pra quem usa Gesior ACC!

Boa galera, vejo que tem uma grande quantidade de pessoas que necessitam desse sistema para seu OTserv.

Depois varias tentativas, pesquisas, conseguir concluir os coder necessarios com ajuda de um amigo de outro fórum o Samme.

 

Vamos lá... Como não o tem o que explicar e nem precisa, apenas faça isso:

 

Vai até htdocs/shopsystem.php, procura por:

 

if($buy_offer['type'] == 'pacc')

 

Selecione todos esse coder a seguir:

 

                                       if($buy_offer['type'] == 'pacc') {                                             $player_premdays = $buy_player_account->getCustomField('premdays');                                             $player_lastlogin = $buy_player_account->getCustomField('lastday');                                             $save_transaction = 'INSERT INTO '.$SQL->tableName('z_shop_history_pacc').' (id, to_name, to_account, from_nick, from_account, price, pacc_days, trans_state, trans_start, trans_real) VALUES (NULL, '.$SQL->quote($buy_player->getName()).', '.$SQL->quote($buy_player_account->getId()).', '.$SQL->quote($buy_from).',  '.$SQL->quote($account_logged->getId()).', '.$SQL->quote($buy_offer['points']).', '.$SQL->quote($buy_offer['days']).', \'realized\', '.$SQL->quote(time()).', '.$SQL->quote(time()).');';                                             $SQL->query($save_transaction);                                             $buy_player_account->setCustomField('premdays', $player_premdays+$buy_offer['days']);                                             $account_logged->setCustomField('premium_points', $user_premium_points-$buy_offer['points']);                                             $user_premium_points = $user_premium_points - $buy_offer['points'];                                             if($player_premdays == 0) {                                                 $buy_player_account->setCustomField('lastday', time());                                             }                                             $main_content .= '<center><h2>Premium ACcount added!</h2><b>'.$buy_offer['days'].' days</b> of Premium Account added to the account of player <b>'.$buy_player->getName().'</b> for <b>'.$buy_offer['points'].' premium points</b> from your account.<br />Now you have <b>'.$user_premium_points.' premium points</b>.<br><br><a href="index.php?subtopic=shopsystem">Go to Shop Site</a><br>';                                             }

E substiuir por:

 

Vipsystem by Mock

                                       if($buy_offer['type'] == 'pacc') {                                             $player_vip_time = $buy_player_account->getCustomField('vip_time');                                             $player_lastlogin = $buy_player_account->getCustomField('lastday');                                             $save_transaction = 'INSERT INTO '.$SQL->tableName('z_shop_history_pacc').' (id, to_name, to_account, from_nick, from_account, price, pacc_days, trans_state, trans_start, trans_real) VALUES (NULL, '.$SQL->quote($buy_player->getName()).', '.$SQL->quote($buy_player_account->getId()).', '.$SQL->quote($buy_from).',  '.$SQL->quote($account_logged->getId()).', '.$SQL->quote($buy_offer['points']).', '.$SQL->quote($buy_offer['days']).', \'realized\', '.$SQL->quote(time()).', '.$SQL->quote(time()).');';                                             $SQL->query($save_transaction);                                             if($player_vip_time > 0)                                                 $buy_player_account->setCustomField('vip_time', $player_vip_time + $buy_offer['days'] * 86400);                                             else                                                 $buy_player_account->setCustomField('vip_time', time() + $buy_offer['days'] * 86400);                                             $buy_player_account->setCustomField('premium_points', $user_premium_points-$buy_offer['points']);                                             $user_premium_points = $user_premium_points - $buy_offer['points'];                                             if ($player_vip_days >= 1) {                                             }                                             $main_content .= '<center><h2>VIP Days added!</h2><b>'.$buy_offer['days'].' days</b> of VIP days added to the account of player <b>'.$buy_player->getName().'</b> for <b>'.$buy_offer['points'].' premium points</b> from your account.<br />Now you have <b>'.$user_premium_points.' premium points</b>.<br><br><a href="index.php?subtopic=shopsystem">Go to Shop Site</a><br>';                                             }

 

Vip system by Kydrai.

                                       if($buy_offer['type'] == 'pacc') {                                             $player_viptime = $buy_player_account->getCustomField('viptime');                                             $player_lastlogin = $buy_player_account->getCustomField('lastday');                                             $save_transaction = 'INSERT INTO '.$SQL->tableName('z_shop_history_pacc').' (id, to_name, to_account, from_nick, from_account, price, pacc_days, trans_state, trans_start, trans_real) VALUES (NULL, '.$SQL->quote($buy_player->getName()).', '.$SQL->quote($buy_player_account->getId()).', '.$SQL->quote($buy_from).',  '.$SQL->quote($account_logged->getId()).', '.$SQL->quote($buy_offer['points']).', '.$SQL->quote($buy_offer['days']).', \'realized\', '.$SQL->quote(time()).', '.$SQL->quote(time()).');';                                             $SQL->query($save_transaction);                                             if($player_viptime > 0)                                                 $buy_player_account->setCustomField('viptime', $player_viptime + $buy_offer['days'] * 86400);                                             else                                                 $buy_player_account->setCustomField('viptime', time() + $buy_offer['days'] * 86400);                                             $buy_player_account->setCustomField('premium_points', $user_premium_points-$buy_offer['points']);                                             $user_premium_points = $user_premium_points - $buy_offer['points'];                                             if ($player_vip_days >= 1) {                                             }                                             $main_content .= '<center><h2>VIP Days added!</h2><b>'.$buy_offer['days'].' days</b> of VIP days added to the account of player <b>'.$buy_player->getName().'</b> for <b>'.$buy_offer['points'].' premium points</b> from your account.<br />Now you have <b>'.$user_premium_points.' premium points</b>.<br><br><a href="index.php?subtopic=shopsystem">Go to Shop Site</a><br>';                                             }

 

Bom, esse sistema funciona perfeitamente.

 

E lembre-se na sua database tem que ter vip_time na tabela account.

 

 

Creditos GM Bekman

 

 

 

Se ajudei + REP por favor!

Link para o comentário
Compartilhar em outros sites

[Gesior ACC Maker] Vendendo vip pelo pacc!

 

Pra quem usa Gesior ACC!

Boa galera, vejo que tem uma grande quantidade de pessoas que necessitam desse sistema para seu OTserv.

Depois varias tentativas, pesquisas, conseguir concluir os coder necessarios com ajuda de um amigo de outro fórum o Samme.

 

Vamos lá... Como não o tem o que explicar e nem precisa, apenas faça isso:

 

Vai até htdocs/shopsystem.php, procura por:

 

if($buy_offer['type'] == 'pacc')

 

Selecione todos esse coder a seguir:

 

                                       if($buy_offer['type'] == 'pacc') {                                             $player_premdays = $buy_player_account->getCustomField('premdays');                                             $player_lastlogin = $buy_player_account->getCustomField('lastday');                                             $save_transaction = 'INSERT INTO '.$SQL->tableName('z_shop_history_pacc').' (id, to_name, to_account, from_nick, from_account, price, pacc_days, trans_state, trans_start, trans_real) VALUES (NULL, '.$SQL->quote($buy_player->getName()).', '.$SQL->quote($buy_player_account->getId()).', '.$SQL->quote($buy_from).',  '.$SQL->quote($account_logged->getId()).', '.$SQL->quote($buy_offer['points']).', '.$SQL->quote($buy_offer['days']).', \'realized\', '.$SQL->quote(time()).', '.$SQL->quote(time()).');';                                             $SQL->query($save_transaction);                                             $buy_player_account->setCustomField('premdays', $player_premdays+$buy_offer['days']);                                             $account_logged->setCustomField('premium_points', $user_premium_points-$buy_offer['points']);                                             $user_premium_points = $user_premium_points - $buy_offer['points'];                                             if($player_premdays == 0) {                                                 $buy_player_account->setCustomField('lastday', time());                                             }                                             $main_content .= '<center><h2>Premium ACcount added!</h2><b>'.$buy_offer['days'].' days</b> of Premium Account added to the account of player <b>'.$buy_player->getName().'</b> for <b>'.$buy_offer['points'].' premium points</b> from your account.<br />Now you have <b>'.$user_premium_points.' premium points</b>.<br><br><a href="index.php?subtopic=shopsystem">Go to Shop Site</a><br>';                                             }

E substiuir por:

 

Vipsystem by Mock

                                       if($buy_offer['type'] == 'pacc') {                                             $player_vip_time = $buy_player_account->getCustomField('vip_time');                                             $player_lastlogin = $buy_player_account->getCustomField('lastday');                                             $save_transaction = 'INSERT INTO '.$SQL->tableName('z_shop_history_pacc').' (id, to_name, to_account, from_nick, from_account, price, pacc_days, trans_state, trans_start, trans_real) VALUES (NULL, '.$SQL->quote($buy_player->getName()).', '.$SQL->quote($buy_player_account->getId()).', '.$SQL->quote($buy_from).',  '.$SQL->quote($account_logged->getId()).', '.$SQL->quote($buy_offer['points']).', '.$SQL->quote($buy_offer['days']).', \'realized\', '.$SQL->quote(time()).', '.$SQL->quote(time()).');';                                             $SQL->query($save_transaction);                                             if($player_vip_time > 0)                                                 $buy_player_account->setCustomField('vip_time', $player_vip_time + $buy_offer['days'] * 86400);                                             else                                                 $buy_player_account->setCustomField('vip_time', time() + $buy_offer['days'] * 86400);                                             $buy_player_account->setCustomField('premium_points', $user_premium_points-$buy_offer['points']);                                             $user_premium_points = $user_premium_points - $buy_offer['points'];                                             if ($player_vip_days >= 1) {                                             }                                             $main_content .= '<center><h2>VIP Days added!</h2><b>'.$buy_offer['days'].' days</b> of VIP days added to the account of player <b>'.$buy_player->getName().'</b> for <b>'.$buy_offer['points'].' premium points</b> from your account.<br />Now you have <b>'.$user_premium_points.' premium points</b>.<br><br><a href="index.php?subtopic=shopsystem">Go to Shop Site</a><br>';                                             }

 

Vip system by Kydrai.

                                       if($buy_offer['type'] == 'pacc') {                                             $player_viptime = $buy_player_account->getCustomField('viptime');                                             $player_lastlogin = $buy_player_account->getCustomField('lastday');                                             $save_transaction = 'INSERT INTO '.$SQL->tableName('z_shop_history_pacc').' (id, to_name, to_account, from_nick, from_account, price, pacc_days, trans_state, trans_start, trans_real) VALUES (NULL, '.$SQL->quote($buy_player->getName()).', '.$SQL->quote($buy_player_account->getId()).', '.$SQL->quote($buy_from).',  '.$SQL->quote($account_logged->getId()).', '.$SQL->quote($buy_offer['points']).', '.$SQL->quote($buy_offer['days']).', \'realized\', '.$SQL->quote(time()).', '.$SQL->quote(time()).');';                                             $SQL->query($save_transaction);                                             if($player_viptime > 0)                                                 $buy_player_account->setCustomField('viptime', $player_viptime + $buy_offer['days'] * 86400);                                             else                                                 $buy_player_account->setCustomField('viptime', time() + $buy_offer['days'] * 86400);                                             $buy_player_account->setCustomField('premium_points', $user_premium_points-$buy_offer['points']);                                             $user_premium_points = $user_premium_points - $buy_offer['points'];                                             if ($player_vip_days >= 1) {                                             }                                             $main_content .= '<center><h2>VIP Days added!</h2><b>'.$buy_offer['days'].' days</b> of VIP days added to the account of player <b>'.$buy_player->getName().'</b> for <b>'.$buy_offer['points'].' premium points</b> from your account.<br />Now you have <b>'.$user_premium_points.' premium points</b>.<br><br><a href="index.php?subtopic=shopsystem">Go to Shop Site</a><br>';                                             }

 

Bom, esse sistema funciona perfeitamente.

 

E lembre-se na sua database tem que ter vip_time na tabela account.

 

 

Creditos GM Bekman

 

 

 

Se ajudei + REP por favor!

 

PiabetaMan01, acho que você se enganou, o que ele quer é um sistema de shop que ao invés de comprar itens e vip por pontos, ele compraria por dinheiro(Crystal Coin).

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...