Register for your free account! | Forgot your password?

You last visited: Today at 16:45

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

Advertisement



[Release] Advanced JOB Reward SQL

Discussion on [Release] Advanced JOB Reward SQL within the SRO PServer Guides & Releases forum part of the SRO Private Server category.

Reply
 
Old   #1

 
KingDollar's Avatar
 
elite*gold: 1117
Join Date: Dec 2013
Posts: 858
Received Thanks: 806
Post [Release] Advanced JOB Reward SQL

Hello silkroad community, since there is no any good job reward procedures released and some friends asked me to create for him a simple on
so i decided to share it

procedures

tables

table values example

You can add execution as you want,you can create a trigger then execute -- or execute it while eventid = 6

also you can change Contribution to level as your db setting
KingDollar is offline  
Thanks
10 Users
Old 05/20/2017, 13:37   #2

 
SubZero**'s Avatar
 
elite*gold: 70
Join Date: Apr 2017
Posts: 1,024
Received Thanks: 504
wow best gift for me
SubZero** is offline  
Old 05/20/2017, 15:11   #3
 
B1Q's Avatar
 
elite*gold: 350
Join Date: Aug 2015
Posts: 1,999
Received Thanks: 1,188
wow best gift for haitham adil hh
B1Q is offline  
Old 05/20/2017, 15:31   #4
 
elite*gold: 250
Join Date: Apr 2015
Posts: 65
Received Thanks: 6
ARE THERE IS COMMAND IN ADDLOGCHAR OR SOME THING ?
MeteorSro is offline  
Old 05/20/2017, 15:53   #5
 
Damitsu's Avatar
 
elite*gold: 26
Join Date: Jan 2009
Posts: 837
Received Thanks: 1,250
Good job, keep going!
Damitsu is offline  
Old 05/20/2017, 19:20   #6
 
Ernesto_'s Avatar
 
elite*gold: 0
Join Date: Oct 2013
Posts: 72
Received Thanks: 17
not working i do every thing and i make trade 5 star and i done take any reward.
Ernesto_ is offline  
Old 05/20/2017, 19:21   #7
 
Ryotic's Avatar
 
elite*gold: 0
Join Date: Nov 2016
Posts: 454
Received Thanks: 121
thanks

Quote:
Originally Posted by Ernesto_ View Post
not working i do every thing and i make trade 5 star and i done take any reward.
because you have to begin the event 6 and procadur in log
Ryotic is offline  
Old 05/20/2017, 19:32   #8
 
Ernesto_'s Avatar
 
elite*gold: 0
Join Date: Oct 2013
Posts: 72
Received Thanks: 17
Quote:
Originally Posted by legendworld View Post
thanks



because you have to begin the event 6 and procadur in log
can u tell me how
Ernesto_ is offline  
Old 05/20/2017, 19:55   #9

 
KingDollar's Avatar
 
elite*gold: 1117
Join Date: Dec 2013
Posts: 858
Received Thanks: 806
Quote:
Originally Posted by MeteorSro View Post
ARE THERE IS COMMAND IN ADDLOGCHAR OR SOME THING ?
you can do it like

IF @EventID = 4
EXEC _Job_Reward @CharID

Quote:
Originally Posted by Ernesto_ View Post
not working i do every thing and i make trade 5 star and i done take any reward.
well you should add execution from _addlogchar

Quote:
Originally Posted by ​Exo View Post
test
???????
KingDollar is offline  
Old 05/20/2017, 20:24   #10
 
elite*gold: 0
Join Date: Jul 2011
Posts: 69
Received Thanks: 38
For those who are facing problems with distributing rewards according to stars count
you have to change those fixed contribution values in this procedure to suit your current contribution (in case you have a different items quotation).
Kai· is offline  
Thanks
2 Users
Old 05/21/2017, 00:48   #11
 
ILowe's Avatar
 
elite*gold: 0
Join Date: Mar 2012
Posts: 679
Received Thanks: 29
hello
What should be the exp gold for this system?

sample

Code:
USE [SRO_VT_SHARD]
GO
UPDATE dbo._RefObjCommon
SET Price = 383*15
WHERE Price = 383


UPDATE dbo._RefObjCommon
SET SellPrice = 191*15
WHERE SellPrice = 191


UPDATE dbo._RefPricePolicyOfItem
SET Cost = 383*15
WHERE Cost = 383

WHEN Contribution BETWEEN 10920960 AND 12640000 THEN 1
WHEN Contribution BETWEEN 12640010 AND 18960000 THEN 2
WHEN Contribution BETWEEN 18960010 AND 38425600 THEN 3
WHEN Contribution BETWEEN 38425610 AND 57512000 THEN 4
WHEN Contribution BETWEEN 57512010 AND 725680000 THEN 5

To reach these values?
ILowe is offline  
Old 05/21/2017, 05:12   #12
 
Ryotic's Avatar
 
elite*gold: 0
Join Date: Nov 2016
Posts: 454
Received Thanks: 121
Quote:
Originally Posted by ILowe View Post
hello
What should be the exp gold for this system?

sample

Code:
USE [SRO_VT_SHARD]
GO
UPDATE dbo._RefObjCommon
SET Price = 383*15
WHERE Price = 383


UPDATE dbo._RefObjCommon
SET SellPrice = 191*15
WHERE SellPrice = 191


UPDATE dbo._RefPricePolicyOfItem
SET Cost = 383*15
WHERE Cost = 383

WHEN Contribution BETWEEN 10920960 AND 12640000 THEN 1
WHEN Contribution BETWEEN 12640010 AND 18960000 THEN 2
WHEN Contribution BETWEEN 18960010 AND 38425600 THEN 3
WHEN Contribution BETWEEN 38425610 AND 57512000 THEN 4
WHEN Contribution BETWEEN 57512010 AND 725680000 THEN 5

To reach these values?
Hello Contact me in zizoelnigm4@skype
Ryotic is offline  
Thanks
1 User
Old 05/21/2017, 08:11   #13
 
elite*gold: 0
Join Date: Mar 2010
Posts: 568
Received Thanks: 228
Never Work good ^_^

System bad



WoW

PHP Code:

 SELECT 
@TradeStar = CASE
        
WHEN Contribution BETWEEN 10920960 AND 12640000 THEN 1
        WHEN Contribution BETWEEN 12640010 
AND 18960000 THEN 2
        WHEN Contribution BETWEEN 18960010 
AND 38425600 THEN 3
        WHEN Contribution BETWEEN 38425610 
AND 57512000 THEN 4
        WHEN Contribution BETWEEN 57512010 
AND 725680000 THEN 5
    END 

this Best

20 % from Code



PHP Code:

declare @intMinContribution INT

SELECT 
@intMinContribution = CASE @JobType
        WHEN 1 THEN xxxx 
--(Trader)
        
WHEN 2 THEN xxxx --(Thief)
        
WHEN 3 THEN xxxx --(Hunter
END 
Sell trade 5 Star get to Contribution * 10 = xxx [WHEN 1 THEN [Here]]

and

PHP Code:
declare @JobType tinyINT
declare @intContribution int

select 
@JobType=JobType,@intContribution=Contribution from SRO_VT_SHARD.._CharTrijob where CharID =  --add here @CharID or you CharID :

[Sorry No add Full Code]






ٍ
Laag#82 is offline  
Old 05/21/2017, 11:09   #14

 
KingDollar's Avatar
 
elite*gold: 1117
Join Date: Dec 2013
Posts: 858
Received Thanks: 806
Post

Quote:
Originally Posted by ILowe View Post
hello
What should be the exp gold for this system?

sample

Code:
USE [SRO_VT_SHARD]
GO
UPDATE dbo._RefObjCommon
SET Price = 383*15
WHERE Price = 383


UPDATE dbo._RefObjCommon
SET SellPrice = 191*15
WHERE SellPrice = 191


UPDATE dbo._RefPricePolicyOfItem
SET Cost = 383*15
WHERE Cost = 383

WHEN Contribution BETWEEN 10920960 AND 12640000 THEN 1
WHEN Contribution BETWEEN 12640010 AND 18960000 THEN 2
WHEN Contribution BETWEEN 18960010 AND 38425600 THEN 3
WHEN Contribution BETWEEN 38425610 AND 57512000 THEN 4
WHEN Contribution BETWEEN 57512010 AND 725680000 THEN 5

To reach these values?
You can change this values to yours
KingDollar is offline  
Old 05/21/2017, 14:00   #15
 
elite*gold: 0
Join Date: Oct 2013
Posts: 663
Received Thanks: 209
Quote:
Originally Posted by khaleed2010 View Post
Never Work good ^_^

System bad



WoW



this Best

20 % from Code


[Sorry No add Full Code]


ٍ



Waow you just reached the Smart @SS lv 100 with 20% Exp give us a favor kido please don't talk too much once you open your mouth everyone start to wonder which ******* free school did you go to learn that pure Egliz
elmagico321 is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[Selling] Pre-registration reward for Summoners War: Rift of Worlds 1$ Pre-registration reward
12/15/2015 - Summoners War Trading - 0 Replies
“Summoners War: The Rift of Worlds” is now available! http://i.imgur.com/uZ71itv.png <Download Summoners War> http://m.withhive.com/b?i=9447&g=9446 <Get Pre-registration Reward> Autobuy: https://payivy.com/v/9a4ce
Enactive Mirror|Cap100|Advanced Features|Job-Based|New Systems|Job Quest Systems
06/17/2013 - SRO PServer Advertising - 1455 Replies
http://i.epvpimg.com/w4ETf.png http://www10.0zz0.com/2013/05/12/03/681527270.png http://www14.0zz0.com/2013/05/12/03/453389025.png Website: Enactive Network Download Links: Enactive network download Faebook: facebook page Important to be informed with our news



All times are GMT +1. The time now is 16:49.


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.