Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Shaiya > Shaiya Private Server > Shaiya PServer Development
You last visited: Today at 20:27

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

Advertisement



[Tiny-Release] Auto DP PvP Reward

Discussion on [Tiny-Release] Auto DP PvP Reward within the Shaiya PServer Development forum part of the Shaiya Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2014
Posts: 568
Received Thanks: 94
[Tiny-Release] Auto DP PvP Reward

Hello!

I would like to release Auto DP PvP Rewards.

USE [PS_GameData]
GO

SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

CREATE TRIGGER [dbo].[Kill_REWARDS]
ON [PS_GameData].[dbo].[Chars]
AFTER UPDATE
AS
--DP KILL REWARDS SYSTEM BY [Admin]Ziggy--
IF (UPDATE (K1))
BEGIN
DECLARE @OldK1 INT = (SELECT K1 FROM deleted)
DECLARE @NewK1 INT = (SELECT K1 FROM inserted)
DECLARE @CharID INT = (SELECT CharID FROM inserted)
DECLARE @NewUserUID INT = (SELECT UserUID FROM PS_GameData.dbo.Chars WHERE CharID = @CharID)

UPDATE
PS_UserData.dbo.Users_Master
SET Point = Point + CASE
WHEN @OLDK1 < 1000 AND @NEWK1 >= 1000 THEN 1000
WHEN @OLDK1 < 2000 AND @NEWK1 >= 2000 THEN 1000
WHEN @OLDK1 < 5000 AND @NEWK1 >= 5000 THEN 1000
WHEN @OLDK1 < 10000 AND @NEWK1 >= 10000 THEN 1000
WHEN @OLDK1 < 15000 AND @NEWK1 >= 15000 THEN 1000
WHEN @OLDK1 < 30000 AND @NEWK1 >= 30000 THEN 1000
WHEN @OLDK1 < 50000 AND @NEWK1 >= 50000 THEN 1000
WHEN @OLDK1 < 75000 AND @NEWK1 >= 75000 THEN 1000
WHEN @OLDK1 < 100000 AND @NEWK1 >= 100000 THEN 1000
WHEN @OLDK1 < 120000 AND @NEWK1 >= 120000 THEN 1000
ELSE Point
END
WHERE UserUID = @NewUserUID
END



--THE FIRST 2 NUMBERS ARE THE KILL RANGE THE LAST NUMBER IS THE DP REWARDS EDIT HOW YOU LIKE THEM--
--THE FIRST 2 NUMBERS OF EACH LINE HAS TO BE THE SAME IF YOU CHANGE 1 YOU HAVE TO CHANGE THE OTHER--
--YOU CAN ALSO ADD MORE SETTINGS BY COPY AND PASTE THE SAME CODE INTO THE SCRIPT AND CHANGING THE INFO--
--CASE STATMENTS ARE THE BEST AND FASTEST WAY TO USE VARIOUS OUTCOMES WITHOUT SLOWING DOWN YOUR DATABASE--
[Admin]Ziggy is offline  
Thanks
7 Users
Old 12/18/2015, 11:25   #2
 
SkuulCandy's Avatar
 
elite*gold: 0
Join Date: Apr 2015
Posts: 424
Received Thanks: 113
Nice
SkuulCandy is offline  
Thanks
1 User
Old 12/18/2015, 17:42   #3
 
elite*gold: 0
Join Date: May 2012
Posts: 394
Received Thanks: 392
Quote:
Originally Posted by SkuulCandy View Post
Nice
You really don't need to post "nice" to every thread made with anything released you know. If you think it's nice, just click the thank button. It's just spam.
Truth1010 is offline  
Thanks
7 Users
Reply


Similar Threads Similar Threads
[tiny relase] shaiya auto increment sql
07/01/2018 - Shaiya PServer Guides & Releases - 13 Replies
this will make a new dbo.users_Master table in your SQL that has auto increment already set up if there are any problem please let me know and i will be glad to help :mofo: you must delete the old dbo.users_master in order for this to add a new one MediaFire - the sql script link.
[Release] Auto Reward for Unique Kill
09/10/2015 - SRO PServer Guides & Releases - 21 Replies
Codex-Services http://i.imgur.com/tyhY18N.jpg simple and easy to use i dont know if this was released before or not New! Item Reward how it works



All times are GMT +1. The time now is 20:27.


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