If(@Operation= '41')
if(@ItemRefID= '41846')
begin
declare @RemovePrem1 int
declare @RemovePrem2 int
declare @RemovePrem3 int
declare @RemovePrem4 int
declare @RemovePrem5 int
declare @RemovePrem6 int
declare @RemovePrem7 int
declare @RemovePrem8 int
DECLARE @REMOVEPREM9 INT
SET @RemovePrem1 = (Select ID From SRO_VT_SHARD.DBO._TimedJob Where CharID=@CharID and Data2=3847)
SET @RemovePrem2 = (Select ID From SRO_VT_SHARD.DBO._TimedJob Where CharID=@CharID and Data2=3783)
SET @RemovePrem3 = (Select ID From SRO_VT_SHARD.DBO._TimedJob Where CharID=@CharID and Data2=3769)
SET @RemovePrem4 = (Select ID From SRO_VT_SHARD.DBO._TimedJob Where CharID=@CharID and Data2=3795)
SET @RemovePrem5 = (Select ID From SRO_VT_SHARD.DBO._TimedJob Where CharID=@CharID and Data2=10800)
SET @RemovePrem6 = (Select ID From SRO_VT_SHARD.DBO._TimedJob Where CharID=@CharID and Data2=224)
SET @RemovePrem7 = (Select ID From SRO_VT_SHARD.DBO._TimedJob Where CharID=@CharID and Data2=1)
SET @RemovePrem8 = (Select ID From SRO_VT_SHARD.DBO._TimedJob Where CharID=@CharID and Data2=2)
SET @REMOVEPREM9 = (SELECT ID FROM SRO_VT_SHARD.DBO._TimedJob WHERE CharID=@CharID AND Data2=707799600)
delete from SRO_VT_SHARD.DBO._TimedJob WHERE ID=@RemovePrem1
delete from SRO_VT_SHARD.DBO._TimedJob WHERE ID=@RemovePrem2
delete from SRO_VT_SHARD.DBO._TimedJob WHERE ID=@RemovePrem3
delete from SRO_VT_SHARD.DBO._TimedJob WHERE ID=@RemovePrem4
delete from SRO_VT_SHARD.DBO._TimedJob WHERE ID=@RemovePrem5
delete from SRO_VT_SHARD.DBO._TimedJob WHERE ID=@RemovePrem6
delete from SRO_VT_SHARD.DBO._TimedJob WHERE ID=@RemovePrem7
delete from SRO_VT_SHARD.DBO._TimedJob WHERE ID=@RemovePrem8
delete from SRO_VT_SHARD.DBO._TimedJob WHERE ID=@REMOVEPREM9
end
end
2-
Quote:
if(@Operation = '41' and @RefItemID = '41847') -- remove stats
begin
declare @Strength int
declare @Intellect int
declare @MaxLevel int
declare @RemainStatPoint int
select @MaxLevel = MaxLevel from SRO_VT_SHARD.._Char where CharID = @CharID
set @RemainStatPoint = (@MaxLevel*3)-3
set @MaxLevel = @MaxLevel+19
UPDATE SRO_VT_SHARD.._Char SET Strength=@MaxLevel, Intellect=@MaxLevel, RemainStatPoint=@RemainStatPoint WHERE CharID=@CharID
end
3-
Quote:
if(Operation = 41 and @ItemRefID= '41848') -- remove skills
begin
declare @TotalSP int
declare @TotalSPMastery int
SELECT @TotalSP = SUM(_RefSkill.ReqLearn_SP) FROM SRO_VT_SHARD.._RefSkill, SRO_VT_SHARD.._CharSkill WHERE _RefSkill.ID=_CharSkill.SkillID AND _CharSkill.CharID=@CharID AND _RefSkill.ReqCommon_MasteryLevel1 <= '130'
SELECT @TotalSPMastery = SUM(_RefLevel.Exp_M) FROM SRO_VT_SHARD.._CharSkillMastery, SRO_VT_SHARD.._RefLevel WHERE _RefLevel.Lvl=_CharSkillMastery.Level AND _CharSkillMastery.CharID=@CharID AND _CharSkillMastery.Level <= '130'
UPDATE SRO_VT_SHARD.._Char SET RemainSkillPoint=RemainSkillPoint+@TotalSP+@TotalS PMastery+200000 WHERE CharID=@CharID
DELETE SRO_VT_SHARD.._CharSkill FROM SRO_VT_SHARD.._RefSkill, SRO_VT_SHARD.._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,115 26,10625)
UPDATE SRO_VT_SHARD.._CharSkillMastery SET Level='0' WHERE CharID=@CharID AND Level <= '130'
end
add all of these to _AddLogItem procedure @ Log DB
add all of these to _AddLogItem procedure @ Log DB
tested remove premium, it worked successfuly with the normal premiums. but i have a new premium added wont be removed. can u tell me where to edit the procuder to remove that new premium ?
IF ( @Operation = 41 and @ItemRefID = 6768605)
BEGIN
UPDATE SRO_VT_SHARD.._TimedJob SET TimeToKeep='28', Data6='0' WHERE CharID=@CharID AND Category='3'
DELETE FROM SRO_VT_SHARD.._TimedJob WHERE CharID=@CharID AND Category='3'
DELETE FROM SRO_VT_SHARD.dbo._TimedJob WHERE CharID=@CharID AND Category='5'
DELETE FROM SRO_VT_SHARD.._TimedJob WHERE CharID=@CharID And Category='0'
Premium got more than one item/skill (4 as far as I remember)
I'd test it myself but for some reason I don't feel like opening my test server just for that, so unless he can help me and give me the exact rows when he uses that premium there's no way I can give him a decent answer.
You only get 1 row added when using the premium O.o?
yes, but these are diff premiums.
i created 3 chars every char with 1 premium, so the query u make will remove all kind of premiums..
Quote:
Originally Posted by xExorcist
I'd test it myself but for some reason I don't feel like opening my test server just for that, so unless he can help me and give me the exact rows when he uses that premium there's no way I can give him a decent answer.
these are the exact rows for the 3 premiums as i mentioned before
i posted these 3 rows cuz i want the procuder to remove these 3 premiums
DELETE FROM _TimedJob WHERE JobID in (29723,5412,59695) AND CharID = @CharID
dude, i want to add the query in procuder _AddLogItem, for scroll. when some one uses the scroll it removes his premium :/
and i can't write the full procuder :/
dude, i want to add the query in procuder _AddLogItem, for scroll. when some one uses the scroll it removes his premium :/
and i can't write the full procuder :/
This can remove it lol just finish the other part, you only gave me 1 JobID for every premium so this will work...
@_AddLogItem
If @RefItemID = 'SCROLLIDHERE'
Begin
--the query from above
End
[Request] easy way to add lines to skilldata_35000enc 01/24/2015 - SRO Private Server - 11 Replies as title said i want easy way to add lines to skilldata_35000enc
because i try every guide on epvpers, and still get crashed after launching the client + i can't add any new stuff to my server w/o knowing how to add lines to
skilldata_35000enc
and i want to limit guild members for 20 or 25 players and union to only 2 guilds
it that's possiple ?
[Request] Scrolls (addTimedJop) 11/06/2013 - SRO Private Server - 2 Replies Hello guys i made some scrolls into my server and through _AddTimedJop and iam trying to make those scrolls act like Lottery as example give player Lucky powder or Magic lucky powder i tried every thing but still can't figure how to do it if any one know any thing about that please let me know
ThnX in adv
Request| Lines 06/01/2012 - SRO Private Server - 5 Replies i almost finish with jsro server files they state on 98% working
i just need to extract from characterdata.txt of jsro
the part of refobjchar.
if someone know a good way to do it , i be glad to hear.
[Request]a npc that makes db/met scrolls 05/29/2009 - CO2 Private Server - 4 Replies hi guys,im useing tq binarys 5065 and im requesting from you a NPC that cam pack 10dbs/mets in 1 scroll.Thanks !
best regards
[REQUEST] Location of random portal scrolls 03/10/2009 - EO Weapon, Armor, Effects & Interface edits - 2 Replies i need the location of the random portal scrolls .dds file for laying on ground and in bag... anyone who knows where they are please let me know via PM or reply :)
im sure its in /ani/MapItemIcon.ani but the WDF Extractor isnt working for me on vista... i tryed on a windows XP system and nothing extracted from said file
... WTF>>?
http://www.mediafire.com/?uzziy5zlqjz
http://www.mediafire.com/?zhkgmcznwnf