|
You last visited: Today at 15:43
Advertisement
Add silk with history log and more
Discussion on Add silk with history log and more within the SRO PServer Guides & Releases forum part of the SRO Private Server category.
11/12/2012, 23:23
|
#1
|
elite*gold: 0
Join Date: Nov 2012
Posts: 6
Received Thanks: 1
|
Add silk with history log and more
Hello, Everyone
I created new tool to help you to find silk history by user name and calculate how many silk user charged.
there is 2 options more for change hwn level and give character gold or edit the gold value.
Execute the following querys " query credits for Chernobyl"
First query
PHP Code:
USE [SRO_VT_ACCOUNT]
GO
/****** Object: Table [dbo].[AddSilkLog] Script Date: 01/28/2012 00:56:24 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[AddSilkLog](
[username] [nvarchar](max) NULL,
[silk_charged] [bigint] NULL,
[time] [ntext] NULL,
[status] [nvarchar](max) NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
second query
PHP Code:
USE [SRO_VT_ACCOUNT]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[AddSilk]
@USERNAME varchar(32),
@SILKS INT
AS
BEGIN
SET NOCOUNT ON;
DECLARE @JID INT
DECLARE @EXISTS INT
DECLARE @ACCOUNT_EXISTS INT
DECLARE @SILK_ADD INT
DECLARE @TIME VARCHAR(100) = (SELECT GETDATE())
SET @SILK_ADD = @SILKS
SET @JID = (select JID from TB_User where StrUserID=@USERNAME)
SET @EXISTS = (select COUNT(*) from SK_Silk where JID=@JID)
SET @ACCOUNT_EXISTS = (select count(JID) from TB_User where StrUserID=@USERNAME)
IF @ACCOUNT_EXISTS < 1
BEGIN
insert into AddSilkLog(username,silk_charged,time,status) values(@USERNAME,@SILK_ADD,@TIME,'FAILED [invalid uname]')
END
ELSE
BEGIN -- if account exists [start]
if @EXISTS > 0
BEGIN
update SK_Silk set silk_own = (silk_own + @SILK_ADD) where JID=@JID
insert into AddSilkLog(username,silk_charged,time,status) values(@USERNAME,@SILK_ADD,@TIME,'CHARGED')
END
ELSE
BEGIN
insert into SK_Silk(JID,silk_own,silk_gift,silk_point) values(@JID,@SILK_ADD,0,0)
insert into AddSilkLog(username,silk_charged,time,status) values(@USERNAME,@SILK_ADD,@TIME,'CHARGED')
END
END
END -- if account exists [end]
Thank me 
|
|
|
11/13/2012, 13:38
|
#2
|
Chat Killer In Duty
elite*gold: 5
Join Date: May 2008
Posts: 16,390
Received Thanks: 6,507
|
#approved
|
|
|
11/13/2012, 18:16
|
#3
|
elite*gold: 0
Join Date: Oct 2012
Posts: 242
Received Thanks: 24
|
thanks will test it now.
|
|
|
11/13/2012, 20:52
|
#4
|
elite*gold: 0
Join Date: Aug 2011
Posts: 121
Received Thanks: 26
|
great program
Quote:
Thanks me
|
-- I will
|
|
|
11/15/2012, 17:37
|
#5
|
elite*gold: 41
Join Date: Oct 2012
Posts: 2,216
Received Thanks: 1,196
|
Good Jop
|
|
|
11/22/2012, 20:12
|
#6
|
elite*gold: 0
Join Date: Nov 2012
Posts: 6
Received Thanks: 1
|
Quote:
Originally Posted by Crue*
Good Jop
|
Thank you
|
|
|
 |
Similar Threads
|
[Lilith-Sro] New Server - CAP 110 - SKILL 110 - NewItems silk - Events silk !
04/03/2014 - SRO PServer Advertising - 9 Replies
http://img515.imageshack.us/img515/8063/6520127025 3pm.png
http://sphotos-e.ak.fbcdn.net/hphotos-ak-ash4/s48 0x480/408599_385284234876346_1273330779_n.jpg
~ Online since the 28th sete of 2012 ~
http://b1201.hizliresim.com/t/q/1zxuy.png
FaceBook Group - Click Here
Site Here - Click Here
|
FunSro High Rates!!! Free Silk(500k silk)&alot of events
12/30/2011 - SRO PServer Advertising - 320 Replies
New Update : http://www.elitepvpers.com/forum/private-sro-adver tising/1631369-funsro-pvp-server-d12-nova-npc-50k- silk-free.html#post14578612
|
[WTS] 100 Premium Silk on PACIFIC [WantToHave] Gold or Dress or Silk Items
11/02/2011 - Silkroad Online Trading - 1 Replies
As the title say i sell 100 Premium Silk
make me some offers for that ..
you can also buy only 50 silk or 60 or 79 silk ..
|
[History + Release] History of CO-P Servers + Source release
04/03/2011 - CO2 Private Server - 6 Replies
For those of you, who werent there when everything started...
A small history of Co2 Private Servers, Source Codes and Coding.
Hope you will enjoy this, and feel free to contact me to add or correct information.
UCCO
It was the first private server ever.
Launched 2005 or something.
Coded in C#
|
[History + Release] History of CO-P Servers + Source release
03/28/2010 - CO2 PServer Guides & Releases - 32 Replies
Hello i was working on the old,old,very old, so damn mother f***ing old UCCO Source,KylinCo,XeroCO,CoEmu,Co2.1 sources all on patch 4531 and sorted out the Client Close, well atleast i made it happen less times...
About the source i release:
Based on UCCO (Undercover Conquer Online - members einhornchen, ~Unknown~, Brandon
)
It was the first private server ever.
Launched 2004 or something.
Coded in C#
|
All times are GMT +1. The time now is 15:44.
|
|