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!

[Release] Work CashMall and Auto reward 223 ON for 2.2.3 BSB

Junior Spellweaver
Joined
Mar 3, 2013
Messages
168
Reaction score
48
information :

This restore BILLING.BAK are 2.2.3.2 BILLING RU , but work for 223 .
in the dbo.tbl_UserStatus already have Bonus table.
in the dbo.tbl_cashlist already fill 441 coloumn cashlist with 10 cash price for all item mall cash.100% match cashlist name item with the serverside CashShop.dat list the name item hahahahahahay



To make the CashMall Shop work in 2.2.3 BSB what do you need to edit are :
1.Server side CashShop.dat
2.Server Side CashShop_str.dat
3.Client side CashShop.edf

btw if your server 2.2.3 BSB want use system Autocash Reward by time play its work Use this BILLING , and you must set all nation code to RU nation code , if you are to lazy to edit the item cash price use my mine :D
and for the last step just execute Autocash reward.sql

So with this work CashMall ON and AutoCash Reward ON its will be nice for 2.2.3 ^_^

information : The fileserver that I use are 2.2.3 BSB from Mr.Ron
for the Zoneserver I use the zone from FREEDEV release.
for the Query Auto Cash reward use from Mr.roslaw
its nice , now 2.2.3 will be cool with autocash reward and CashMall ON \m/

btw for the zoneserver edited
Max Dalant = 4.000.000.000
Max Gold = 5.000.000
and unlock 3rd job

hope this information are usefull for some that dont know how to make CashMall ON at 2.2.3 BSB.
Because I see at many private RF 2.2.3 the CashMAll OFF ,
always put the itemcash like potion cash , box upgrader, Mining tool cash and battery
and etc always at npc or from drop monster mobs.

the link download

add new link : cashshop 223 standard price client server side =


here the Screenshoot
 
Last edited:
Skilled Illusionist
Joined
Dec 18, 2009
Messages
333
Reaction score
142
This is the Original Script Query For BILLING Database

The original name for BILLING database (RU nation) is RF_RussBill
PHP:
USE [RF_RusBill]
GO
/****** Object:  StoredProcedure [dbo].[RF_PING]    Script Date: 07/25/2009 00:04:25 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		<_sharky_>
-- Create date: <22.05.2009>
-- Description:	<RF_PING ???>
-- =============================================
CREATE PROCEDURE [dbo].[RF_PING]
	--@param1 varchar(16)
AS
BEGIN
	SET NOCOUNT ON;
--insert into tbl_a (name,value) values ('param1',@param1)
END
GO
/****** Object:  Table [dbo].[tbl_UserStatus]    Script Date: 07/25/2009 00:04:25 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[tbl_UserStatus](
	[serial] [int] IDENTITY(1,1) NOT NULL,
	[id] [varchar](16) NOT NULL,
	[Status] [int] NOT NULL,
	[DTStartPrem] [datetime] NULL,
	[DTEndPrem] [datetime] NULL,
	[Cash] [int] NOT NULL CONSTRAINT [DF_tbl_UserStatus_Cash]  DEFAULT ((0)),
	[actmonths] [int] NOT NULL CONSTRAINT [DF_tbl_UserStatus_actmonths]  DEFAULT ((0)),
 CONSTRAINT [PK_tbl_UserStatus] 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
/****** Object:  Table [dbo].[tbl_paylog]    Script Date: 07/25/2009 00:04:25 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[tbl_paylog](
	[PayID] [bigint] NOT NULL,
	[UserID] [varchar](24) NULL,
	[sum] [float] NOT NULL,
	[accept] [bit] NOT NULL CONSTRAINT [DF_tbl_paylog_accept]  DEFAULT ((0)),
	[DT] [datetime] NOT NULL CONSTRAINT [DF_tbl_paylog_DT]  DEFAULT (getdate()),
	[CheckSum] [binary](4) NOT NULL CONSTRAINT [DF_tbl_paylog_CheckSum]  DEFAULT (0xFFFFFFFF),
 CONSTRAINT [PK_tbl_paylog] PRIMARY KEY CLUSTERED 
(
	[PayID] 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
/****** Object:  Table [dbo].[tbl_CashLog]    Script Date: 07/25/2009 00:04:25 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[tbl_CashLog](
	[Serial] [int] IDENTITY(1,1) NOT NULL,
	[Account] [varchar](20) NOT NULL,
	[Char] [varchar](30) NOT NULL,
	[ItemID] [varchar](7) NOT NULL,
	[Amount] [int] NOT NULL,
	[Server] [varchar](32) NOT NULL,
	[UID] [bigint] NOT NULL,
	[Cost] [int] NOT NULL,
	[Discount] [float] NOT NULL,
	[Return] [tinyint] NOT NULL,
 CONSTRAINT [PK_tbl_CashLog] PRIMARY KEY CLUSTERED 
(
	[Serial] 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
/****** Object:  StoredProcedure [dbo].[RF_CheckBalance]    Script Date: 07/25/2009 00:04:25 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[RF_CheckBalance]

	@s_userid	varchar(50)
,	@s_amount	int		OUTPUT

AS

SET NOCOUNT ON

	SELECT @s_amount = Cash
	FROM tbl_UserStatus WITH (READUNCOMMITTED)
	WHERE ID = @s_userid

	IF @s_amount IS NULL
		SET @s_amount = 0
GO
/****** Object:  StoredProcedure [dbo].[RF_CheckAccountStatus]    Script Date: 07/25/2009 00:04:25 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		<_sharky_>
-- Create date: <22.05.2009>
-- Description:	<User Account Status Check Proc>
-- =============================================
CREATE PROCEDURE [dbo].[RF_CheckAccountStatus]
@id as varchar(16),
@Status int output
AS
BEGIN
	SET NOCOUNT ON;
	declare @EndDt datetime
    select @EndDt=DTEndPrem from tbl_UserStatus where id=@id
    if @EndDt>GETDATE() begin
		SELECT @status=[Status] from tbl_UserStatus where id=@id
	end else begin
		Set @Status=1
		update tbl_UserStatus set [Status]=@status where id=@id
	end
END
GO
/****** Object:  StoredProcedure [dbo].[RF_ActivatePremium]    Script Date: 07/25/2009 00:04:25 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		<_sharky_>
-- Create date: <22.05.2009>
-- Description:	<Activation Premium Prc>
-- =============================================
CREATE PROCEDURE [dbo].[RF_ActivatePremium]
@UserID varchar(16),
@months tinyint,
@ret char(1) output
AS
BEGIN
	SET NOCOUNT ON;
	declare @serial int
	declare @plusdate datetime
	declare @curdate datetime
	set @serial=0
	select @serial=serial from tbl_UserStatus where id=@UserID
	if @serial<1 begin
		set @ret='F'
		return
	end
	select @curdate=DTEndPrem from tbl_userstatus where serial=@serial
	update tbl_userstatus set actmonths=@months where serial=@serial
	if @curdate is null
	begin
		SET @plusdate = DATEADD(mm, @months, GETDATE())
		update tbl_UserStatus set [Status]=2, DTStartPrem=GETDATE(), DTEndPrem=@plusdate where serial=@serial
	end else begin
		if @curdate>getdate() begin
			update tbl_UserStatus set [Status]=2, DTEndPrem=DATEADD(mm,@months,DTEndPrem) where serial=@serial
		end else begin
			SET @plusdate = DATEADD(mm, @months, GETDATE())
			update tbl_UserStatus set [Status]=2, DTStartPrem=GETDATE(), DTEndPrem=@plusdate where serial=@serial
		end
	end

	if(@@ERROR=0) begin
		set @ret='T'
		return
	end
END
GO
/****** Object:  StoredProcedure [dbo].[commit_pay]    Script Date: 07/25/2009 00:04:25 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE procedure [dbo].[commit_pay]
@inv_id  bigint,
@mon  float,
@summ  int,
@rw  char(1) output
as
declare @a as bit
declare @p as bigint
declare @accid varchar(24)

select @p=PayID, @a=accept from dbo.tbl_paylog where PayID=@inv_id
--update dbo.tbl_paylog set UserID=@accid where PayID=@inv_id
select @accid=UserID from tbl_paylog where PayID=@inv_id
set @rw='A'
if @a=convert(bit,0) and @p <> 0
	begin
	 update dbo.tbl_userStatus set Cash=Cash+@mon*200 where ID=@accid
	 update dbo.tbl_paylog set accept=convert(bit,1),[sum]=@mon where PayID=@inv_id
	 set @rw='T'
	 return
	end

if @p is null
	begin
     set @rw='F'
	 return
	end
if @a is null and @p<>null 
	begin
	 set @rw='C'
	 return
	end
GO
/****** Object:  StoredProcedure [dbo].[RF_ChargeBalance]    Script Date: 07/25/2009 00:04:25 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[RF_ChargeBalance]
	@Login 	varchar(32) 
,	@Char	varchar(20)
,	@ItemID varchar(20)
,	@Amount int
,	@Server varchar(20)
,	@UID bigint
,	@Cost varchar(20)
,	@Discount int
,	@ret int output
AS

set nocount on

DECLARE 
@totalAmount as int,
@ProductAmount as int,
@cashBalance as int

INSERT INTO [dbo].[tbl_CashLog] ([Account],[Char],[ItemID],[Amount],[Server],[UID],[Cost],[Discount],[Return])
     VALUES (@login,@char,@ItemID,@Amount,@Server,@UID,@cost,@Discount,0)
if @@error <> 0
begin
 Set @ret=0
 return
end
else
 if @Login is null or RTrim(@Login)='' 
  begin
   Set @ret=0
   return
  end
 else if @Cost is null or @Cost<='0'
  begin
	Set @ret=0
	return
  end
 else if @Amount is null or @Amount<='0'
  begin
	Set @ret=0
	return
  end
 else if @Discount is null or @Discount < '0' or @Discount >= '100'
  begin
	Set @ret=0
	return
  end
 else if @ItemID is null or rtrim(@ItemID) =''
  begin
	Set @ret=0
	return
  end
 else if @Server is null or rtrim(@Server)=''
  begin
    Set @ret=0
	return
  end
 else if @Char is null or rtrim(@Char)=''
  begin
	Set @ret=0
	return
  end


select @cashBalance=Cash from tbl_UserStatus where ID=@Login

--select @productAmount=cost from tbl_cashList where id=@ItemID
/*
if @productAmount != @cost or @Cost<=0 or @productAmount <=0 or @productAmount is null
 begin
	set @ret=0
	return
 end
*/
if @Discount=0 begin
  set @totalAmount=@Cost*@amount--@productAmount*@Amount
end else begin
  set @totalAmount=convert(int,(@Cost*@amount)/@discount)
end


if @totalAmount > @CashBalance
 begin
	set @ret=0
	return
 end
set @cashBalance=@cashbalance-@totalAmount

update tbl_UserStatus set Cash=@cashbalance where ID=@Login

if @@error<>0
 begin
	set @ret=0
	return
 end
else
begin
set @ret=1
end

update [dbo].[tbl_CashLog] set [Return]=@ret where Account=@Login
GO

Author/Creator/Owners is = SHarkY


This is Autocash Script Query Original From me
Read This Thread :
http://forum.ragezone.com/f479/sql-query-trigger-autoreward-cashpoint-903009/

Author/Creator/Owners is = Me / Roslaw
 
Newbie Spellweaver
Joined
Jan 20, 2010
Messages
46
Reaction score
13
IvonaDP please reupload the file "SS work cashmall autocash 223" is corrupted. Thanks
 
Junior Spellweaver
Joined
Mar 3, 2013
Messages
168
Reaction score
48
picture 1 current cash

picture 2 after 1 minute online get 250 cash


for normal account , to make the autocash work must use register page that include active premium service and bonus cash
 
Junior Spellweaver
Joined
Jul 11, 2009
Messages
180
Reaction score
23
btw the billcruxrf.bak file or billing.bak i forget which one is inside these files doesnt work with server 2008 does that sql query do the same thing as that .bak file did?
 
Junior Spellweaver
Joined
Mar 3, 2013
Messages
168
Reaction score
48
i use this sql SQLFULL_X64_ENU.EXE
i dont have sql 2008r2 , dont know if can / cant be restored at sql 2008r2 ,
later i ask my friend that has sql 2008r2 to try restore it.
my friend use sql same like what sql i am use can restore it , and when try the autocash its work
 
Junior Spellweaver
Joined
Jul 11, 2009
Messages
180
Reaction score
23
yes this database billcrux is only for sql server 2005 it wont work on 2008 r2
 
Newbie Spellweaver
Joined
Aug 13, 2013
Messages
6
Reaction score
0
my database is BillCruxRF not BILLING. So, when I execute it error happens:

what should I do? THANKS!
 
Junior Spellweaver
Joined
Jul 11, 2009
Messages
180
Reaction score
23
Bellato Strikes Back................... its the version of rf called 223
 
Initiate Mage
Joined
Mar 27, 2016
Messages
4
Reaction score
0
someone can reupload this ?
 
Back
Top