Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Private Server > SRO PServer Guides & Releases
You last visited: Today at 11:54

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

Advertisement



unique points logger for pservercms tables

Discussion on unique points logger for pservercms tables within the SRO PServer Guides & Releases forum part of the SRO Private Server category.

Reply
 
Old   #1
 
m1xawy's Avatar
 
elite*gold: 0
Join Date: Aug 2018
Posts: 278
Received Thanks: 437
unique points logger for pservercms tables

i think someone will need it : )

Add this to _AddLogChar
and change srZor_uniques to your uses table logger

Code:
declare @killer varchar(max) = (select CharName from SRO_VT_ACCOUNT..srZor_uniques where id=(select max (id) from SRO_VT_ACCOUNT..srZor_uniques))
declare @uniquekilled varchar(max) = (select mobname from SRO_VT_ACCOUNT..srZor_uniques where id=(select max (id) from SRO_VT_ACCOUNT..srZor_uniques))
declare @killercharid int = (select charid from SRO_VT_SHARD.._char where charname16=@killer)
declare @uniqueid int = (select id from SRO_VT_SHARD.._refobjcommon where codename128 = @uniquekilled and service =1 )
DECLARE @killerPoint int =(Select points From SRO_VT_SHARD.dbo._UniqueRanking Where CharID = @killercharid )
DECLARE @killerguildid  int =(Select GuildID From SRO_VT_SHARD.._char Where CharID = @killercharid )
DECLARE @killerguildname varchar(max) =(Select Name From SRO_VT_SHARD.dbo._Guild Where ID = @killerguildid  )

if @eventid in (4,6,9,11,10) AND (select count(*)from SRO_VT_ACCOUNT..srZor_uniques ) > 0
begin
declare @uniquePoint int = 0
-- this is unique points logger for pservercms by mixawy
if @uniqueid = 14936 begin-- lvy  ----normal uniques
SET @uniquePoint = 5 END
if @uniqueid = 1954 begin --tiger
SET @uniquePoint = 5 END
if @uniqueid = 5871 begin --kerberos
SET @uniquePoint = 5 END
if @uniqueid = 2002 begin --isyutaru
SET @uniquePoint = 5 END
if @uniqueid = 1982 begin --uruchi
SET @uniquePoint = 6 END
if @uniqueid = 3875 begin --demon
SET @uniquePoint = 10 END
if @uniqueid = 3810 begin --lord
SET @uniquePoint = 8 END
if @uniqueid = 14995 begin-- snake 
SET @uniquePoint = 10 END
if @uniqueid = 22891 begin --medusa --big uniques
SET @uniquePoint = 20 END
if @uniqueid = 3877 begin  --roc
SET @uniquePoint = 100 END

/*  insert */
if @uniquePoint >0 and @killerguildid >0 and (not exists (select charid from SRO_VT_SHARD.._UniqueRanking where CharID = @killercharid) ) begin
insert into SRO_VT_SHARD.._UniqueRanking (CharID,CodeName128,points) values (@killercharid,@killerguildname,@uniquePoint) 
end
else if @uniquePoint >0 and @killerguildid =0 and (not exists (select charid from SRO_VT_SHARD.._UniqueRanking where CharID = @killercharid) ) begin
insert into SRO_VT_SHARD.._UniqueRanking (CharID,CodeName128,points) values (@killercharid,0,@uniquePoint) 
end

/*  update */
else if @killerguildid >0 and (exists (select charid from SRO_VT_SHARD.._UniqueRanking where CharID = @killercharid)) begin
UPDATE SRO_VT_SHARD.dbo._UniqueRanking SET CodeName128 = @killerguildname Where CharID = @killercharid 
end
else if @uniquePoint >0 and (exists (select charid from SRO_VT_SHARD.._UniqueRanking where CharID = @killercharid)) begin
UPDATE SRO_VT_SHARD.dbo._UniqueRanking SET points = @killerPoint +@uniquePoint Where CharID = @killercharid 
end

/* uniquekilllist & clean */
insert into SRO_VT_SHARD.._UniqueKillList (CharID,CodeName128,time) VALUES (@killercharid,@uniquekilled,Getdate())
delete from SRO_VT_ACCOUNT..srZor_uniques where id=(select max (id) from SRO_VT_ACCOUNT..srZor_uniques)
end
_Uniqueinfo

Code:
USE [SRO_VT_SHARD]
GO

INSERT INTO [dbo].[_UniqueInfo]
           ([CodeName128]
           ,[Name])
     VALUES
	('MOB_CH_TIGERWOMAN', 'Tiger Girl'),
	('MOB_EU_KERBEROS', 'Cerberus'),
	('MOB_AM_IVY', 'Captain Ivy'),
	('MOB_OA_URUCHI', 'Uruchi'),
	('MOB_KK_ISYUTARU', 'Isyutaru'),
	('MOB_TK_BONELORD', 'Lord Yarkan'),
	('MOB_RM_TAHOMET', 'Demon Shaitan'),
	('MOB_JUPITER_GRIFFIN', 'Griffin'),
	('MOB_JUPITER_YUNO', 'Yuno'),
	('MOB_JUPITER_JUPITER', 'Jupiter'),
	('MOB_JUPITER_BABILION', 'Babilion'),
	('MOB_JUPITER_BAAL', 'Baal'),
	('MOB_JUPITER_DARK_DOG', 'Zielkiaxe'),
	('MOB_ARABIA_VENEFICA', 'Arabian Venefica (S'),
	('MOB_ARABIA_HARRISON', 'Arabian Harrison'),
	('MOB_ARABIA_LAUNATUNE', 'Arabian Launatune'),
	('MOB_ARABIA_VENEFICA_DEMON', 'Arabian Demon Venefica'),
	('MOB_ARABIA_GEENIE', 'Arabian Geenie');

GO
m1xawy is offline  
Thanks
5 Users
Old 12/24/2018, 20:37   #2

 
XxGhostSpiriTxX's Avatar
 
elite*gold: 53
Join Date: Jul 2012
Posts: 541
Received Thanks: 190
thanks bro
XxGhostSpiriTxX is offline  
Thanks
1 User
Old 12/24/2018, 22:52   #3
 
Worshiper's Avatar
 
elite*gold: 0
Join Date: May 2017
Posts: 1,085
Received Thanks: 225
thanks for it
Worshiper is offline  
Thanks
1 User
Old 12/25/2018, 02:02   #4
 
m1xawy's Avatar
 
elite*gold: 0
Join Date: Aug 2018
Posts: 278
Received Thanks: 437
Quote:
Originally Posted by esteve458 View Post
thanks bro
<3

Quote:
Originally Posted by [GM]Dejo View Post
thanks for it
<3
m1xawy is offline  
Old 12/25/2018, 02:48   #5


 
!Apple's Avatar
 
elite*gold: 82
Join Date: Mar 2010
Posts: 451
Received Thanks: 417
thanks best friend
!Apple is offline  
Thanks
1 User
Old 12/25/2018, 06:44   #6

 
SubZero**'s Avatar
 
elite*gold: 70
Join Date: Apr 2017
Posts: 1,024
Received Thanks: 511
good work
SubZero** is offline  
Thanks
1 User
Old 12/25/2018, 12:28   #7
 
topaz..'s Avatar
 
elite*gold: 10
Join Date: Nov 2018
Posts: 192
Received Thanks: 57
nice job
topaz.. is offline  
Thanks
1 User
Old 12/25/2018, 16:10   #8
 
m1xawy's Avatar
 
elite*gold: 0
Join Date: Aug 2018
Posts: 278
Received Thanks: 437
Quote:
Originally Posted by Dryes* View Post
thanks best friend
u r more than friend : )

Quote:
Originally Posted by Zoro.Sro View Post
good work
thanx bro, have to nice day : )

Quote:
Originally Posted by midnight.. View Post
nice job
love you < 3 : )
m1xawy is offline  
Old 12/25/2018, 18:10   #9
 
elite*gold: 0
Join Date: Oct 2013
Posts: 663
Received Thanks: 209
nice work bro but i think making uniquePoint can be set from the table where the id and unqiue name is will be better
elmagico321 is offline  
Thanks
1 User
Old 12/25/2018, 19:51   #10
 
m1xawy's Avatar
 
elite*gold: 0
Join Date: Aug 2018
Posts: 278
Received Thanks: 437
Quote:
Originally Posted by elmagico321 View Post
nice work bro but i think making uniquePoint can be set from the table where the id and unqiue name is will be better
thanx bro. and yes your idea is a better but ithink each servers use normal uniques only in ranking , that as easy.
this code will up to apply its but not ful for use (writing on mob : )

Code:
ALTER TABLE SRO_VT_SHARD.dbo._UniqueInfo ADD Point int NOT NULL DEFAULT 0;

declare @uniquePoint int = (select Point from SRO_VT_SHARD.._UniqueInfo where CodeName128 = @uniquekilled)

if (exists (select CodeName128 from SRO_VT_SHARD.._UniqueInfo where CodeName128 = @uniquekilled)) begin
UPDATE SRO_VT_SHARD.dbo._UniqueRanking SET points = @killerPoint +@uniquePoint Where CharID = @killercharid 
end
m1xawy is offline  
Thanks
1 User
Old 12/26/2018, 05:29   #11


 
im.Midgar's Avatar
 
elite*gold: 121
Join Date: Nov 2018
Posts: 40
Received Thanks: 18
gj bruh
im.Midgar is offline  
Thanks
1 User
Old 07/28/2023, 03:12   #12
 
elite*gold: 0
Join Date: Nov 2016
Posts: 4
Received Thanks: 0
I have done everything and the unique ranking still does not work, which tables should I migrate? srzor_unique which table should i add there
carlosxd123 is offline  
Old 07/28/2023, 09:29   #13
 
m1xawy's Avatar
 
elite*gold: 0
Join Date: Aug 2018
Posts: 278
Received Thanks: 437
Quote:
Originally Posted by carlosxd123 View Post
I have done everything and the unique ranking still does not work, which tables should I migrate? srzor_unique which table should i add there
LOL, you still using srZor game server : )
m1xawy is offline  
Reply

Tags
logger, point, pservercms, unique, vsro


Similar Threads Similar Threads
[Release] PServerCMS a Website for your PServer
09/30/2019 - SRO PServer Guides & Releases - 467 Replies
FEATURES: News (modification in admin-panel) ServerInfo (modification in admin-panel) include PlayerOnline ServerTimes (modification in config) Download (modification in admin-panel) Ranking (TopGuild|TopPlayer) with detail pages Char search ServerInfoPages (modification in admin-panel, possible to add more dynamic)
Install PServerCMS
03/02/2019 - SRO Private Server - 2 Replies
Someone can install me PServerCMS on my server? Pls pm me!
A question about sql tables (Unique kill per player)
11/24/2012 - SRO Private Server - 2 Replies
Hello. what is the name of table where appears the amount of unique kill per player?:confused: thanks



All times are GMT +1. The time now is 11:55.


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.