Extra Info:
- I also have a fix for PRISON PUNISHMENT ;) if anyone wants it, i will pick people that post in this thread to help me test it out for bugs etc!
Introduction:
So i wanted to test the smc ban feature, and it gave me db error, so i fixed the problem and now i will release it. This is a really nice feature, i dont think anyone else has it fixed. Everyone was using Cherno's EvaTools to ban people, well this does even more things, it can chat ban people, and it can trade ban people! Its really sweet feature.
Instructions:
Execute the following stored procedure, then thank me ;)
Screen Shot

Stored Procedure:
PHP Code:
USE [SRO_VT_ACCOUNT]
GO
/****** Fixed by Jangan @ RageZone ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
--
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
ALTER procedure [dbo].[_RegisterPunishment]
@UserJID int,
@Type tinyint,
@Executor varchar(128),
@Shard smallint,
@CharName varchar(16),
@CharInfo varchar(256),
@PosInfo varchar(64),
@Guide varchar(512),
@Description varchar(1024),
@RaiseTime datetime,
@BlockStartTime datetime,
@BlockEndTime datetime,
@PunishTime datetime
as
-- Author: Jangan @ RageZone
if( exists( select UserJID from _BlockedUser with(NOLOCK) where UserJID = @UserJID and Type = @Type))
begin
select -1
RETURN
end
declare @NewSerialNo int
set @NewSerialNo = 0
insert _Punishment values( @UserJID, @Type, @Executor, @Shard, @CharName, @CharInfo,
@PosInfo, @Guide, @Description, @RaiseTime, @BlockStartTime, @BlockEndTime, @PunishTime, 0)
set @NewSerialNo = @@identity
if( @@rowcount = 0 or @@error <> 0 or @NewSerialNo = 0 or @NewSerialNo is null)
begin
select -2
return
end
declare @UserID varchar(128)
set @UserID = (SELECT StrUserID FROM TB_User where JID = @UserJID)
if( @@rowcount = 0 or @@error <> 0 or @UserID is null)
begin
select - 2
return
end
insert _BlockedUser values( @UserJID, @UserID, @Type, @NewSerialNo, @BlockStartTime, @BlockEndTime)
select 0