World Servers
¿Quieres reaccionar a este mensaje? Regístrate en el foro con unos pocos clics o inicia sesión para continuar.

[Server] Problemas con AntidupSQL

+2
ѕσηαтα~αя¢тι¢α
WassingtoN
6 participantes

Ir abajo

Resuelto [Server] Problemas con AntidupSQL

Mensaje por WassingtoN 2011-01-20, 05:59

Dupeo un item y no me banea!! osea q no me anda el antidup del SQL en la vercion 99b alguien sabe por fava respuesta!!
WassingtoN
WassingtoN
Level |V
Level |V

Usuario Activo Masculino Argentina No tienes ningun Trofeo Medalla de Plata : Nivel 2º No tienes ninguna Advertencia
~ New User ~
Mensajes : 439
Cash Point : 26929
Prestigio : -17
Registro : 10/11/2010
Localización : San Luis
Edad : 32

http://mu-afrodita.mi-foro.es/

Volver arriba Ir abajo

Resuelto Re: [Server] Problemas con AntidupSQL

Mensaje por ѕσηαтα~αя¢тι¢α 2011-01-20, 11:33

Tema Movido.-

Fijate donde posteas, esto es Utilidades Mu no Ayuda y Creacion.
ѕσηαтα~αя¢тι¢α
ѕσηαтα~αя¢тι¢α
Baneado
Baneado

Usuario Registrado Masculino Argentina No tienes ningun Trofeo No tienes ningun Premio Usuario Baneado
~cansado de tanta mierda~
Mensajes : 1198
Cash Point : 31031
Prestigio : 1828
Registro : 09/11/2010
Localización : Bs As
Edad : 32

Volver arriba Ir abajo

Resuelto Re: [Server] Problemas con AntidupSQL

Mensaje por PYRO 2011-01-20, 12:00

WassingtoN escribió:Dupeo un item y no me banea!! osea q no me anda el antidup del SQL en la vercion 99b alguien sabe por fava respuesta!!

La consulta la tenes que agregar cuando tengas gente en el server...

Ademas cuando sos gm en la cuenta no te banea... decile a alguien q no use tu pc y proba

Sino busca otro codgio, algunos aveces estan mal!

Saludos!
PYRO
PYRO
Level |
Level |

Usuario Registrado Masculino Argentina No tienes ningun Trofeo No tienes ningun Premio No tienes ninguna Advertencia
~ New User ~
Mensajes : 94
Cash Point : 24952
Prestigio : 26
Registro : 18/11/2010
Localización : Argentina
Edad : 32

Volver arriba Ir abajo

Resuelto Re: [Server] Problemas con AntidupSQL

Mensaje por WassingtoN 2011-01-20, 23:05

A ok Gracias me pasas el codigo!!??
WassingtoN
WassingtoN
Level |V
Level |V

Usuario Activo Masculino Argentina No tienes ningun Trofeo Medalla de Plata : Nivel 2º No tienes ninguna Advertencia
~ New User ~
Mensajes : 439
Cash Point : 26929
Prestigio : -17
Registro : 10/11/2010
Localización : San Luis
Edad : 32

http://mu-afrodita.mi-foro.es/

Volver arriba Ir abajo

Resuelto Re: [Server] Problemas con AntidupSQL

Mensaje por Wiz Khalifa 2011-01-21, 01:37

Codigos Auto Ban,

1-
Vas a Inicio/Programas/Microsof Sql Server/Analizador de consultas
2- Se abrira un recuado que dice conectar a sql server, ahi tiene que salir tine que salir el nombre dle servidor, sino sale lo agregas, colocas aceptar
3- Copias este texto

use muonline
if exists(select * from dbo.sysobjects where type='p' and name='WZ_GetItemSerial')
drop procedure WZ_GetItemSerial
go
CREATE procedure WZ_GetItemSerial
as
BEGIN
DECLARE @ItemSerial int
set nocount on
begin transaction
update GameServerInfo set @ItemSerial = ItemCount = (case when ItemCount < 0x7effffff then ItemCount+1
else 1
end )
if(@@error <> 0)
begin
rollback transaction
select-1
end
else
begin
commit transaction
select @ItemSerial
end
END

GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[trg_CheckSameID]') and OBJECTPROPERTY(id, N'IsTrigger') = 1)
drop trigger [dbo].[trg_CheckSameID]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[AllItemsLog]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[AllItemsLog]
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[CopyLog]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[CopyLog]
GO

CREATE TABLE [dbo].[AllItemsLog] (
[items_id] [int] IDENTITY (1, 1) NOT NULL ,
[items_type] [binary] (1) NOT NULL ,
[items_serial] [binary] (4) NOT NULL ,
[items_acid] [varchar] (10) COLLATE Chinese_PRC_CI_AS NOT NULL
) ON [PRIMARY]
GO

CREATE TABLE [dbo].[CopyLog] (
[copy_id] [int] IDENTITY (1, 1) NOT NULL ,
[copy_acid] [varchar] (10) COLLATE Chinese_PRC_CI_AS NOT NULL ,
[copy_whdata] [binary] (1200) NOT NULL ,
[copy_date] [datetime] NOT NULL
) ON [PRIMARY]
GO

ALTER TABLE [dbo].[AllItemsLog] ADD
CONSTRAINT [DF_CT_ITEM_item] DEFAULT (0) FOR [items_type],
CONSTRAINT [DF_CT_ITEM_itemid] DEFAULT (0) FOR [items_serial],
CONSTRAINT [DF_CT_ITEM_itemrole] DEFAULT ('') FOR [items_acid]
GO

CREATE INDEX [IX_CT_ITEM] ON [dbo].[AllItemsLog]([items_type], [items_serial]) ON [PRIMARY]
GO

ALTER TABLE [dbo].[CopyLog] ADD
CONSTRAINT [DF_CopyLog_copy_date] DEFAULT (getdate()) FOR [copy_date]
GO


SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO

CREATE TRIGGER [dbo].[trg_CheckSameID] ON [dbo].[character]
FOR UPDATE
AS
BEGIN
IF UPDATE(inventory)
BEGIN
SET NOCOUNT ON
DECLARE
@wh_acid varchar(10),
@wh_data binary(1200),
@wh_type binary(1),
@wh_serial binary(4),

@cr_user varchar(10),
@cr_acid varchar(10),
@cr_data binary(760),
@cr_type binary(1),
@cr_serial binary(4),

@al_acid varchar(10),
@j int,
@k int,
@find bit

SELECT @cr_acid=i.accountid,
@cr_data=i.inventory
FROM inserted i

SET @j=0
SET @find=0

WHILE @j<76 AND @cr_data IS NOT NULL
BEGIN
SET @cr_type=SUBSTRING(@cr_data,@j*10+1,1)
SET @cr_serial=SUBSTRING(@cr_data,@j*10+4,4)
IF @cr_type<>0xFF AND @cr_serial<>0x00000000
BEGIN
SELECT @al_acid=items_acid FROM allitemslog WHERE items_type=@cr_type AND items_serial=@cr_serial


IF @al_acid IS NULL
INSERT INTO allitemslog (items_type,items_serial,items_acid) VALUES (@cr_type,@cr_serial,@cr_acid)
ELSE
BEGIN
UPDATE allitemslog SET items_acid=@cr_acid WHERE items_type=@cr_type AND items_serial=@cr_serial


SELECT @wh_data=items FROM warehouse WHERE accountid=@al_acid

SET @k=0
WHILE @k<120 AND @wh_data IS NOT NULL
BEGIN
SET @wh_type=SUBSTRING(@wh_data,@k*10+1,1)
SET @wh_serial=SUBSTRING(@wh_data,@k*10+4,4)
IF @wh_type=@cr_type AND @wh_serial=@cr_serial
SET @find=1
SET @k=@k+1
END
END
END
SET @j=@j+1
END
IF @find=1
BEGIN
INSERT INTO copylog (copy_whdata,copy_acid,copy_date) VALUES (@wh_data,@al_acid,getdate())
-- this is wer u can add more punishment like ban or lock characters
UPDATE Character SET CtlCode=1 WHERE accountid=@al_acid
END
SET NOCOUNT OFF
END
END
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO
DECLARE @al_acid char(50)
set @al_acid = 'ASUS'
UPDATE Character SET CtlCode=1 WHERE accountid=@al_acid
go
select * from AllItemsLog
select * from CopyLog

4- Precionas F5 y ctrl N
5- Se abrira otro recuadro, en este recuadro copias esto otro:


use MuOnline
select * from AllItemsLog
select * from CopyLog

6- Presionas F5 y crtl N
7- Se abrira otro recuadro y copias esto otro:

use MuOnline
select * from CopyLog

8- Presionas F5 y estas listo, luego cierra las ventatas y guarda los cambios, te guardara unos block de notas, guardalos en donde tu quieras
Wiz Khalifa
Wiz Khalifa
Moderador Global
Moderador Global

Moderador Masculino Argentina Trofeo de Bronce Estrella de Bronce : Nivel 10º No tienes ninguna Advertencia
Juan Francisco Maurizzi
Mensajes : 2511
Cash Point : 20970
Prestigio : 406
Registro : 13/11/2010
Localización : Buenos Aires
Edad : 29

http://www.world-servers.org/

Volver arriba Ir abajo

Resuelto Re: [Server] Problemas con AntidupSQL

Mensaje por WassingtoN 2011-01-21, 03:15

MuChas gracias
WassingtoN
WassingtoN
Level |V
Level |V

Usuario Activo Masculino Argentina No tienes ningun Trofeo Medalla de Plata : Nivel 2º No tienes ninguna Advertencia
~ New User ~
Mensajes : 439
Cash Point : 26929
Prestigio : -17
Registro : 10/11/2010
Localización : San Luis
Edad : 32

http://mu-afrodita.mi-foro.es/

Volver arriba Ir abajo

Resuelto Re: [Server] Problemas con AntidupSQL

Mensaje por FFaaBByy 2011-01-21, 12:33

recomiendo muy seguro de lo q digo ,

usar esta consulta cn un subserver.

ya q despues de un determinado tiempo , la consulta falla

y banea a otro pjs sin motivo alguno .

saludos.
FFaaBByy
FFaaBByy
Level V
Level V

Usuario Registrado Masculino Argentina Trofeo de Plata Estrella de Oro : Nivel 12º No tienes ninguna Advertencia
Mensajes : 981
Cash Point : 25500
Prestigio : 86
Registro : 09/11/2010
Localización : Tenessee , Estados Unidos
Edad : 33

http://www.mtgamming.com/

Volver arriba Ir abajo

Resuelto Re: [Server] Problemas con AntidupSQL

Mensaje por Pain 2011-02-02, 00:45

La Verdad q FFaaBByy Tiene Razon es mejor Usarlo teniendo un SubServer ya q luego de un determinado tiempo la consulta falla y banea a otros pjs sin que ellos dupearan.. Ami me paso una ves lo qte recomiendo es q uses el dupecheck y programarlo cada 5 Minutos para que escanee Saludos Pain
Pain
Pain
Level ||
Level ||

Usuario Registrado Masculino Argentina No tienes ningun Trofeo No tienes ningun Premio No tienes ninguna Advertencia
Bray Lujan
Mensajes : 108
Cash Point : 24581
Prestigio : -5
Registro : 02/02/2011
Localización : Buenos Aires La Plata
Edad : 30

Volver arriba Ir abajo

Resuelto Re: [Server] Problemas con AntidupSQL

Mensaje por PYRO 2011-02-02, 12:33

A mi nunca me paso q "fallara" sino q entregaban items dupeados a otros pj y ahi los banea... desp el codigo sirve muy bien
PYRO
PYRO
Level |
Level |

Usuario Registrado Masculino Argentina No tienes ningun Trofeo No tienes ningun Premio No tienes ninguna Advertencia
~ New User ~
Mensajes : 94
Cash Point : 24952
Prestigio : 26
Registro : 18/11/2010
Localización : Argentina
Edad : 32

Volver arriba Ir abajo

Resuelto Re: [Server] Problemas con AntidupSQL

Mensaje por Contenido patrocinado


Contenido patrocinado


Volver arriba Ir abajo

Volver arriba

- Temas similares

 
Permisos de este foro:
No puedes responder a temas en este foro.