Register for your free account! | Forgot your password?

You last visited: Today at 12:42

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

Advertisement



Little issue at FGW

Discussion on Little issue at FGW within the SRO Private Server forum part of the Silkroad Online category.

Closed Thread
 
Old   #1
 
Hamza FiGo's Avatar
 
elite*gold: 150
Join Date: Sep 2009
Posts: 978
Received Thanks: 251
Little issue at FGW

Hello guys. Little help if u please

I add a new 3x scrolls with procedures and worked 100%. But when i try to join a FGW i got DC.

Then i restarted the server and back my original procedures it works fine.

Can some one tell me whats wrong with this procedures!

Code:
USE [SRO_VT_SHARD]
GO
/****** Object:  StoredProcedure [dbo].[_AddTimedJob]    Script Date: 19/10/2014 09:29:55 م ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

ALTER   procedure [dbo].[_AddTimedJob]
@CharID            int,
@Category        tinyint,
@JobID            int,
@TimeToKeep    int,
@Data1            int,
@Data2            int,
--##begin due to develop composite item
@Data3            int,
@Data4            int,
@Data5            int,
@Data6            int,
@Data7            int,
@Data8            int,
@Serial64        bigint,
@JID            int
--##end due to develop composite item
as
       if(@JobID = '45000')
        BEGIN 
declare @CharName16 varchar(64) 
         Select @CharName16=CharName16 from _Char where CharID = @CharID 
         Update _Char Set CharName16 = '@'+ @CharName16 Where CharID = @CharID 
        END  
    if(@JobID = '45001')
        begin 
            declare @Strength int 
            declare @Intellect int 
            declare @MaxLevel int 
            declare @RemainStatPoint int 
            select @MaxLevel = MaxLevel from _Char where CharID = @CharID 
            set @RemainStatPoint = (@MaxLevel*3)-3 
            set @MaxLevel = @MaxLevel+19 
            UPDATE _Char SET Strength=@MaxLevel, Intellect=@MaxLevel, RemainStatPoint=@RemainStatPoint WHERE CharID=@CharID 
        end  
if(@JobID	=	'34005')
begin

Update	_Char	Set	DailyPK	=	0	Where	CharID	=	@CharID
Update	_Char	Set	TotalPK	=	0	Where	CharID	=	@CharID
Update	_Char	Set	PKPenaltyPoint	=	0	Where	CharID	=	@CharID
end
    if(@JobID= '55000')
		begin 
			declare @TotalSP int 
			declare @TotalSPMastery int 
			SELECT @TotalSP = SUM(_RefSkill.ReqLearn_SP) FROM _RefSkill, _CharSkill WHERE _RefSkill.ID=_CharSkill.SkillID AND _CharSkill.CharID=@CharID AND _RefSkill.ReqCommon_MasteryLevel1 <= '130'
			SELECT @TotalSPMastery = SUM(_RefLevel.Exp_M) FROM _CharSkillMastery, _RefLevel WHERE _RefLevel.Lvl=_CharSkillMastery.Level AND _CharSkillMastery.CharID=@CharID AND _CharSkillMastery.Level <= '130' 
			UPDATE _Char SET RemainSkillPoint=RemainSkillPoint+@TotalSP+@TotalSPMastery+200000 WHERE CharID=@CharID 
			DELETE _CharSkill FROM _RefSkill, _CharSkill WHERE _RefSkill.ID=_CharSkill.SkillID AND _CharSkill.CharID=@CharID AND _RefSkill.ReqCommon_MasteryLevel1 <= '130' AND _RefSkill.ID NOT IN (1,70,40,2,8421,9354,9355,11162,9944,8419,8420,11526,10625) 
			UPDATE _CharSkillMastery SET Level='0' WHERE CharID=@CharID AND Level <= '130' 
		end  
		if(@JobID= '34038') 
		begin 
			Update _Items Set MagParamNum = 0, MagParam1 = NULL, MagParam2 = NULL, MagParam3 = NULL, MagParam4 = NULL, MagParam5 = NULL, MagParam6 = NULL, MagParam7 = NULL, MagParam8 = NULL, MagParam9 = NULL, MagParam10 = NULL, MagParam11 = NULL, MagParam12 = NULL where ID64 in (select ItemID from _Inventoryforavatar where CharID = @CharID and Slot between 0 and 2 and ItemID>0)
		end
	
     if(@JobID= '34003') --
		begin 
		Select @CharName16=CharName16 from _Char where CharID = @CharID 
		begin
		DELETE FROM  _BindingOptionWithItem where nItemDBID IN (SELECT ItemID FROM _Inventory 
		WHERE  CharID=@CharID) and bOptType=2
		end
		end
      if(@JobID = '45010')---gift---
         begin
                    declare @tradenum  int
                    declare @gift varchar(128)
                    set @gift =('ITEM_ETC_SD_TOKEN_02')
                    SET @tradenum =(SELECT ABLECOUNT from _CharTrijobSafeTrade where CharID =@CharID )        
    if (@tradenum >=1)
    begin
select @CharName16 =CharName16  from _Char where CharID=@CharID
exec _ADD_ITEM_EXTERN @CharName16,@gift,10,1
update _CharTrijobSafeTrade set AbleCount =0 where CharID =@CharID
end
end 

if
(@JobID= '99999')
		 BEGIN 
        DECLARE @CharName Varchar (MAX) 
     Select @CharName16=CharName16 from _Char where CharID = @CharID 
      Begin
     DELETE FROM _TimedJob WHERE Data2 between  1 AND 11000 AND CharID = @CharID 

   	end
   	end


    if (not exists (select CharID from _Char with (nolock) where CharID = @CharID))  
                return -1  
            if (@TimeToKeep <= 0)  
                return -2  
            declare @NewJobID int  
            set @NewJobID = 0  

            --##JobID 1 = Guild // JobID 2 = Thief/Hunter/Trader  
            --##If you want to only have one not both, then just modify the line below!  
            if (@JobID = 1 or @JobID = 2)  
            BEGIN  
                return -1  
            END  
            ELSE  
            BEGIN  
            --##begin due to develop composite item  
            insert into _TimedJob(CharID,Category,JobID,TimeToKeep,Data1,Data2,Data3,Data4,Data5,Data6,Data7,Data8,Serial64,JID)  
            values(@CharID, @Category, @JobID, @TimeToKeep, @Data1, @Data2, @Data3, @Data4, @Data5, @Data6, @Data7, @Data8, @Serial64, @JID)  
            END  
            --##end due to develop composite item  
            set @NewJobID = @@identity  
            if (@@error <> 0 or @@rowcount = 0)  
                  
                return -3  
     return @NewJobID
Scrolls:- Remove advanced elixir - Change char name - Recall state points

Ty
Hamza FiGo is offline  
Old 10/22/2014, 16:17   #2
 
Hamza FiGo's Avatar
 
elite*gold: 150
Join Date: Sep 2009
Posts: 978
Received Thanks: 251
Ok nvm guys. FIXED
Hamza FiGo is offline  
Closed Thread


Similar Threads Similar Threads
PVP issue.
04/25/2013 - Shaiya Private Server - 0 Replies
Hello PvPers Iv been gaming in shaiya since long time now , i give my respect to evry admin running his server or has run , i love pvp but some servers as we know got a huge ammout of players wich allow only 30 on each faction to pvp wich is the prob im looking for a solution for it , so is there somehow that we can expend the ammount of Partys or slots in the Raid for an example of 100 players max or what ever the number is ? If it is possible , please share ur information with us , and if...
Little issue
10/13/2011 - Dekaron Private Server - 4 Replies
Ladies and Gentlemen, i have a little and noob Problem. I Downloaded the Aloken server files with the Dekaronserver.exe, Dekaron.exe and the character.bak (ItsNobody database). I placed the dekaronserver.exe in the appropriate folder inside the virtual machine. I placed the dekaron.exe in the appropriate folder inside the A9 client. What i should do with the character.bak? i know it is something to do into databese, but i really dont know how i should start. Can someone tell me...
SMC issue..
10/04/2011 - SRO Private Server - 0 Replies
http://imageshack.us/photo/my-images/849/captureds mc.png/ how do i make my SR_ShardManager and SR_GameServer work?
[HELP]Plz Help Me Bug Issue
09/11/2011 - General Gaming Discussion - 2 Replies
Can anyone plz help me cause when i play ingame the game go all white like this
FPS Issue!
06/29/2010 - General Gaming Discussion - 17 Replies
On hero I only have 10 FPS However, My computer can run MW2 on 60 FPS ultra graphics. What is wrong?



All times are GMT +2. The time now is 12:42.


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.