PDA

View Full Version : |Tutorial| Adicionando Moedas do game na web Ferarezi!



maniacoo
19/09/2017, 11:08 PM
Bom Pessoal vou ser breve.
Vou ensinar como add moedas do game no site ferra merda
e deixar um codigo aqui para que as moedas apareça no menu lateral
igual a imagem
[Only registered and activated users can see links]

Primeiro roda essas 2 query na db MuOnline

ALTER TABLE dbo.Z_GameCurrencies ADD
guidColumn nvarchar(50) NULL


ALTER TABLE dbo.Z_GameCurrencies ALTER COLUMN
accountColumn NVARCHAR(50) NULL

depois disso logue no manager
Va em Configurações > loja de Creditos > Gerenciar Moedas.
[Only registered and activated users can see links]

Depois configure da forma que esta na sua DB (A Coluna guidColumn precisa estar como a imagem)
[Only registered and activated users can see links]
Depois disso voce usa esse codigo no seu LoginAjax2.php(ele se encontra na pasta do seu template /modules/LoginAjax2.tpl)
Abra ele usando um editor php..(recomendo o notpad++ ([Only registered and activated users can see links]))
Para S4 use esse código



<?php
require_once($_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Config/Transfer.php");
require_once($_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "System/MuDatabase.class.php");
$db = new MuDatabase();

require_once($_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "System/Account.class.php");
$acc = new Account($db);

$db->Query("SELECT * FROM MEMB_INFO WHERE memb___id = '$acc->memb___id'");
$data = $db->GetRow();
?>
<div style="margin-top:-24px; margin-le1ft:20px; padding-top:0px;">
<strong style="font-size:14px;">&nbsp;Olá, <span class="text-muted">{name}!</span></strong>
<hr>
&nbsp;<a href="#descermenu" onclick="LoadContent('?c=Messages')"><span style="color:#F00">{messages}</span> aviso(s)</a>.<br>
<div style="margin-right: 20px; margin-bottom: 10px;">
<i class="fa fa-angle-double-right fa-fw"></i>{vip_status}<br>

<i class="fa fa-angle-double-right fa-fw"></i><strong>Cr&eacute;dito:</strong> R$ {credits},00<br>

<i class="fa fa-angle-double-right fa-fw"></i><strong>Gold:</strong> <?php echo number_format($data['gold'],0,',','.'); ?><br>

<i class="fa fa-angle-double-right fa-fw"></i><strong>Cash:</strong> <?php echo number_format($data['cash'],0,',','.'); ?><br>


<!--<i class="fa fa-angle-double-right fa-fw"></i><strong>GlobalCoins:</strong> {Credit_1}<br>--->
</div>
<hr>
<a href="#gerenciar" onclick="LoadContent('?c=UserPanel')"><button class="btn btn-primary">Gerenciar</button></a>
<a href="[Only registered and activated users can see links]"><button class="btn btn-default btn-sm">Sair</button></a>
</div>




Para S6/S8 Use esse ( ambos tem cashshop)




<?php
require_once($_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "Config/Transfer.php");
require_once($_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "System/MuDatabase.class.php");
$db = new MuDatabase();

require_once($_SERVER['DOCUMENT_ROOT'] . "/" . $_SESSION['SiteFolder'] . "System/Account.class.php");
$acc = new Account($db);

$db->Query("SELECT * FROM CashShopData WHERE AccountID = '$acc->memb___id'");
$data = $db->GetRow();
?>
<div style="margin-top:-24px; margin-le1ft:20px; padding-top:0px;">
<strong style="font-size:14px;">&nbsp;Olá, <span class="text-muted">{name}!</span></strong>
<hr>
&nbsp;<a href="#descermenu" onclick="LoadContent('?c=Messages')"><span style="color:#F00">{messages}</span> aviso(s)</a>.<br>
<div style="margin-right: 20px; margin-bottom: 10px;">
<i class="fa fa-angle-double-right fa-fw"></i>{vip_status}<br>

<i class="fa fa-angle-double-right fa-fw"></i><strong>Cr&eacute;dito:</strong> R$ {credits},00<br>

<i class="fa fa-angle-double-right fa-fw"></i><strong>HuntCoins:</strong> <?php echo number_format($data['WCoinC'],0,',','.'); ?><br>

<i class="fa fa-angle-double-right fa-fw"></i><strong>C.Coins:</strong> <?php echo number_format($data['WCoinP'],0,',','.'); ?><br>

<i class="fa fa-angle-double-right fa-fw"></i><strong>GoblinPoint:</strong> <?php echo number_format($data['GoblinPoint'],0,',','.'); ?></br>

<i class="fa fa-angle-double-right fa-fw"></i><strong>GlobalCoins:</strong> {Credit_1}<br>
</div>
<hr>
<a href="#gerenciar" onclick="LoadContent('?c=UserPanel')"><button class="btn btn-primary">Gerenciar</button></a>
<a href="[Only registered and activated users can see links]"><button class="btn btn-default btn-sm">Sair</button></a>
</div>




Espero que todos tenha entendido '-'

Creditos
[Only registered and activated users can see links]
Codigo php: ???? nao sei quem fez

ezequiel
13/02/2018, 03:36 PM
Meu arquivo loginAjax2 esta assim

<ul>
<li>Bem Vindo: <span style="font-weight: bold; color: #AA7265;">{name}</span></li>
<li>{vip_status}</li>
<li>Crédito: <span style="font-weight: bold; color: #AA7265;">R${credits},00</span></li>
<li>XCoiN: <span style="font-weight: bold; color: #AA7265;">R${Credit_1}</span></li>
<li><a href="?c=Messages"><span style="color:#F00">{messages}</span> aviso(s) não lido(s)</a>.<br />
<li style="border-bottom: 1px solid #4F4135; margin-bottom: 4px;"></li>
<li><a href="/{SiteFolder}?c=UserPanel">Painel de Controle</a></li>
<li><a style="color: #FF0000;" href="/{SiteFolder}index.php?logout">Deslogar</a></li>
</ul>

e quando eu coloco o codigo o site fica com erros alguma solução ?

maniacoo
13/02/2018, 04:55 PM
Meu arquivo loginAjax2 esta assim

<ul>
<li>Bem Vindo: <span style="font-weight: bold; color: #AA7265;">{name}</span></li>
<li>{vip_status}</li>
<li>Crédito: <span style="font-weight: bold; color: #AA7265;">R${credits},00</span></li>
<li>XCoiN: <span style="font-weight: bold; color: #AA7265;">R${Credit_1}</span></li>
<li><a href="?c=Messages"><span style="color:#F00">{messages}</span> aviso(s) não lido(s)</a>.<br />
<li style="border-bottom: 1px solid #4F4135; margin-bottom: 4px;"></li>
<li><a href="/{SiteFolder}?c=UserPanel">Painel de Controle</a></li>
<li><a style="color: #FF0000;" href="/{SiteFolder}index.php?logout">Deslogar</a></li>
</ul>

e quando eu coloco o codigo o site fica com erros alguma solução ?

qual erro?

ezequiel
13/02/2018, 06:12 PM
Warning: require_once(C:\Inetpub\vhosts\muinfiniity.com.br\ [Only registered and activated users can see links]): failed to open stream: No such file or directory in C:\inetpub\vhosts\muinfiniity.com.br\[Only registered and activated users can see links] \templates\venon\modules\LoginAjax2.tpl.php on line 2

Fatal error: require_once(): Failed opening required 'C:\Inetpub\vhosts\muinfiniity.com.br\[Only registered and activated users can see links]' (include_path='.;.\includes;.\pear') in C:\inetpub\vhosts\muinfiniity.com.br\[Only registered and activated users can see links] \templates\venon\modules\LoginAjax2.tpl.php on line 2

prototipy
13/02/2018, 08:28 PM
Falta fazer as includs dos arquivos PHP tipo o arquivo onde ficam as mensagens e o de SQL e talz.

maniacoo
13/02/2018, 09:59 PM
Warning: require_once(C:\Inetpub\vhosts\muinfiniity.com.br\ [Only registered and activated users can see links]): failed to open stream: No such file or directory in C:\inetpub\vhosts\muinfiniity.com.br\[Only registered and activated users can see links] \templates\venon\modules\LoginAjax2.tpl.php on line 2

Fatal error: require_once(): Failed opening required 'C:\Inetpub\vhosts\muinfiniity.com.br\[Only registered and activated users can see links]' (include_path='.;.\includes;.\pear') in C:\inetpub\vhosts\muinfiniity.com.br\[Only registered and activated users can see links] \templates\venon\modules\LoginAjax2.tpl.php on line 2
Me manda seu skype por PM para que eu possa lhe ajudar

lobinhopk
03/08/2021, 06:24 PM
e pra comprar no shop?