[replyandthanks]
---------------------dikkat bu işlemi yaptıktan sonra maxiguard site ayarından özel teleport limitlemeye girip teleport idsini girip kaydete basın ki öldükten sonra geri işinlanamasın!
----------------------MAXİGUARD_USER PROSEDÜR KISMINDA _TeleportControl_EDIT a eklemeniz gereken prosedür
---------------------------------------
--_TeleportControl_EDIT
-- BURAYA
USE [MaxiGuard_User]
GO
/****** Object: StoredProcedure [dbo].[_TeleportControl_EDIT] Script Date: 20.04.2024 22:40:56 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[_TeleportControl_EDIT]
@CharID int,
@GateID int,
@Charname varchar(25)
AS
IF @GateID=230 AND (CAST(GETDATE() AS TIME(0)) NOT BETWEEN '20:15:00' AND '21:15:00' ) -- BU KISIMDAN İSTEDİĞİNİZ SAATDE GİRİŞ CIKISLARI AYARLAYABİLİRSİNİZ! GATEID TELEPORT ID Sİ
BEGIN
EXEC gamepvps.._MunıhC# @CharID,'TR:Job gardene sadece 20.15 de giriş yapabilirsiniz-EN:You can enter the job garden only at 20.15',1
RETURN 0
END
if @GateID = 112 and (select ItemID from SRO_VT_SHARD.._Inventory where CharID=@CharID and Slot=8) > 0
begin
EXEC gamepvps.._MunıhC# @CharID,'You cant enter this arena with Job Suit',1
RETURN 0
end
if @GateID = 112 and (select GuildID from SRO_VT_SHARD.._Char where CharID=@CharID) =0
begin
EXEC gamepvps.._MunıhC# @CharID,'Only Guild member can enter this arena.',1
RETURN 0
end
return 1;
/*
Bu prosedürü düzenleyerek bir karakterin Teleporttan geçişini kontrol edebilirsiniz.
Prosedürden 0 döndürürseniz teleport olması engellenecektir.
Prosedürden 1 döndürürseniz teleport olmasına izin verilecektir.
Döndürdüğünüz sonuca göre bir mesaj göndermeniz gerekmektedir. Filter herhangi bir mesaj görüntülemez.
@CharID = Teleport olmaya çalışan karakterin Char IDsi.
@GateID = Teleport olmaya çalıştığı Gate'in IDsi.
Bu veritabanındaki diğer prosedürlerin aksine bu prosedür her restartta orjinal haline döndürülmeyecektir. Dikkatli düzenleyiniz!
*/
/*
You may modify this procedure to have control over a character Teleporting through a gate.
By returning 0 from this procedure, teleporting will be cancelled.
By returning 1 from this procedure, teleporting will be allowed.
You have to notify the player yourself according to the action you're taking. Filter will not show any messages itself.
@CharID = The CharID of the character trying to teleport through a gate.
@JobType = The Gate ID which the character is trying to teleport through.
Unlike other Stored Procedures in this database, this stored procedure will not be restored back to default on restarts. Modify it carefully!
*/
----------------------------------------------
[/replyandthanks]
---------------------dikkat bu işlemi yaptıktan sonra maxiguard site ayarından özel teleport limitlemeye girip teleport idsini girip kaydete basın ki öldükten sonra geri işinlanamasın!
----------------------MAXİGUARD_USER PROSEDÜR KISMINDA _TeleportControl_EDIT a eklemeniz gereken prosedür
---------------------------------------
--_TeleportControl_EDIT
-- BURAYA
USE [MaxiGuard_User]
GO
/****** Object: StoredProcedure [dbo].[_TeleportControl_EDIT] Script Date: 20.04.2024 22:40:56 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[_TeleportControl_EDIT]
@CharID int,
@GateID int,
@Charname varchar(25)
AS
IF @GateID=230 AND (CAST(GETDATE() AS TIME(0)) NOT BETWEEN '20:15:00' AND '21:15:00' ) -- BU KISIMDAN İSTEDİĞİNİZ SAATDE GİRİŞ CIKISLARI AYARLAYABİLİRSİNİZ! GATEID TELEPORT ID Sİ
BEGIN
EXEC gamepvps.._MunıhC# @CharID,'TR:Job gardene sadece 20.15 de giriş yapabilirsiniz-EN:You can enter the job garden only at 20.15',1
RETURN 0
END
if @GateID = 112 and (select ItemID from SRO_VT_SHARD.._Inventory where CharID=@CharID and Slot=8) > 0
begin
EXEC gamepvps.._MunıhC# @CharID,'You cant enter this arena with Job Suit',1
RETURN 0
end
if @GateID = 112 and (select GuildID from SRO_VT_SHARD.._Char where CharID=@CharID) =0
begin
EXEC gamepvps.._MunıhC# @CharID,'Only Guild member can enter this arena.',1
RETURN 0
end
return 1;
/*
Bu prosedürü düzenleyerek bir karakterin Teleporttan geçişini kontrol edebilirsiniz.
Prosedürden 0 döndürürseniz teleport olması engellenecektir.
Prosedürden 1 döndürürseniz teleport olmasına izin verilecektir.
Döndürdüğünüz sonuca göre bir mesaj göndermeniz gerekmektedir. Filter herhangi bir mesaj görüntülemez.
@CharID = Teleport olmaya çalışan karakterin Char IDsi.
@GateID = Teleport olmaya çalıştığı Gate'in IDsi.
Bu veritabanındaki diğer prosedürlerin aksine bu prosedür her restartta orjinal haline döndürülmeyecektir. Dikkatli düzenleyiniz!
*/
/*
You may modify this procedure to have control over a character Teleporting through a gate.
By returning 0 from this procedure, teleporting will be cancelled.
By returning 1 from this procedure, teleporting will be allowed.
You have to notify the player yourself according to the action you're taking. Filter will not show any messages itself.
@CharID = The CharID of the character trying to teleport through a gate.
@JobType = The Gate ID which the character is trying to teleport through.
Unlike other Stored Procedures in this database, this stored procedure will not be restored back to default on restarts. Modify it carefully!
*/
----------------------------------------------
[/replyandthanks]