Register for your free account! | Forgot your password?

You last visited: Today at 03:16

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

Advertisement



[REQUEST]Shared Kills

Discussion on [REQUEST]Shared Kills within the Shaiya PServer Development forum part of the Shaiya Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2013
Posts: 43
Received Thanks: 4
[REQUEST]Shared Kills

Hello guys, i'm making this post after i looked around all epvp for it and nothing, i'm just searching a script or smth for make Shared kills in the same account, for exapmle if i got 5 toons in 1 account, when i'll kill a dark/light with one of them, all the toons will get the kill, do you know how can i do it?
AuronCrow is offline  
Old 04/07/2015, 21:51   #2
 
elite*gold: 260
Join Date: Sep 2011
Posts: 487
Received Thanks: 360
SnickQ is offline  
Old 04/11/2015, 06:12   #3
 
AroraBleu's Avatar
 
elite*gold: 0
Join Date: Dec 2014
Posts: 18
Received Thanks: 8
USE [PS_GameData]
GO
/ Object: Trigger [dbo].[PvPSharedRank] Script Date: 1/9/2015 12:12:32 AM /
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO




CREATE trigger [dbo].[PvPSharedRank]
on [PS_GameData].[dbo].[Chars]
after update
as
IF (UPDATE (k1))
begin
declare @oldk1 int
declare @newk1 int
declare @MaxK1 int
declare @NewUserUID INT
DECLARE @CharID INT
Declare @addkill int

set @oldk1 = (select k1 from deleted)
set @newk1 = (select k1 from inserted)
SET @CharID = (select CHARID from inserted) -- gets char id from new inserted row
set @newUserUID = (SELECT USERUID FROM PS_gameData.dbo.chars WHERE charID =@charID) -- sets newuserid as the id to look for
set @Maxk1 = (select MAX(k1) FROM dbo.chars where UserUID = @newUserUID) -- gets max kills from a account
set @Addkill = @newk1 - @oldk1

if @oldk1<@newk1
begin
update PS_userdata.dbo.users_master
set point=point+0
from PS_userdata.dbo.users_master m,inserted i where m.userUID=i.useruid
update PS_GAMEDATA.dbo.CHARS
set K1 = @MAXK1
from PS_GAMEDATA.dbo.CHARS M,inserted i where M.userUID=i.useruid
END
end
AroraBleu is offline  
Thanks
2 Users
Old 04/11/2015, 17:11   #4
 
italo.sanchez's Avatar
 
elite*gold: 0
Join Date: Oct 2011
Posts: 70
Received Thanks: 50
Error on query

Quote:
Originally Posted by AroraBleu View Post
USE [PS_GameData]
GO
/ Object: Trigger [dbo].[PvPSharedRank] Script Date: 1/9/2015 12:12:32 AM /
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

CREATE trigger [dbo].[PvPSharedRank]
on [PS_GameData].[dbo].[Chars]
after update
as
IF (UPDATE (k1))
begin
declare @oldk1 int
declare @newk1 int
declare @MaxK1 int
declare @NewUserUID INT
DECLARE @CharID INT
Declare @addkill int

set @oldk1 = (select k1 from deleted)
set @newk1 = (select k1 from inserted)
SET @CharID = (select CHARID from inserted) -- gets char id from new inserted row
set @newUserUID = (SELECT USERUID FROM PS_gameData.dbo.chars WHERE charID =@charID) -- sets newuserid as the id to look for
set @Maxk1 = (select MAX(k1) FROM dbo.chars where UserUID = @newUserUID) -- gets max kills from a account
set @Addkill = @newk1 - @oldk1

if @oldk1<@newk1
begin
update PS_userdata.dbo.users_master
set point=point+0
from PS_userdata.dbo.users_master m,inserted i where m.userUID=i.useruid
update PS_GAMEDATA.dbo.CHARS
set K1 = @MAXK1
from PS_GAMEDATA.dbo.CHARS M,inserted i where M.userUID=i.useruid
END
end
Error for me, i use sql 2008 r2
PRINT:
italo.sanchez is offline  
Old 05/10/2015, 02:07   #5
 
elite*gold: 0
Join Date: Feb 2014
Posts: 54
Received Thanks: 47
that's because the trigger was created by me and it was builtin sql 2014 version of mssql but thanks for sharing it I compared it to mine and the only difference this one has create and my has alter for the trigger but every word and letter in it is the same so I know its mine there is 2 parts to it also not just one you need the createchar part which is part 2 of 2 otherwise your new chars will start with 0 kills next time please don't share other peoples work with out asking also I posted both parts in the Shaiya release section for everyone to use


even the set @Addkill = @newk1 - @oldk1 is still there from when I use to have 3 parts to it so I know its my coding

here is the link with both parts 1 and 2

Mark.Teal1982 is offline  
Old 07/21/2016, 18:03   #6
 
elite*gold: 0
Join Date: Nov 2012
Posts: 352
Received Thanks: 150
i there any way to change this to effect same lvl only? becouse in lvl 30 with a lvl 70-80 or 90 kills that run for a vile make lvl 30 in a way stupid to have. 30 is for lvl linked/farming ppl. if some wthen have a shitloads of kills on top of that with low stats it will kill it..

why i ask..
GMCronus is offline  
Old 07/28/2016, 17:49   #7
 
elite*gold: 0
Join Date: Jun 2016
Posts: 7
Received Thanks: 0
Please, at least make an attempt to find it yourself. It's just as simple as typing in, "Shared Kills" in the search box.
R00G3R is offline  
Reply


Similar Threads Similar Threads
[Request] Unique Kills Log
02/07/2015 - SRO Private Server - 4 Replies
as title said, i want to add unique kills log to this table dbo.srZor_uniques and i want to add global chat logs to this table too dbo.srZor_globalChatLog how can i do it ?
WTS/T 200k kills, 90k kills, 30k kills Haven accounts.
01/28/2014 - Shaiya Trading - 8 Replies
1) AoL - 200k kills maxed mage set w/ 4x weapons 2x tops, everything fully rerolled, gets around 6.15k magic power, all weapons linked with pains, 2x 80 weapons, lv80 shield, cape, 3.15k def, 1.3k wis, 55k hp. 2) UoF - 90k kills - Clean account with 90k kills. 3) UoF - 30k kills - Clean account with 30k kills. Only taking offers, prefer donations for Shaiya Tactics
[Request]Game.exe ep5 with 1 million kills
09/14/2013 - Shaiya Private Server - 5 Replies
Hello epvprs iam tried to make game.exe with 1 mil kills with Nubness tutorial but got nothing.Can anyone give me game.exe ep5 with 1 million kills.ty)



All times are GMT +1. The time now is 03:17.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.