Register for your free account! | Forgot your password?

You last visited: Today at 14:56

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

Advertisement



[Relase]Tag Name for PvP Kills

Discussion on [Relase]Tag Name for PvP Kills within the Shaiya PServer Guides & Releases forum part of the Shaiya Private Server category.

Reply
 
Old 10/19/2014, 12:35   #16
 
elite*gold: 0
Join Date: Jan 2012
Posts: 428
Received Thanks: 33
and how? im stupid i know, but so im learning
Cansas59 is offline  
Old 10/23/2014, 04:09   #17
 
elite*gold: 0
Join Date: Oct 2009
Posts: 61
Received Thanks: 4
can`t understand .... video plsss
atragol is offline  
Old 10/23/2014, 08:47   #18
 
elite*gold: 0
Join Date: May 2012
Posts: 394
Received Thanks: 391
Quote:
Originally Posted by atragol View Post
can`t understand .... video plsss
If you can't / don't understand this, then i fear a video isn't going to help you at all. Do some SQL Tutorials and stop expecting everyone else to go out of their way just to do it all for you.

There are already baby-step guides available if you just put some effort in yourself.
Truth1010 is offline  
Thanks
1 User
Old 10/23/2014, 14:33   #19
 
elite*gold: 260
Join Date: Sep 2011
Posts: 487
Received Thanks: 359
Quote:
Originally Posted by [Dev]Matheus View Post
Procedures->usp_Insert_Action_Log_E
This should help you Cansas59
SnickQ is offline  
Old 07/04/2018, 13:14   #20
 
elite*gold: 0
Join Date: Jul 2015
Posts: 20
Received Thanks: 3
explain better that I do not understand if you can make video I will be thanking you already excuse my English
jefersongpx88 is offline  
Old 07/05/2018, 21:41   #21
 
Velocity.'s Avatar
 
elite*gold: 0
Join Date: Jul 2016
Posts: 237
Received Thanks: 323
Quote:
Originally Posted by jefersongpx88 View Post
explain better that I do not understand if you can make video I will be thanking you already excuse my English
There's nothing complicated about this script.
Insert the following code into PS_Gamelog.dbo.usp_Insert_Action_Log_E
Code:
DECLARE     [MENTION=726976]Nome[/MENTION] varchar(30),@K1 int
SET     [MENTION=726976]Nome[/MENTION] = (SELECT CharName FROM PS_GameData.dbo._CreatedChars WHERE CharID =     [MENTION=395373]Chari[/MENTION]D)
SET @K1 = (SELECT K1 FROM PS_GameData.dbo.Chars WHERE CharID =     [MENTION=395373]Chari[/MENTION]D)
IF     [MENTION=292198]Action[/MENTION]Type = 108 -- Action Logout
BEGIN
	IF @K1 >= 50000 --  Number of Kills
	BEGIN
		UPDATE PS_GameData.dbo.Chars SET CharName = '[Killer]' +     [MENTION=726976]Nome[/MENTION] WHERE CharID =     [MENTION=395373]Chari[/MENTION]D
		UPDATE PS_GameData.dbo.Guilds SET MasterName = '[Killer]' +     [MENTION=726976]Nome[/MENTION] WHERE MasterCharID =     [MENTION=395373]Chari[/MENTION]D
		UPDATE PS_GameData.dbo.FriendChars SET FriendName = '[Killer]' +     [MENTION=726976]Nome[/MENTION] WHERE FriendID =     [MENTION=395373]Chari[/MENTION]D
	END
END
Some Explanation:
Code:
DECLARE      [MENTION=726976]Nome[/MENTION] = Character Name
DECLARE @K1 int = Character Kills
SET      [MENTION=726976]Nome[/MENTION] = (SELECT CharName FROM PS_GameData.dbo._CreatedChars WHERE CharID =      [MENTION=395373]Chari[/MENTION]D) - Selects Character name from Character
SET @K1 = (SELECT K1 FROM PS_GameData.dbo.Chars WHERE CharID =      [MENTION=395373]Chari[/MENTION]D) - Selects Kills From Character
IF @K1 >= 50000 --  Number of Kills - if kills more than 50,000 then proceeds if not script dies
then it sets the tag for the character name which applied to. (i'm definetly not good at sql)
If you still don't know what to do then i can't really help you. Better start learning some basic sql
Velocity. is offline  
Thanks
1 User
Old 04/21/2019, 14:03   #22
 
[PH]KEO(DEV)'s Avatar
 
elite*gold: 0
Join Date: Aug 2016
Posts: 84
Received Thanks: 15
Quote:
Originally Posted by [Dev]Matheus View Post
Not recommend taking the name of the player straight Chars table, because an hour will reach the maximum Limete of character.

@Cansas59

Use this script to add more tag names
Code:
DECLARE @Nome varchar(30),@K1 int
SET @Nome = (SELECT CharName FROM PS_GameData.dbo._CreatedChars WHERE CharID = @CharID)
SET @K1 = (SELECT K1 FROM PS_GameData.dbo.Chars WHERE CharID = @CharID)
IF @ActionType = 108 -- Action Logout
BEGIN
	IF @K1 >= 50000 --  Number of Kills
	BEGIN
		UPDATE PS_GameData.dbo.Chars SET CharName = '[Killer]' + @Nome WHERE CharID = @CharID
		UPDATE PS_GameData.dbo.Guilds SET MasterName = '[Killer]' + @Nome WH
ERE MasterCharID = @CharID
		UPDATE PS_GameData.dbo.FriendChars SET FriendName = '[Killer]' + @Nome WHERE FriendID = @CharID
	END
	ELSE IF @K1 >= 100000 --  Number of Kills
	BEGIN
		UPDATE PS_GameData.dbo.Chars SET CharName = '[King]' + @Nome WHERE CharID = @CharID
		UPDATE PS_GameData.dbo.Guilds SET MasterName = '[King]' + @Nome WHERE MasterCharID = @CharID
		UPDATE PS_GameData.dbo.FriendChars SET FriendName = '[King]' + @Nome WHERE FriendID = @CharID
	END
END
Add this code to the kill count you want.
Code:
ELSE IF @K1 >= 100000 --  Number of Kills
	BEGIN
		UPDATE PS_GameData.dbo.Chars SET CharName = '[King]' + @Nome WHERE CharID = @CharID
		UPDATE PS_GameData.dbo.Guilds SET MasterName = '[King]' + @Nome WHERE MasterCharID = @CharID
		UPDATE PS_GameData.dbo.FriendChars SET FriendName = '[King]' + @Nome WHERE FriendID = @CharID
	END

so if we use more tags like this.. if player reach 100,000 kill he got tag [King][Killer]Charname ?

what if everytime we reach new kill .. removed old tag then change to new tag like if we reach 50,000 kill got tag [Killer] then if reach 100,000 kill removed [Killer] Tag then add [King] tag..
because if like that the charname is too long if make more kill tags..
[PH]KEO(DEV) is offline  
Old 04/22/2019, 01:01   #23
 
elite*gold: 0
Join Date: Jul 2010
Posts: 511
Received Thanks: 513
Yes, it should remove the old tag (if it exists). May be using PATINDEX and REPLACE.
sominus is offline  
Thanks
1 User
Reply

Tags
shaiya script mssql sql


Similar Threads Similar Threads
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
[RELASE] OFFICIAL SERVER SKILLX4 APRIL 28/04/2011 new relase
05/28/2011 - Metin2 Hacks, Bots, Cheats, Exploits & Macros - 17 Replies
I managed to create this new file pc.epk the hack shield of the official metin2 client can not detect. It took me a lot to create it and it works perfectly. skill dmg x 4 for all skills. Working 28/04/2011 http://t1.gstatic.com/images?q=tbn:ANd9GcSCU9pcO2 vvTQ5nFRtDW-WCzvd4JxwDEIQaAcDcwPbjwJFb_0YH&t=1 : Free File Hosting, Online Storage &amp File Upload with FileServe Comment me:) ps. copy this file into the pack folder :cool:



All times are GMT +2. The time now is 14:56.


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