-
CashShop Plus -- Fully working 90% + 10%(Your hands-on)
CashShop+
Click here to download
***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.
http://i43.tinypic.com/2hrfrdl.jpg
CashAccountPlus
Code:
USE [CabalCash]
GO
/****** Object: Table [dbo].[CashAccountPlus] Script Date: 11/12/2013 21:42:56 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[CashAccountPlus](
[ID] [varchar](50) NOT NULL,
[UserNum] [int] NOT NULL,
[Cash] [int] NOT NULL,
[CashBonus] [int] NOT NULL,
[CashTotal] AS ([Cash]+[CashBonus]),
[UpdateDateTime] [datetime] NOT NULL,
CONSTRAINT [PK_CashAccont+] PRIMARY KEY CLUSTERED
(
[UserNum] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
ALTER TABLE [dbo].[CashAccountPlus] ADD CONSTRAINT [DF_CashAccountPlus_Cash] DEFAULT ((0)) FOR [Cash]
GO
ALTER TABLE [dbo].[CashAccountPlus] ADD CONSTRAINT [DF_CashAccountPlus_CashBonus] DEFAULT ((0)) FOR [CashBonus]
GO
ALTER TABLE [dbo].[CashAccountPlus] ADD CONSTRAINT [DF_CashAccountPlus_UpdateDateTime] DEFAULT (getdate()) FOR [UpdateDateTime]
GO
ShopItems Table
Code:
USE [CabalCash]
GO
/****** Object: Table [dbo].[ShopItems] Script Date: 11/12/2013 21:25:50 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[ShopItems](
[ID] [int] IDENTITY(1,1) NOT NULL,
[Name] [varchar](200) NOT NULL,
[Description] [varchar](500) NOT NULL,
[ItemIdx] [int] NOT NULL,
[DurationIdx] [int] NOT NULL,
[ItemOpt] [int] NOT NULL,
[Image] [varchar](50) NOT NULL,
[Price] [int] NOT NULL,
[Category] [int] NOT NULL,
[Stock] [int] NOT NULL,--this is the Available column
[Rank] [int] NOT NULL, --used for Best selling items
[Count] [int] NOT NULL, --count of goods
[Shop] [int] NOT NULL, --1=cash, 2=tpoint
CONSTRAINT [PK_ShopItems] PRIMARY KEY CLUSTERED
(
[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
ALTER TABLE [dbo].[ShopItems] ADD CONSTRAINT [DF_ShopItems_Rank] DEFAULT ((0)) FOR [Rank]
GO
ALTER TABLE [dbo].[ShopItems] ADD CONSTRAINT [DF_ShopItems_Count] DEFAULT ((1)) FOR [Count]
GO
ALTER TABLE [dbo].[ShopItems] ADD CONSTRAINT [DF_ShopItems_Shop] DEFAULT ((1)) FOR [Shop]
GO
This is same as GetBankAlz
Code:
USE [CabalCash]
GO
/****** Object: StoredProcedure [dbo].[up_Plus_GetCash] Script Date: 11/12/2013 21:34:57 ******/
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[up_Plus_GetCash](@ID varchar(20), @UserNum int ) AS
BEGIN
if (NOT EXISTS(SELECT UserNum FROM CashAccountPlus WHERE UserNum = @UserNum))
BEGIN
INSERT CashAccountPlus(ID, UserNum, Cash, CashBonus, UpdateDateTime)
VALUES ( @ID, @UserNum, 0, 0, GETDATE() )
END
SELECT UserNum, Cash
FROM CashAccountPlus
WHERE UserNum = @UserNum
END
The buying StoredProcedure
Code:
USE [CabalCash]
GO
/****** Object: StoredProcedure [dbo].[up_Plus_BuyItem] Script Date: 11/12/2013 21:32:37 ******/
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[up_Plus_BuyItem](
@UserNum int,
@ServerIdx int,
@ItemIdx int,
@ItemOpt int,
@ItemDur int,
@ItemCount int
)AS
BEGIN
SET NOCOUNT ON
DECLARE @Price INT, @Num INT, @CashPre INT,@PREMDUR DATETIME, @Type INT
IF (NOT EXISTS(SELECT * FROM ShopItems WHERE ItemIdx = @ItemIdx))
BEGIN
SELECT 'Item Not Found'
RETURN
END
IF (@ItemDur=1) BEGIN SET @PREMDUR=DATEADD(HOUR, 1, GETDATE()) END ELSE
IF (@ItemDur=2) BEGIN SET @PREMDUR=DATEADD(HOUR, 2, GETDATE()) END ELSE
IF (@ItemDur=3) BEGIN SET @PREMDUR=DATEADD(HOUR, 3, GETDATE()) END ELSE
IF (@ItemDur=4) BEGIN SET @PREMDUR=DATEADD(HOUR, 4, GETDATE()) END ELSE
IF (@ItemDur=5) BEGIN SET @PREMDUR=DATEADD(HOUR, 5, GETDATE()) END ELSE
IF (@ItemDur=6) BEGIN SET @PREMDUR=DATEADD(HOUR, 6, GETDATE()) END ELSE
IF (@ItemDur=7) BEGIN SET @PREMDUR=DATEADD(HOUR, 10, GETDATE()) END ELSE
IF (@ItemDur=8) BEGIN SET @PREMDUR=DATEADD(HOUR, 12, GETDATE()) END ELSE
IF (@ItemDur=9) BEGIN SET @PREMDUR=DATEADD(DAY, 1, GETDATE()) END ELSE
IF (@ItemDur=10) BEGIN SET @PREMDUR=DATEADD(DAY, 3, GETDATE()) END ELSE
IF (@ItemDur=11) BEGIN SET @PREMDUR=DATEADD(DAY, 5, GETDATE()) END ELSE
IF (@ItemDur=12) BEGIN SET @PREMDUR=DATEADD(DAY, 7, GETDATE()) END ELSE
IF (@ItemDur=13) BEGIN SET @PREMDUR=DATEADD(DAY, 10, GETDATE()) END ELSE
IF (@ItemDur=14) BEGIN SET @PREMDUR=DATEADD(DAY, 14, GETDATE()) END ELSE
IF (@ItemDur=15) BEGIN SET @PREMDUR=DATEADD(DAY, 15, GETDATE()) END ELSE
IF (@ItemDur=16) BEGIN SET @PREMDUR=DATEADD(DAY, 20, GETDATE()) END ELSE
IF (@ItemDur=17) BEGIN SET @PREMDUR=DATEADD(DAY, 30, GETDATE()) END ELSE
IF (@ItemDur=18) BEGIN SET @PREMDUR=DATEADD(DAY, 45, GETDATE()) END ELSE
IF (@ItemDur=19) BEGIN SET @PREMDUR=DATEADD(DAY, 60, GETDATE()) END ELSE
IF (@ItemDur=20) BEGIN SET @PREMDUR=DATEADD(DAY, 90, GETDATE()) END ELSE
IF (@ItemDur=21) BEGIN SET @PREMDUR=DATEADD(DAY, 100, GETDATE()) END ELSE
IF (@ItemDur=22) BEGIN SET @PREMDUR=DATEADD(DAY, 120, GETDATE()) END ELSE
IF (@ItemDur=23) BEGIN SET @PREMDUR=DATEADD(DAY, 180, GETDATE()) END ELSE
IF (@ItemDur=24) BEGIN SET @PREMDUR=DATEADD(DAY, 270, GETDATE()) END ELSE
IF (@ItemDur=25) BEGIN SET @PREMDUR=DATEADD(DAY, 367, GETDATE()) END ELSE
IF (@ItemDur=26) BEGIN SET @PREMDUR=DATEADD(MINUTE, 3, GETDATE()) END ELSE
IF (@ItemDur>=27) BEGIN SET @PREMDUR=DATEADD(YEAR, 99, GETDATE()) END
SELECT @Type = Category FROM ShopItems WHERE ItemIdx=@ItemIdx
SELECT @Price = @ItemCount*Price FROM ShopItems WHERE ItemIdx=@ItemIdx
SELECT @CashPre=Cash FROM CashAccountPlus WHERE UserNum=@UserNum
IF @CashPre<@Price
BEGIN
RETURN -1
END
BEGIN TRAN
SET @Num = 1
WHILE @Num<=@ItemCount
BEGIN
IF(@Type>=2) --To Character
BEGIN
INSERT INTO MyCashItem (UserNum,TranNo,ServerIdx,ItemKindIdx,ItemOpt,DurationIdx)
VALUES (@UserNum,0,@ServerIdx,@ItemIdx,@ItemOpt,@ItemDur)
IF(@@RowCount < 1)
BEGIN
ROLLBACK TRAN
RETURN -2
END
END
IF(@Type=1) --Premium for Account
BEGIN
IF (NOT EXISTS(SELECT * FROM Account.dbo.cabal_charge_auth WHERE UserNum = @UserNum))
BEGIN
INSERT INTO Account.dbo.cabal_charge_auth(UserNum,[Type],[ExpireDate],PayMinutes,ServiceKind)
VALUES (@UserNum,0,@PREMDUR,0,@ItemIdx)
IF(@@RowCount < 1)
BEGIN
ROLLBACK TRAN
RETURN -2
END
END
ELSE IF (EXISTS(SELECT * FROM Account.dbo.cabal_charge_auth WHERE UserNum = @UserNum))
BEGIN
UPDATE Account.dbo.cabal_charge_auth SET [ExpireDate]=@PREMDUR, ServiceKind=@ItemIdx WHERE UserNum=@UserNum
IF(@@RowCount < 1)
BEGIN
ROLLBACK TRAN
RETURN -3
END
END
END
SET @Num=@Num+1
END
UPDATE ShopItems SET Stock=Stock-@ItemCount, [Rank]=[Rank]+1 where ItemIdx=@ItemIdx
IF(@@RowCount < 1)
BEGIN
ROLLBACK TRAN
RETURN -4
END
UPDATE CashAccountPlus SET Cash=Cash-@Price, UpdateDateTime = GETDATE() WHERE UserNum = @UserNum
IF(@@RowCount < 1)
BEGIN
ROLLBACK TRAN
RETURN -5
END
INSERT INTO CashLog(Usernum,LogType,CashPre,CashBonusPre,CashAfter,CashBonusAfter,ChangeCash,ChangeCashBonus,ItemCD,TranNo)
VALUES (@UserNum,2,@CashPre,0,@CashPre-@Price,0,0-@Price,0,@ItemIdx,CAST(GETDATE() AS INT)+@Price)
IF(@@RowCount < 1)
BEGIN
ROLLBACK TRAN
RETURN -6
END
COMMIT TRAN
END
GOODLUCK TO YOU!!!
-
Re: CashShop Plus -- Fully working 90% + 10%(Your hands-on)
More sleeker design + for you, so whats all about the buying query you didnt released? ;D
-
Re: CashShop Plus -- Fully working 90% + 10%(Your hands-on)
The people should do something.. Not just live with others good's..
-
Re: CashShop Plus -- Fully working 90% + 10%(Your hands-on)
Quote:
Originally Posted by
blade99
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
-
Re: CashShop Plus -- Fully working 90% + 10%(Your hands-on)
such a nice work it worked for me :)
-
Re: CashShop Plus -- Fully working 90% + 10%(Your hands-on)
-
Re: CashShop Plus -- Fully working 90% + 10%(Your hands-on)
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 :):
-
Re: CashShop Plus -- Fully working 90% + 10%(Your hands-on)
i love the style and it looks refreshing in your eyes but! i need some help! i have used fresh DB's.
//GetBankAlz
http://img34.imageshack.us/img34/2346/67vy.png
Uploaded with ImageShack.us
//ShopItems Table
http://img690.imageshack.us/img690/2834/4v9n.png
Uploaded with ImageShack.us
//StoredProcedure
http://img23.imageshack.us/img23/4198/lkl8.png
Uploaded with ImageShack.us
-
Re: CashShop Plus -- Fully working 90% + 10%(Your hands-on)
Quote:
Originally Posted by
4pLay
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
-
Re: CashShop Plus -- Fully working 90% + 10%(Your hands-on)
Quote:
Originally Posted by
oOSpikeOo
well i think cabal game shop doesnt support plugins (im not sure)
-
Re: CashShop Plus -- Fully working 90% + 10%(Your hands-on)
@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.
-
Re: CashShop Plus -- Fully working 90% + 10%(Your hands-on)
HINT: ALTER means you already have it on your database.
-
Re: CashShop Plus -- Fully working 90% + 10%(Your hands-on)
upload your cabalcash.bak plix .px2000
-
Re: CashShop Plus -- Fully working 90% + 10%(Your hands-on)
@Sidzinho, try make it workin yourself, dont except to be copy/paste.
-
Re: CashShop Plus -- Fully working 90% + 10%(Your hands-on)
Quote:
Originally Posted by
Sidzinho
upload your cabalcash.bak plix .px2000
Like the comfortably and ready-made
XD
-
Re: CashShop Plus -- Fully working 90% + 10%(Your hands-on)
Hello guys any idea of this?
I think is missing html.php?
http://i42.tinypic.com/2s0g2s8.png
-
Re: CashShop Plus -- Fully working 90% + 10%(Your hands-on)
+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 shitty 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 :)
-
Re: CashShop Plus -- Fully working 90% + 10%(Your hands-on)
Quote:
Originally Posted by
spykerwar
It's a joke?
I know everyone had own beginnings, but let u use ur brain a little.
have u tried to JUST click one of that *.php files?
Then try...
-
Re: CashShop Plus -- Fully working 90% + 10%(Your hands-on)
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.
-
Re: CashShop Plus -- Fully working 90% + 10%(Your hands-on)
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>
-
Re: CashShop Plus -- Fully working 90% + 10%(Your hands-on)
Quote:
Originally Posted by
spykerwar
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.
example of buying query is in the first post i guess..
-
Re: CashShop Plus -- Fully working 90% + 10%(Your hands-on)
Quote:
Originally Posted by
PX2000
example of buying query is in the first post i guess..
....my bad. Sorry...
-
Re: CashShop Plus -- Fully working 90% + 10%(Your hands-on)
Wow thanks PX2000.
Work 100% :D
-
Re: CashShop Plus -- Fully working 90% + 10%(Your hands-on)
-
Re: CashShop Plus -- Fully working 90% + 10%(Your hands-on)
hello,
well i'm a newbie, have my own serv for personal use and try to create the 2 stored procedures which is used by your itemshop. But i'm not able (i don't know how) to save it in the current folder of "store procedure" in cabalcash.
Can you explain to me how to do please ?
thanks
-
Re: CashShop Plus -- Fully working 90% + 10%(Your hands-on)
ok i used some existant test stored procedure and modify it with yours. Works great. Thanks.
EDIT : well not so great
first:
when i click on search; i have an error script
line 135
car 176
error : "loader" property value is NULL or not defined, not a function object
code 0
URL http://itemshopIP/wshop.php?v1=2&v2=...D20563233&nt=6
do you want to continue to execute script ?
=> if i click yes, goes back. If i click no, D/C
second : when i want to buy an item, lol it says "your buying query here".
i suppose i must call & exec the buying stored procedure that's it ? (sorry i'm totally a newbie on this)
So does anybody know how to solve my problems please.
thanks
-
3 Attachment(s)
Re: CashShop Plus -- Fully working 90% + 10%(Your hands-on)
-
Re: CashShop Plus -- Fully working 90% + 10%(Your hands-on)
plis help me PX2000 & format picture ??
https://www.photobox.co.uk/my/photo?album_id=3783081125&photo_id=2618580443#2618580443
-
Re: CashShop Plus -- Fully working 90% + 10%(Your hands-on)
share SP for CabalCash.dbo.up_plus_getcash plz
-
Re: CashShop Plus -- Fully working 90% + 10%(Your hands-on)
lus R can u share your server and client files?
-
Re: CashShop Plus -- Fully working 90% + 10%(Your hands-on)
Quote:
Originally Posted by
golddragooon
lus R can u share your server and client files?
why friend?
-
Re: CashShop Plus -- Fully working 90% + 10%(Your hands-on)
-
Re: CashShop Plus -- Fully working 90% + 10%(Your hands-on)
Quote:
Originally Posted by
besiaji
You have to write it by uself...
-
Re: CashShop Plus -- Fully working 90% + 10%(Your hands-on)
Quote:
Originally Posted by
Dens666
You have to write it by uself...
need tutor BUYING QUERY ..
-
Re: CashShop Plus -- Fully working 90% + 10%(Your hands-on)
Quote:
Originally Posted by
besiaji
need tutor BUYING QUERY ..
No, you have to write it by urself i told you already... No one will write tutorial for it.
-
Re: CashShop Plus -- Fully working 90% + 10%(Your hands-on)
Help-me
http://forum.xpzone.net/uploads/mont...7j-ajuxeHD.jpg
I am not in proficional in Web Design To Dominate php me someone help ?
-
Re: CashShop Plus -- Fully working 90% + 10%(Your hands-on)
-
Re: CashShop Plus -- Fully working 90% + 10%(Your hands-on)
-
Re: CashShop Plus -- Fully working 90% + 10%(Your hands-on)
Quote:
Originally Posted by
Dens666
You have to write it by uself...
Use popup div and buy query script from chummpy
-
Re: CashShop Plus -- Fully working 90% + 10%(Your hands-on)
how to add items? dont have any button to add item even in gm character
-
Re: CashShop Plus -- Fully working 90% + 10%(Your hands-on)
Quote:
Originally Posted by
amiidotcom
how to add items? dont have any button to add item even in gm character
database
-
Re: CashShop Plus -- Fully working 90% + 10%(Your hands-on)
Quote:
Originally Posted by
Myster Dev
database
Cant lol
-
Re: CashShop Plus -- Fully working 90% + 10%(Your hands-on)
Quote:
Originally Posted by
amiidotcom
Cant lol
Lol....u need to manually add them from db probably, i never used that script.
-
Re: CashShop Plus -- Fully working 90% + 10%(Your hands-on)
i downloaded and check this doesn't include the web registration and login webpage? or i missed some files?
-
Re: CashShop Plus -- Fully working 90% + 10%(Your hands-on)
Quote:
Originally Posted by
kengamer
i downloaded and check this doesn't include the web registration and login webpage? or i missed some files?
This shop is intended for in-game use. Opening a shop in the game, the client sends UserNum and AuthKey to script (wshop.php, rows 4-6). Based on this data, authentication takes place. ID and password are not required.
-
Re: CashShop Plus -- Fully working 90% + 10%(Your hands-on)
Quote:
Originally Posted by
HariSeldon
This shop is intended for in-game use. Opening a shop in the game, the client sends UserNum and AuthKey to script (wshop.php, rows 4-6). Based on this data, authentication takes place. ID and password are not required.
i get what you mean now, this is solely for ingame cash shop only. while the other chumpy's old code include the webside page as well with players counter and account register/login.
But i think this code is more than enough, just for ingame cash shop. and we make a separate one for website account register and browsing.
So the Refill- ecoins wasn't included in this release as well i believe.