Hello Rz Members
I Just Come To Make Disable And Enable The Safezone Easier For the newibes
This Is A Simple Query Coded By Me
Just Edit The Charname AndCode: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
Type Yes To Make The Region Which the Char In =Safezone
Or No To Make It BattleZone
Thx.



Reply With Quote![[Query] Enable - Disable Safezone](http://ragezone.com/hyper728.png)

