Forgotten world

09/21/2014 06:37 mtnman33#1
Hello all , ok i have 3 running servers all 3 use the same database and client and setup exactly the same and running perfectly except for 1 for some reason you can open the shipwreck rooms and as soon as you go in you get DC'ed and the game server throws up this error > "AQ Failed! Log out!! [AQType: 10]"

YES the regions are active , YES the areas are working and there has to be something wrong somewhere that is account based , i have tried everything i know to try and need some help with this one , anyone have any ideas ? oh and the game dont crash instantly so i know its not a client issue and i am pretty sure that all AQ Failed errors are Account Query based but anyways has anyone else ever had this problem or know what the cause of this error is ? thanks
09/21/2014 13:45 magicanoo#2
I guess you're using the _AddTimedJob procedure which returns -1 (Jangan's query for job/guild penalty). You can overcome this error by either using the original _AddTimedJob or if you want to disable the job/guild penalty, Use this :

Code:
USE [SRO_VT_SHARD]
GO
/****** Object:  StoredProcedure [dbo].[_AddTimedJob]    Script Date: 6/30/2013 5:05:13 AM ******/
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 (not exists (select CharID from _Char with (nolock) where CharID = @CharID))
        return -1
    if (@TimeToKeep <= 0)
        return -2
    declare @NewJobID int
    set @NewJobID = 0
    --##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 due to develop composite item
    set @NewJobID = @@identity
    if (@@error <> 0 or @@rowcount = 0)
        return -3
        
        if @Category=2 and @JobID=2
        begin
        delete from _TimedJob where ID=@NewJobID
        end
        if @Category=2 and @JobID=1
        begin
        delete from _TimedJob where ID=@NewJobID
        end
    return @NewJobID
09/21/2014 13:52 ​Exo#3
Are you sure all of them uses the same database?
09/21/2014 18:51 mtnman33#4
OMG....thank you thank you thank you magicanoo , that fixed my problem instantly i sent you thanks but wanted to say thank you in here as well you are one of the few on here that has actually helped everyone else usually only posts 1/2 a line or maybe even a 1 line smart remarks which helps no one and only frustrates people so again Thank You for your help