|
You last visited: Today at 12:51
Advertisement
The same number of kills to characters
Discussion on The same number of kills to characters within the Shaiya PServer Development forum part of the Shaiya Private Server category.
10/26/2014, 03:21
|
#1
|
elite*gold: 0
Join Date: Dec 2012
Posts: 51
Received Thanks: 56
|
The same number of kills to characters
How to get all characters on the account has the same amount of kill?
|
|
|
10/26/2014, 03:40
|
#2
|
elite*gold: 10
Join Date: Jan 2012
Posts: 1,698
Received Thanks: 5,455
|
So you release a... I don't even know what to call it... a  that has some malicious, yet dumb, code in it, and then come asking for help ?
|
|
|
10/26/2014, 04:18
|
#3
|
elite*gold: 0
Join Date: Dec 2012
Posts: 51
Received Thanks: 56
|
eu não disse kill_count e sim a quantidade de kills para os chars de uma só conta
|
|
|
10/26/2014, 16:37
|
#4
|
elite*gold: 260
Join Date: Sep 2011
Posts: 487
Received Thanks: 360
|
I try something like that to update all k1:
Code:
Declare @CharID varchar(30) = (Select top 1 CharID from PS_GameData.dbo.chars where CharName='123')
Declare @UserID varchar(12) =(select top 1 UserID from PS_GameData.dbo.chars where CharID =@CharID)
Declare @Slot1 int =(Select top 1 k1 From PS_GameData.dbo.chars where UserID =@UserID and slot ='0' and del ='0')
Declare @Slot2 int =(Select top 1 k1 From PS_GameData.dbo.chars where UserID =@UserID and slot ='1' and del ='0')
Declare @Slot3 int =(Select top 1 k1 From PS_GameData.dbo.chars where UserID =@UserID and slot ='2' and del ='0')
Declare @Slot4 int =(Select top 1 k1 From PS_GameData.dbo.chars where UserID =@UserID and slot ='3' and del ='0')
Declare @Slot5 int =(Select top 1 k1 From PS_GameData.dbo.chars where UserID =@UserID and slot ='4' and del ='0')
Declare @S1 int =(Select top 1 k2 From PS_GameData.dbo.chars where UserID =@UserID and slot ='0' and del ='0')
Declare @S2 int =(Select top 1 k2 From PS_GameData.dbo.chars where UserID =@UserID and slot ='1' and del ='0')
Declare @S3 int =(Select top 1 k2 From PS_GameData.dbo.chars where UserID =@UserID and slot ='2' and del ='0')
Declare @S4 int =(Select top 1 k2 From PS_GameData.dbo.chars where UserID =@UserID and slot ='3' and del ='0')
Declare @S5 int =(Select top 1 k2 From PS_GameData.dbo.chars where UserID =@UserID and slot ='4' and del ='0' )
Declare @Toon1 int =(Select top 1 CharID From PS_GameData.dbo.chars where UserID =@UserID and slot ='0' and del ='0')
Declare @Toon2 int =(Select top 1 CharID From PS_GameData.dbo.chars where UserID =@UserID and slot ='1' and del ='0')
Declare @Toon3 int =(Select top 1 CharID From PS_GameData.dbo.chars where UserID =@UserID and slot ='2' and del ='0')
Declare @Toon4 int =(Select top 1 CharID From PS_GameData.dbo.chars where UserID =@UserID and slot ='3' and del ='0')
Declare @Toon5 int =(Select top 1 CharID From PS_GameData.dbo.chars where UserID =@UserID and slot ='4' and del ='0')
update PS_GameData.dbo.chars
Set K1 = @Slot1+@Slot2+@Slot3+@Slot4+@Slot5
Where CharID=@CharID
PRINT 'Update 1'
update PS_GameData.dbo.chars
Set K2 = @S1+@S2+@S3+@S4+@S5
Where CharID=@CharID
PRINT 'Update 2'
update PS_GameData.dbo.chars
Set K1 = '0'
Where CharID=@Toon1
PRINT 'Update 3'
update PS_GameData.dbo.chars
Set K1 = '0'
Where CharID=@Toon2
PRINT 'Update 4'
update PS_GameData.dbo.chars
Set K1 = '0'
Where CharID=@Toon3
PRINT 'Update 5'
update PS_GameData.dbo.chars
Set K1 = '0'
Where CharID=@Toon4
PRINT 'Update 6'
update PS_GameData.dbo.chars
Set K1 = '0'
Where CharID=@Toon5
PRINT 'Update 7'
update PS_GameData.dbo.chars
Set K2 = '0'
Where CharID=@Toon1
PRINT 'Update 8'
update PS_GameData.dbo.chars
Set K2 = '0'
Where CharID=@Toon2
PRINT 'Update 9'
update PS_GameData.dbo.chars
Set K2 = '0'
Where CharID=@Toon3
PRINT 'Update 10'
update PS_GameData.dbo.chars
Set K2 = '0'
Where CharID=@Toon4
PRINT 'Update 11'
update PS_GameData.dbo.chars
Set K2 = '0'
Where CharID=@Toon5
PRINT 'Update 12'
update PS_GameData.dbo.chars
Set K1 = @Slot1+@Slot2+@Slot3+@Slot4+@Slot5
Where CharID=@CharID
PRINT 'Update 1a'
update PS_GameData.dbo.chars
Set K2 = @S1+@S2+@S3+@S4+@S5
Where CharID=@CharID
PRINT 'Update 2a'
But have a problem with empty slot in account ;/
Code:
Msg 515, Level 16, State 2, Line 22
Cannot insert the value NULL into column 'K1', table 'PS_GameData.dbo.Chars'; column does not allow nulls. UPDATE fails.
The statement has been terminated.
Update 1
Msg 515, Level 16, State 2, Line 27
Cannot insert the value NULL into column 'K2', table 'PS_GameData.dbo.Chars'; column does not allow nulls. UPDATE fails.
The statement has been terminated.
Update 2
|
|
|
10/26/2014, 19:42
|
#5
|
elite*gold: 0
Join Date: Jul 2010
Posts: 523
Received Thanks: 523
|
It should be something like Get the kills from the toon with most kills in the account, add the 'current kill', put the result to all active toons. Also check if slot is not empty (has a toon and that toon is not dead/deleted).
I still think this is some form of 'legal padding'.
Example: You have a 80 toon with 50.000 kills, you make a new toon for pvp 30, it will have 50.000 kills already, you go to the vet manager and get more stats without killing a single enemy.
|
|
|
12/01/2014, 01:42
|
#6
|
elite*gold: 0
Join Date: Jun 2013
Posts: 465
Received Thanks: 669
|
Any news about this "project" how to make it work ?
|
|
|
12/02/2014, 00:43
|
#7
|
elite*gold: 0
Join Date: Apr 2014
Posts: 300
Received Thanks: 473
|
Good luck with this  .
I'd also say, be aware of what sominus mentions with Vet Manager, although it is possible to disable the Vet Manager for lower levels so you don't run into the problem of huge rank level 30s with a lot of PvP stats.
|
|
|
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
|
@WTS@ Number 1 Shaiya Haven Ranger 60k Kills All max only Best server Ranger !
10/12/2013 - Shaiya Trading - 14 Replies
SOLD!!!
|
MMO Auction||AION CHARACTERS SALE||Elite Gear-Brigade Generals||Best Characters||
03/16/2012 - Aion Trading - 12 Replies
Account 1.
Elyos - Sorcerer :
http://img192.imageshack.us/img192/4439/elyossorc erer.png
Account 2.
Elyos - Assasin :
http://img19.imageshack.us/img19/3702/elyosassasi n.png
Account 3.
Elyos - Templar :
|
All times are GMT +1. The time now is 12:51.
|
|