Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 16.09.2006, 22:27   #1
xerogen
Архивный участник
 
Join Date: Nov 2005
Posts: 107
Default Yet another exploit maybe?

It seems someone has found a way to crit everyone client side :/, i had some loud mouth russians on server demanding money or they will crit everyone, luckily there dumb and i got there ip and banned em.

but im sure other people will come with this, basically after awhile alot of people get a crit error across the game.

Error is:

Can't resolve package name

History: UObject: afeLoadError <- UObject: taticLoadClass <- UNetworkHandler::Tick <- Function Name=CharInfoPacket <- UGameEngine::Tick <- UpdateWorld <- MainLoop

Anyone seen this before or know a fix?
xerogen is offline  
Old 16.09.2006, 23:36   #2
DeKoth
Архивный участник
 
Join Date: Apr 2006
Posts: 236
Default

i had a similar problem. only result i could come up with was a ban =s if they proxy i really dont know what to say.
DeKoth is offline  
Old 16.09.2006, 23:51   #3
xerogen
Архивный участник
 
Join Date: Nov 2005
Posts: 107
Default

Well this only seems to happen in giran square like when u go in near statue... :/
xerogen is offline  
Old 16.09.2006, 23:58   #4
xerogen
Архивный участник
 
Join Date: Nov 2005
Posts: 107
Default

Found the fuckers doing it, but they are using proxy :/
xerogen is offline  
Old 17.09.2006, 00:07   #5
TuMBLer
Архивный участник
 
Join Date: Apr 2005
Posts: 127
Default

Its an old bug.
They create char with race > 4 and other clients got crits

it will solve the problem

Code:
ALTER PROCEDURE dbo.lin_CreateChar
(  
@char_name NVARCHAR(24),  
@account_name NVARCHAR(24),  
@account_id INT,  
@pledge_id INT,  
@builder  TINYINT,  
@gender TINYINT,  
@race  TINYINT,  
@class  TINYINT,  
@world  SMALLINT,  
@xloc  INT,  
@yloc  INT,  
@zloc  INT,  
@HP  FLOAT,  
@MP  FLOAT,  
@SP  INT,  
@Exp  INT,  
@Lev  TINYINT,  
@align  SMALLINT,  
@PK  INT,  
@Duel  INT,  
@PKPardon  INT,  
@FaceIndex   INT = 0,  
@HairShapeIndex  INT = 0,  
@HairColorIndex  INT = 0  
)  
AS  
  
SET NOCOUNT ON  
  
SET @char_name = RTRIM(@char_name)  
DECLARE @char_id int  
SET @char_id = 0  
  

IF @char_name LIKE N' '   
BEGIN  
 RAISERROR ('Character name has space : name = [%s]', 16, 1, @char_name)  
 RETURN -1  
END  
  
-- check user_prohibit   
if exists(select char_name from user_prohibit (nolock) where char_name = @char_name)  
begin  
 RAISERROR ('Character name is prohibited: name = [%s]', 16, 1, @char_name)  
 RETURN -1   
end  
  
declare @user_prohibit_word nvarchar(20)  
select top 1 @user_prohibit_word = words from user_prohibit_word (nolock) where @char_name like '%' + words + '%'
if @user_prohibit_word is not null  
begin  
 RAISERROR ('Character name has prohibited word: name = [%s], word[%s]', 16, 1, @char_name, @user_prohibit_word)  
 RETURN -1   
end  
  
-- check reserved name  
declare @reserved_name nvarchar(50)  
declare @reserved_account_id int  
select top 1 @reserved_name = char_name, @reserved_account_id = account_id from user_name_reserved (nolock) where used = 0 and char_name = @char_name  
if not @reserved_name is null  
begin  
 if not @reserved_account_id = @account_id  
 begin  
  RAISERROR ('Character name is reserved by other player: name = [%s]', 16, 1, @char_name)  
  RETURN -1  
 end  
end  
  
IF @race>4
BEGIN  
 RAISERROR ('Race overflow : = [%s]', 16, 1, @char_name)  
 RETURN -1  
END  

IF @race=0 and @class!=0 and @class!=10
BEGIN  
 RAISERROR ('Class Overflow for Human: = [%s]', 16, 1, @class)  
 RETURN -1  
END  

IF @race=1 and @class!=18 and @class!=25
BEGIN  
 RAISERROR ('Class Overflow for Elf: = [%s]', 16, 1, @class)  
 RETURN -1  
END  

IF @race=2 and @class!=31 and @class!=38
BEGIN  
 RAISERROR ('Class Overflow for DE: = [%s]', 16, 1, @class)  
 RETURN -1  
END  

IF @race=3 and @class!=44 and @class!=49
BEGIN  
 RAISERROR ('Class Overflow for Orc: = [%s]', 16, 1, @class)  
 RETURN -1  
END  

IF @race=4 and @class!=53
BEGIN  
 RAISERROR ('Class Overflow for Dwarf: = [%s]', 16, 1, @class)  
 RETURN -1  
END  

-- insert user_data  
INSERT INTO user_data   
( char_name, account_name, account_id, pledge_id, builder, gender, race, class, subjob0_class, 
world, xloc, yloc, zloc, HP, MP, max_hp, max_mp, SP, Exp, Lev, align, PK, PKpardon, duel, create_date, face_index, hair_shape_index, hair_color_index )  
VALUES  
(@char_name, @account_name, @account_id, @pledge_id, @builder, @gender, @race, @class, @class, 
@world, @xloc, @yloc, @zloc, @HP, @MP, @HP, @MP, @SP, @Exp, @Lev, @align, @PK, @Duel, @PKPardon, GETDATE(), @FaceIndex, @HairShapeIndex, @HairColorIndex)  
  
IF (@@error = 0)  
BEGIN  
 SET @char_id = @@IDENTITY  
 INSERT INTO quest (char_id) VALUES (@char_id)  
END  
  
SELECT @char_id  
  
if @char_id > 0  
begin  
 -- make user_history  
 exec lin_InsertUserHistory @char_name, @char_id, 1, @account_name, NULL  
 if not @reserved_name is null  
  update user_name_reserved set used = 1 where char_name = @reserved_name  
end
GO
TuMBLer is offline  
Old 17.09.2006, 00:12   #6
xerogen
Архивный участник
 
Join Date: Nov 2005
Posts: 107
Default

Omg tumbler thankyou so much . Do you know if this will fix it for good or it has to be applyed each time?
xerogen is offline  
Old 17.09.2006, 00:22   #7
TuMBLer
Архивный участник
 
Join Date: Apr 2005
Posts: 127
Default

this modified procedure will not allow to create buggy chars, so the problem is solved
TuMBLer is offline  
Old 17.09.2006, 00:22   #8
xerogen
Архивный участник
 
Join Date: Nov 2005
Posts: 107
Default

Sorry for all double post

Its applied to Lin2world i assume? . This is for c4 retail correct?
xerogen is offline  
Old 17.09.2006, 00:24   #9
TuMBLer
Архивный участник
 
Join Date: Apr 2005
Posts: 127
Default

yes for c4 retail, db lin2world
TuMBLer is offline  
Old 17.09.2006, 00:27   #10
xerogen
Архивный участник
 
Join Date: Nov 2005
Posts: 107
Default

Thankyou so much for help . I still have chars that are race 7 and class 54, is this correct? Or was this because it was made before patch?
xerogen is offline  
Old 17.09.2006, 00:51   #11
TuMBLer
Архивный участник
 
Join Date: Apr 2005
Posts: 127
Default

its correct, you must delete them, they have been created before you modified the procedure
TuMBLer is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 16:12.