Register for your free account! | Forgot your password?

You last visited: Today at 18:45

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Query] Enable - Disable Safezone

Discussion on [Query] Enable - Disable Safezone within the SRO PServer Guides & Releases forum part of the SRO Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2012
Posts: 137
Received Thanks: 110
[Query] Enable - Disable Safezone

Hello Epvp Members

I Just Come To Make Disable And Enable The Safezone Easier For the newibes

This Is A Simple Query Coded By Me

Code:
Use [SRO_VT_SHARD]
Go

Declare @charname Varchar(max),
@issafezone varchar(max),
@legendknight1 int,
@regionid int,
@regionname varchar(max),
@zonedes varchar(max),
@owner1 varchar(max),
@owner2 varchar(max),
@owner3 varchar(max),
@owner4 varchar(max),
@owner5 varchar(max)

set @charname = 'LegendKnight'    ----- Write here charname which at the region
set @issafezone = 'no'   ----- Write 'Yes' If You Want It A Safezone 'No' If You Want

If @issafezone = 'Yes'
begin
set @legendknight1 = 0
set @zonedes ='Safe Zone'
end
If @issafezone = 'No'
set @zonedes ='Battle Field'
begin
set @legendknight1 = 1
end
If @issafezone not in ('Yes','No')
begin
Print 'Error Set No Or Yes At @issafezone'
end
If Not Exists (select * From _char where charname16 = @charname)
begin
Print 'Error There is no charname with this name'
end
If Exists (select * From _char where charname16 = @charname) and @issafezone in ('Yes','No')
begin
set @regionid = ( select LatestRegion from _char where charname16 = @charname ) set @regionname = ( select ContinentName from _RefRegion where wRegionID=@regionid) set @owner1 = 'Le'set @owner2 = 'ge' set @owner4 = 'Knig' set @owner3 = 'nd' set @owner5 = 'ht'
update _RefRegion set IsBattleField=@legendknight1 where wRegionID=@regionid
print 'Region ['+@regionname+ '] Is Now '+@zonedes+' .' print 'Just Restart Your Sr_Gameserver ... Credit Goes To '+@owner1+@owner2+@owner3+@owner4+@owner5+' .'
end
Just Edit The Charname And
Type Yes To Make The Region Which the Char In =Safezone
Or No To Make It BattleZone

Thx.
geomangy is offline  
Thanks
1 User
Old 09/02/2014, 15:38   #2
 
KingDollar's Avatar
 
elite*gold: 857
Join Date: Dec 2013
Posts: 857
Received Thanks: 679
why to
set @Legendknight1 = 0

you can use case system example
set @Issafezone = (select 'numberic' = case when @Issafezone = 'yes' then '0' when @Issafezone = ' no' then '1' end)

and btw it's released before you just edit the query
and you have patched edit with a noob edit (facepalm)

If @issafezone = 'No'
set @zonedes ='Battle Field'
begin
set @legendknight1 = 1
end
btw you have to get @zonedes under the begin
begin
set @legendknight1 = 1
set @zonedes ='Battle Field'
end
KingDollar is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[Release] How To Active Or Disable SafeZone
03/01/2024 - SRO PServer Guides & Releases - 7 Replies
For Begnniers :P Just Query :D To Active Update _RefRegion Set IsBattleField = 0 Where ContinentName = 'Ur Region Name' /* By King$ */
How Can I Disable or enable premium ?
07/09/2014 - SRO Private Server - 4 Replies
How Can I Disable or enable premium ? Vsro Files
Disable/Enable gameguard w/o Cabal Crashes
05/07/2012 - Cabal Hacks, Bots, Cheats, Exploits & Macros - 2 Replies
Hi guys im gamer of cabal ph. See the pic http://img98.imageshack.us/img98/5678/123dpn.jpg Gameguard manual? WTF? Disable it? no problem :rolleyes: http://img841.imageshack.us/img841/236/1234aya.jp g;)
Disable or enable the pake?
09/15/2011 - Mabinogi - 7 Replies
Is there any hotkey to enable or disable the pake?? Thanks!



All times are GMT +2. The time now is 18:45.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.