Perfect Timed Job [Guild+Job]
This is the perfect wait time remover!
How it works:
*) When you click leave/disband guild or timed job, it will kick you from the game, because AQ player updater will return a warning.
Why its better than others out there?
*) Alot of methods were to either delete the timed job AFTER it gets added, which is a horrible idea because it will return "Brutal Query (100)" ERROR, and you want to minimize the amount of errors you get to bare minimum!
-- Run the query!
PHP Code:
USE [SRO_VT_SHARD]
GO
/******By Jangan ******/
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
--##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
Re: [TuT+Release] Perfect Timed Job [Guild+Job]
fully understand how it works... :D
thank u
Re: [TuT+Release] Perfect Timed Job [Guild+Job]
Thanks Jangan,
Works Perfectly......
Re: [TuT+Release] Perfect Timed Job [Guild+Job]
Nice release Jangan!
Posted via Mobile Device
Re: [TuT+Release] Perfect Timed Job [Guild+Job]
What does it change? :)
It removes the 3 day waiting time for the Guild and kicks the player?
I dont understand.
Re: [TuT+Release] Perfect Timed Job [Guild+Job]
Re: [TuT+Release] Perfect Timed Job [Guild+Job]
Jangan Really i need your Help plz Dude look at this :
http://i46.servimg.com/u/f46/11/56/06/03/help_p11.png
Can u Help me or give me Link have any Guide how i can make Register Page For my Server thx alot...
Re: [TuT+Release] Perfect Timed Job [Guild+Job]
Re: [TuT+Release] Perfect Timed Job [Guild+Job]
Working for me, but i'm getting DC as soon as I leave the job/guild
edit : also, after leaving a job, then joining it again, if you use the same alias it appears as "already in use"
Re: [TuT+Release] Perfect Timed Job [Guild+Job]
Quote:
Originally Posted by
Jangan
[COLOR=Navy]
How it works:
*) When you click leave/disband guild or timed job, it will kick you from the game, because AQ player updater will return a warning.
This is the reason.
Re: [TuT+Release] Perfect Timed Job [Guild+Job]
Re: [TuT+Release] Perfect Timed Job [Guild+Job]
Re: [TuT+Release] Perfect Timed Job [Guild+Job]
Re: [TuT+Release] Perfect Timed Job [Guild+Job]
@Jangan bro how chan i change back to normal state after i use that query?
Eidt: Nvm i fix it already ;)
Re: [TuT+Release] Perfect Timed Job [Guild+Job]
Sorry to bump but can this be edited so it won't kick them right away and instead they wait 6 hours?
Posted via Mobile Device