[CLUB]
--Ask_CanHeTeleport PROSEDÜRÜNÜN ALTINA AS ' TAN SONRA EKLENECEK
-- Teleport olamaz için alttaki örnekteki gibi verilecek uyarı mesajı
-- Teleport olabilir için herhangi bir select yok
-- select a error message like example if you want prevent teleport
-- do not select anything if you allow teleport
if (@CharID = 0)
select 'Sorry, you can''t teleport.','Üzgünüm, teleport olamazsın.'
if( @Target_RefTeleport=164 and (select EventStatus from EventBot.._EventService where EventNo=32)=0)
begin
declare @saat time =(SELECT CONVERT(VARCHAR, getdate(), 108));
if (@saat not between '23:00' and '23:59')
select 'Bu alana sadece etkinlik saatlerinde giriş yapabilirsin.'
end
if (@CharID = 0)
select 'Sorry, you can''t teleport.','Üzgünüm, teleport olamazsın.'
if( @Target_RefTeleport=136 and (select EventStatus from EventBot.._EventService where EventNo=31)=0)
begin
--declare @saat time =(SELECT CONVERT(VARCHAR, getdate(), 108));
--if (@saat not between '23:00' and '23:59')
select 'Bu alana sadece etkinlik saatlerinde giriş yapabilirsin.'
end
end
---NOT BU PROSEDÜRÜ EVENTİNİZE İŞLETEBİLİRSİNİZ MAXİ KULLANIYORSANIZ ZATEN GEREK YOK
[/CLUB]
--Ask_CanHeTeleport PROSEDÜRÜNÜN ALTINA AS ' TAN SONRA EKLENECEK
-- Teleport olamaz için alttaki örnekteki gibi verilecek uyarı mesajı
-- Teleport olabilir için herhangi bir select yok
-- select a error message like example if you want prevent teleport
-- do not select anything if you allow teleport
if (@CharID = 0)
select 'Sorry, you can''t teleport.','Üzgünüm, teleport olamazsın.'
if( @Target_RefTeleport=164 and (select EventStatus from EventBot.._EventService where EventNo=32)=0)
begin
declare @saat time =(SELECT CONVERT(VARCHAR, getdate(), 108));
if (@saat not between '23:00' and '23:59')
select 'Bu alana sadece etkinlik saatlerinde giriş yapabilirsin.'
end
if (@CharID = 0)
select 'Sorry, you can''t teleport.','Üzgünüm, teleport olamazsın.'
if( @Target_RefTeleport=136 and (select EventStatus from EventBot.._EventService where EventNo=31)=0)
begin
--declare @saat time =(SELECT CONVERT(VARCHAR, getdate(), 108));
--if (@saat not between '23:00' and '23:59')
select 'Bu alana sadece etkinlik saatlerinde giriş yapabilirsin.'
end
end
---NOT BU PROSEDÜRÜ EVENTİNİZE İŞLETEBİLİRSİNİZ MAXİ KULLANIYORSANIZ ZATEN GEREK YOK
[/CLUB]