- Joined
- Dec 15, 2007
- Messages
- 396
- Reaction score
- 100
Procedure structure for [WZ_ACCOUNT_LOGIN_EXEC]
BannedIP Table:
(You can edit the table how you want it)
You can also change the error message on the launcher for the grade 998
RSUpdate/Updater.cpp
RSUpdate/WOLoginHelper.cpp
Code:
-- check if ip banned
declare @idccid int
SELECT
@idccid=cid
FROM BannedIP
WHERE ip=@in_IP
if (@@ROWCOUNT != 0) begin
select
3 as LoginResult,
0 as CustomerID,
998 as AccountStatus
return
end
BannedIP Table:
Code:
CREATE TABLE [dbo].[BannedIP](
[id] [int] IDENTITY(1,1) NOT NULL,
[cid] [int] NOT NULL,
[ip] [varchar](15) NOT NULL,
[reason] [varchar](max) NOT NULL,
[bannedby] [int] NOT NULL,
[date] [datetime] NOT NULL
) ON [PRIMARY]
(You can edit the table how you want it)
You can also change the error message on the launcher for the grade 998
RSUpdate/Updater.cpp
Code:
case CLoginHelper::ANS_IPBANNED:
loginErrMsg_ = "Your IP has been banned";
break;
RSUpdate/WOLoginHelper.cpp
Code:
if(AccountStatus == 998) {
loginAnswerCode = ANS_IPBANNED;
return;
}
Last edited:


