Register for your free account! | Forgot your password?

You last visited: Today at 02:19

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

Advertisement



ٍSQL Experts

Discussion on ٍSQL Experts within the SRO Private Server forum part of the Silkroad Online category.

Reply
 
Old   #1
 
Mc-Diesel's Avatar
 
elite*gold: 80
Join Date: May 2015
Posts: 374
Received Thanks: 118
ٍSQL Experts

Wanna Make This Query Added multiple Value To make it Easier to Add Full Degree As A Drop

HTML Code:
USE/**/[SRO_VT_SHARD]/**/

GO
DECLARE  [MENTION=614520]mob[/MENTION] VarChar(MAX)  [MENTION=1134588]item[/MENTION] VarChar(MAX)  [MENTION=290558]MONSTER[/MENTION]ID iNt  [MENTION=1134588]item[/MENTION]ID iNt  [MENTION=2178693]Dropr[/MENTION]atio ReaL,  [MENTION=313617]Drop[/MENTION]AmountMin INT,  [MENTION=313617]Drop[/MENTION]AmountMax INT
--------------------------------------------------------------------------
SET  [MENTION=614520]mob[/MENTION]            =    'MOB_SD_ANUBIS'/*Monster Code*/
SET  [MENTION=1134588]item[/MENTION]            =    ''/*Item Code*/
SET  [MENTION=313617]Drop[/MENTION]AmountMin    =    1 /*Drop Min*/
SET  [MENTION=313617]Drop[/MENTION]AmountMax    =    2 /*Drop Max*/
SET  [MENTION=2178693]Dropr[/MENTION]atio        =    0.5 /*0.5 = '50%' */
--------------------------------------------------------------------------
SET  [MENTION=290558]MONSTER[/MENTION]ID    =    (SELECT ID FROM [dbo].[_RefObjCommon] WHERE CodeName128 =  [MENTION=614520]mob[/MENTION])/**/
SET  [MENTION=1134588]item[/MENTION]ID        =    (SELECT ID FROM [dbo].[_RefObjCommon] WHERE CodeName128 Like  [MENTION=1134588]item[/MENTION])/**/
INSERT [dbo].[_RefMonster_AssignedItemDrop]/**/
(RefMonsterID,RefItemID,DropGroupType,OptLevel,DropAmountMin,DropAmountMax,DropRatio,RefMagicOptionID1,CustomValue1,RefMagicOptionID2,CustomValue2,RefMagicOptionID3,CustomValue3,RefMagicOptionID4,CustomValue4,RefMagicOptionID5,CustomValue5,RefMagicOptionID6,CustomValue6,RefMagicOptionID7,CustomValue7,RefMagicOptionID8,CustomValue8,RefMagicOptionID9,CustomValue9,RentCodeName)/**/
VALUES  [MENTION=290558]MONSTER[/MENTION]ID  [MENTION=1134588]item[/MENTION]ID,0,0  [MENTION=313617]Drop[/MENTION]AmountMin  [MENTION=313617]Drop[/MENTION]AmountMax  [MENTION=2178693]Dropr[/MENTION]atio,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,'xxx')/**/
For Example

ItemID = Select ID From RefobjCommon Where Codename128 Like '%ITEM_%'

The Query Works For Single Item's Perfect But With Like Statment it Give More Than 1 Value and it cause Error So Any Idea!?
Mc-Diesel is offline  
Old 06/27/2018, 00:36   #2

 
AceSpace's Avatar
 
elite*gold: 21
Join Date: Mar 2011
Posts: 1,613
Received Thanks: 1,122
Code:
https://pastebin.com/trrmUXXQ
That should work fine for multiple items
AceSpace is offline  
Thanks
1 User
Old 06/27/2018, 01:08   #3
 
Mc-Diesel's Avatar
 
elite*gold: 80
Join Date: May 2015
Posts: 374
Received Thanks: 118
Quote:
Originally Posted by Locklyon View Post
Code:
https://pastebin.com/trrmUXXQ
That should work fine for multiple items
Work Fine Thanks mate
Mc-Diesel is offline  
Reply


Similar Threads Similar Threads
ٍٍٍ Starlife Online |Daily events|Many Players|Friendly Staff
04/18/2015 - SRO PServer Advertising - 11 Replies
ٍٍٍ Starlife Online http://www.starlifeonline.com/img/logo.png |Daily events|Many Players|Friendly Staff| (SilkRoad Private Server) 24/7 Support http://starlifeonline.com/img/star%20copy.png http://i.epvpimg.com/8DuDc.jpg 13Dg - Cap 120 - New SOX System - New Job based System - New Avatars - Free Silk - Free items - Helpful GMs - Many Players - Friendly Staff - Unique Starting Area - Unique Ranking - Nice Community - No Lags and 24/7 Online
ٍٍs > Gears Monk full +12 and account level 140
02/07/2015 - Conquer Online 2 Trading - 3 Replies
Hey people! Selling my gear.. I accept western union, I don't need cps . PM me if your interested! ------Selling------- Super +12 2soc sdg -7 Erring = $310 each Super +12 2soc sdg -7 Necky =$310 each Super +12 2soc sdg -7 Ring = $310 each



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


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.