I know this script is kind of silly, and probably badly coded, but I wanted to try. It works, so I thought I'd give it out to others. ._.
If anything is wrong with it, let me know. Still learning. ._.
Code:
USE PS_GameData DECLARE @CharName varchar(30), @UserUID int, @UserID varchar(18), @Point int, @Points int, @Point2 int --Change "Char Name" to the name of the Character who you're giving DP to SET @CharName = 'CharName' --Change "PointsToGive" to the amount of DP you want to give to that Character SET @Point = 'PointsToGive' SELECT @UserUID=U.UserUID, @UserID=U.UserID FROM PS_GameData.dbo.Chars AS C INNER JOIN PS_UserData.dbo.Users_Master AS U ON C.UserUID = U.UserUID AND C.UserID = U.UserID WHERE C.CharName = @CharName AND C.Del=0; IF @@ROWCOUNT=0 BEGIN PRINT 'Character was not found.'; return; END ELSE BEGIN SET @Point2=(SELECT Point FROM PS_UserData.dbo.Users_Master WHERE UserUID=@UserUID) UPDATE PS_UserData.dbo.Users_Master SET Point=(Point+@Point) WHERE UserUID=@UserUID SET @Points=(SELECT Point FROM PS_UserData.dbo.Users_Master WHERE UserUID=@UserUID) PRINT @CharName + 's current amount of points: ' + convert(varchar(30), @Point2) + ' Account belonging to - ' + @CharName + ' - had its points updated. Account name connected to the toon was: "' + @UserID + '" The accounts current amount of points: ' + convert(varchar(30), @Points) END