Cok Mail Geldi Bu Konuda Ufak Bişe Buldum Editleyip Paylaşıyım Dedim Buyrun..
Kod:
--NecromanceR
CREATE PROCEDURE [dbo].[EXPFIX]
@AccountID varchar(21)
AS
DECLARE @char1 varchar(21), @char2 varchar(21), @char3 varchar(21), @exp1 int, @exp2 int, @exp3 int, @Level1 tinyint, @Level2 tinyint, @Level3 tinyint
select @char1 = strcharid1 from account_char where straccountid = @accountid
select @char2 = strcharid2 from account_char where straccountid = @accountid
select @char3 = strcharid3 from account_char where straccountid = @accountid
select @exp1 = exp from userdata where struserid = @char1
select @exp2 = exp from userdata where struserid = @char2
select @exp3 = exp from userdata where struserid = @char3
select @level1 = [Level] from USERDATA where struserid = @char1
select @level2 = [Level] from USERDATA where struserid = @char2
select @level3 = [Level] from USERDATA where struserid = @char3
if @level1 = 70
if @exp1 > 1
begin
update userdata set Exp = 1 where struserid = @char1
update userdata set [Level] = 70 where struserid = @char1
end
if @level2 = 70
if @exp2 > 1
begin
update userdata set Exp = 1 where struserid = @char2
update userdata set [Level] = 70 where struserid = @char2
end
if @level3 = 70
if @exp3 > 1
begin
update userdata set Exp = 1 where struserid = @char3
update userdata set [Level] = 70 where struserid = @char3
end
if @level1 = 71
if @exp1 > 1
begin
Update userdata set level = 70, strskill = 'z' , dex = 5, strong = 5, sta = 5, cha = 5, intel = 5 where struserid = @char1
update userdata set Exp = 1 where struserid = @char1
end
if @level2 = 71
if @exp2 > 1
begin
Update userdata set level = 70, strskill = 'z' , dex = 5, strong = 5, sta = 5, cha = 5, intel = 5 where struserid = @char2
update userdata set Exp = 1 where struserid = @char2
end
if @level3 = 71
if @exp3 > 1
begin
Update userdata set level = 70, strskill = 'z' , dex = 5, strong = 5, sta = 5, cha = 5, intel = 5 where struserid = @char3
update userdata set Exp = 1 where struserid = @char3
end
Bunuda Load_User_Data Da Oto Masterın Altına Eklioruz.. İyi Günlerde Kullanın..
Kod:
EXEC EXPFIX @AccountID
Kod:
--NecromanceR
CREATE PROCEDURE [dbo].[EXPFIX]
@AccountID varchar(21)
AS
DECLARE @char1 varchar(21), @char2 varchar(21), @char3 varchar(21), @exp1 int, @exp2 int, @exp3 int, @Level1 tinyint, @Level2 tinyint, @Level3 tinyint
select @char1 = strcharid1 from account_char where straccountid = @accountid
select @char2 = strcharid2 from account_char where straccountid = @accountid
select @char3 = strcharid3 from account_char where straccountid = @accountid
select @exp1 = exp from userdata where struserid = @char1
select @exp2 = exp from userdata where struserid = @char2
select @exp3 = exp from userdata where struserid = @char3
select @level1 = [Level] from USERDATA where struserid = @char1
select @level2 = [Level] from USERDATA where struserid = @char2
select @level3 = [Level] from USERDATA where struserid = @char3
if @level1 = 70
if @exp1 > 1
begin
update userdata set Exp = 1 where struserid = @char1
update userdata set [Level] = 70 where struserid = @char1
end
if @level2 = 70
if @exp2 > 1
begin
update userdata set Exp = 1 where struserid = @char2
update userdata set [Level] = 70 where struserid = @char2
end
if @level3 = 70
if @exp3 > 1
begin
update userdata set Exp = 1 where struserid = @char3
update userdata set [Level] = 70 where struserid = @char3
end
if @level1 = 71
if @exp1 > 1
begin
Update userdata set level = 70, strskill = 'z' , dex = 5, strong = 5, sta = 5, cha = 5, intel = 5 where struserid = @char1
update userdata set Exp = 1 where struserid = @char1
end
if @level2 = 71
if @exp2 > 1
begin
Update userdata set level = 70, strskill = 'z' , dex = 5, strong = 5, sta = 5, cha = 5, intel = 5 where struserid = @char2
update userdata set Exp = 1 where struserid = @char2
end
if @level3 = 71
if @exp3 > 1
begin
Update userdata set level = 70, strskill = 'z' , dex = 5, strong = 5, sta = 5, cha = 5, intel = 5 where struserid = @char3
update userdata set Exp = 1 where struserid = @char3
end
Bunuda Load_User_Data Da Oto Masterın Altına Eklioruz.. İyi Günlerde Kullanın..
Kod:
EXEC EXPFIX @AccountID