Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

CashShop Plus -- Fully working 90% + 10%(Your hands-on)

Elite Diviner
Joined
May 15, 2009
Messages
403
Reaction score
414
CashShop+


***FEATURES***

Better security compare to old chumpy.cashShop(with respect)
Can sell goods for account (like premium services)
Prototype Interface of offical Cabal+ cashshop.
PrototypeJS integration (Scriptaculous)
Switchable currency (cash/tpoint)
Search function implemented
2 Tabs switchable category

For the Leechers
As the title say's you need to hands-on in order to work 100% not just copy/paste.

The part of this release which I didn't include is the buying query.
but I can give you pointers for that so you will know where to start.




CashAccountPlus queries:



GOODLUCK TO YOU!!!
 

Attachments

You must be registered for see attachments list
Last edited by a moderator:
Skilled Illusionist
Joined
Jul 12, 2011
Messages
389
Reaction score
34
More sleeker design + for you, so whats all about the buying query you didnt released? ;D
 
Last edited:
Elite Diviner
Joined
May 15, 2009
Messages
403
Reaction score
414
whats all about the buying query you didnt released? ;D
yep because if its included then the result is copy/paste..

You need to code it on your own if you call your self a developer then you can do it without a palm on your forehead. :D
 
Joined
Dec 16, 2010
Messages
446
Reaction score
121
I'm getting this errors :)

PX2000 - CashShop Plus -- Fully working 90% + 10%(Your hands-on) - RaGEZONE Forums


PX2000 - CashShop Plus -- Fully working 90% + 10%(Your hands-on) - RaGEZONE Forums
 
Newbie Spellweaver
Joined
Nov 9, 2013
Messages
8
Reaction score
0
too bad for me because i am in experience..
but thanks for the great release..
got to bookmark this page, hoping to learn how to make this work :):
 
█║▌║▌║TheMerc iful║▌║▌║█
Loyal Member
Joined
Jan 29, 2005
Messages
1,367
Reaction score
80
i love the style and it looks refreshing in your eyes but! i need some help! i have used fresh DB's.

//GetBankAlz



Uploaded with

//ShopItems Table



Uploaded with

//StoredProcedure



Uploaded with
 
Elite Diviner
Joined
May 15, 2009
Messages
403
Reaction score
414
i love the style and it looks refreshing in your eyes but! i need some help! i have used fresh DB's.

don't just copy/paste/run the queries, examine it first before applying. :D
 
┌П┐(•_•)┌П┐
Joined
Dec 22, 2009
Messages
958
Reaction score
318
@PX2000, you know why i like you release? Its not the shop itself, cuz for me its useless, its about that in your release its not just copy/paste. Now you putted the others members to work on it, studying it to get it working. Good job.
 
Last edited:
Newbie Spellweaver
Joined
Aug 14, 2011
Messages
10
Reaction score
0
Hello guys any idea of this?
I think is missing html.php?

PX2000 - CashShop Plus -- Fully working 90% + 10%(Your hands-on) - RaGEZONE Forums
 
Skilled Illusionist
Joined
Jan 5, 2009
Messages
343
Reaction score
391
+1 PX2000

love that you didn't spoon-feed em, maybe this way we'll get a more "able" community here :D

try to study a bit guys, developing isn't copy-paste, and the baddest part about it is that inexperienced devs make crappy servers and the overall players on privates lower their standard of quality game-play :p thus basically taking players away from servers of ppl who actually do this right and that invest a lot of work in it ... the moral is that ppl who work and deserve respect, should get it, the ones that just copy-paste, not :)
 
Newbie Spellweaver
Joined
Aug 14, 2011
Messages
10
Reaction score
0
Okey now its working for me but only buyin query didnt. Can you point me where i start? Cuz you say in the first post mister! Thanks.
 
Newbie Spellweaver
Joined
Apr 30, 2010
Messages
22
Reaction score
0
here is a buy query. Any advice to make it work ?
thanks.
This one is taken from another shop & i mofify some link to php file to sync with this shop.

<?php

////////////GM connection
$is_gm=false;
$r=query_db('select * from '.DB_GAM.'.dbo.cabal_character_table where CharacterIdx between '.$v1.' * 8 and '.$v1.' * 8 + 5 and nation=3');
if (mssql_num_rows($r)>0) $is_gm=true;

if (MAINTMODE==true and $is_gm==false) die ('Maintmode activated');


if ($confirm>0 && $item==0){
if (!$link) die('Database connection error.');
$q="select * from ".DB_ACC.".dbo.cabal_auth_table where UserNum='".$v1."'and AuthKey='".$v2."'";

if (IPVALIDATION==true) $q=$q." and LastIp='".$ip."'";
$r=query_db($q);
$row = mssql_fetch_row($r);
$name=$row[1];
$r=query_db("exec ".DB_CSH.".dbo.getbankalz '".$v1."'");
$row = mssql_fetch_row($r);
$alz=$row[1];
$r=query_db("select * from ".DB_CSH.".dbo.ShopItems where Id='".$confirm."' and Available>0");

if (mssql_num_rows($r)==0){
error_box('Error','unavailable item.');
}

else{
$row = mssql_fetch_row($r);
$itemidx=$row[3];
$durationidx=$row[4];
$itemopt=$row[5];
$price=$row[8];
$available=$row[10];

if ($alz<$price){
error_box('Error','insuffisant fond to buy item');
}

else{
$newalz=$alz-$price;
$newavailable=$available-1;
hardlog('Item purchased: '.$itemidx.','.$durationidx.','.$itemopt.','.$price.','.$available.' ('.$alz.'/'.$newalz.')');
$r=query_db("update ".DB_CSH.".dbo.ShopItems set Available='".$newavailable."' where Id='".$row[0]."'");
$r=query_db("exec ".DB_CSH.".dbo.setbankalz '".$v1."','".$newalz."'");
$r=query_db("exec ".DB_CCA.".dbo.up_AddMyCashItemByItem '".$v1."','1','".SVR_IDX."','".$itemidx."','".$itemopt."','".$durationidx."'");
error_box('Item bought. Click on close to go back to cashshop.');
}
}

}

elseif ($item>0 && $confirm==0){
$r=query_db("select * from ".DB_CSH.".dbo.ShopItems where Id='".$item."' and Available>0");

if(mssql_num_rows($r)==0){
error_box('Error','Quantity not available');
}

else{
echo '<DIV id=wrapper style="DISPLAY: none">';
echo '<TABLE height="100%" width="100%">';
echo '<TBODY><TR><TD vAlign=center align=middle>';
echo '<TABLE cellSpacing=0 cellPadding=0 border=0><TBODY>';
echo '<TR><TD width=35><IMG height=40 src="http://forum.ragezone.com/images/Item_Game_Box_s_01.gif" width=35></TD>';
echo '<TD class=white style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 5px" vAlign=top align=middle background="http://forum.ragezone.com/images/Item_Game_Box_s_02.gif"><STRONG>Are you sure ?</STRONG></TD>';
echo '<TD width=35><IMG height=40 src="http://forum.ragezone.com/images/Item_Game_Box_s_03.gif" width=35></TD></TR>';

//Please, confirm your purchase.
echo '<TR>';
echo '<TD background="http://forum.ragezone.com/images/Item_Game_Box_s_04.gif"> </TD>';
echo '<TD class=orange style="PADDING-BOTTOM: 20px; PADDING-TOP: 20px; background: #191D20" align=middle width=200><STRONG><SPAN style="WIDTH: 280px">Please, confirm your purchase.</SPAN></STRONG></TD>';
echo '<TD background="http://forum.ragezone.com/images/Item_Game_Box_s_06.gif"> </TD>';
echo '</TR>';


echo '<TR>';
echo '<TD background="http://forum.ragezone.com/images/Item_Game_Box_s_04.gif"> </TD>';
echo '<TD class=orange style="PADDING-BOTTOM: 20px; PADDING-TOP: 20px; background: #191D20" align=middle>';
echo '<IMG style="CURSOR: pointer" onclick="javscript:location.href=\'/_buy.php?v1='.$v1.'&v2='.$v2.'&co='.$item.'\'" alt="Confirm your purchase" src="http://forum.ragezone.com/images/Btn_Yes.gif" border=0>      ';
echo '<IMG style="CURSOR: pointer" onclick="javscript:location.href=\'./wshop.php?v1='.$v1.'&v2='.$v2.'\'" alt="Cancel your purchase" src="http://forum.ragezone.com/images/Btn_No.gif" border=0>';
echo '</TD>';
echo '<TD background="http://forum.ragezone.com/images/Item_Game_Box_s_06.gif"> </TD>';
echo '</TR>';

echo '<TR>';
echo '<TD><IMG src="http://forum.ragezone.com/images/Item_Game_Box_s_07.gif" width=35></TD>';
echo '<TD background="http://forum.ragezone.com/images/Item_Game_Box_s_08.gif"> </TD>';
echo '<TD><IMG src="http://forum.ragezone.com/images/Item_Game_Box_s_09.gif" width=35></TD>';
echo '</TR></TBODY>';
echo '</TABLE>';
echo '</TD></TR></TBODY>';
echo '</TABLE>';
echo '</DIV>';
}

}

else {
error_box('Putz >.<','Please report all errors to the staff.');
}

echo '<table width="100%" height="100%" align="center" id="loading">';
echo '<tr>';
echo '<td align="center" valign="middle">';
echo '<table bgcolor="#666666" cellspacing="9" border="1" width="250" height="60">';
echo '<tr>';
echo '<td align="center">';
echo '<font size="2" color="#eeeeee">loading...</font>';
echo '</td>';
echo '</tr>';
echo '<tr>';
echo '<td>';
echo '<marquee direction="right" width="250" scrollamount="8">';
echo '<table width="250" height="5" bgcolor="white">';
echo '<tr><td><p></td></tr>';
echo '</table>';
echo '</marquee>';
echo '</td>';
echo '</tr>';
echo '</table>';
echo '</td>';
echo '</tr>';
echo '</table>';


function error_box($title,$msg) {
global $v1, $v2;

echo '<DIV id=wrapper style="DISPLAY: none">';
echo '<TABLE height="100%" width="100%">';

echo '<TBODY><TR><TD vAlign=center align=middle>';

echo '<TABLE cellSpacing=0 cellPadding=0 border=0><TBODY>';
echo '<TR><TD width=35><IMG height=40 src="http://forum.ragezone.com/images/Item_Game_Box_s_01.gif" width=35></TD>';
echo '<TD class=white style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 5px" vAlign=top align=middle background="http://forum.ragezone.com/images/Item_Game_Box_s_02.gif"><STRONG>'.$title.'</STRONG></TD>';
echo '<TD width=35><IMG height=40 src="http://forum.ragezone.com/images/Item_Game_Box_s_03.gif" width=35></TD></TR>';

echo '<TR>';
echo '<TD background="http://forum.ragezone.com/images/Item_Game_Box_s_04.gif"> </TD>';
echo '<TD class=orange style="PADDING-BOTTOM: 20px; PADDING-TOP: 20px; background: #191D20" align=middle width=200><STRONG><SPAN style="WIDTH: 280px">'.$msg.'</SPAN></STRONG></TD>';
echo '<TD background="http://forum.ragezone.com/images/Item_Game_Box_s_06.gif"> </TD>';
echo '</TR>';

echo '<TR>';
echo '<TD background="http://forum.ragezone.com/images/Item_Game_Box_s_04.gif"> </TD>';
echo '<TD class=orange style="PADDING-BOTTOM: 20px; PADDING-TOP: 20px; background: #191D20" align=middle>';
echo '<IMG style="CURSOR: pointer" onclick="javscript:location.href=\'./wshop.php?v1='.$v1.'&v2='.$v2.'\'" alt="Close" src="http://forum.ragezone.com/images/Btn_close.gif" border=0>';
echo '</TD>';
echo '<TD background="http://forum.ragezone.com/images/Item_Game_Box_s_06.gif"> </TD>';
echo '</TR>';

echo '<TR>';
echo '<TD><IMG src="http://forum.ragezone.com/images/Item_Game_Box_s_07.gif" width=35></TD>';
echo '<TD background="http://forum.ragezone.com/images/Item_Game_Box_s_08.gif"> </TD>';
echo '<TD><IMG src="http://forum.ragezone.com/images/Item_Game_Box_s_09.gif" width=35></TD>';
echo '</TR></TBODY>';
echo '</TABLE>';
echo '</TD></TR></TBODY>';
echo '</TABLE>';
echo '</DIV>';
}


function query_db($query,$caller='Desconhecido'){
global $link;
hardlog($query);
$r=mssql_query($query);
return $r;
}

function hardlog($text){
$h=fopen('hardlog.txt','a');
if (is_writable('hardlog.txt')) {
if (!$h=fopen('hardlog.txt','a')) {
die('error opening hardlog.txt. Verify permissions.');
}

if (fwrite($h,"[".date("H:i:s G:i:s")."] ".$text."\n")===false){
die('Error on writing hardlog.txt, Verify permissions.');
}
fclose($h);
}

else{
die('Error on writing on hardlog.txt');
}
}

?>

<script>
document.body.scroll = "no";

function loaded()
{
setTimeout
loading.style.display = 'none';
wrapper.style.display = '';
}
</script>

</body></html>
 
Last edited:
Back
Top