Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Coding Corner
You last visited: Today at 23:42

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

Advertisement



[DEV]Determine Advanced elixir usage

Discussion on [DEV]Determine Advanced elixir usage within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
naty48's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 337
Received Thanks: 474
[DEV]Determine Advanced elixir usage

Hey guys , how're you doing ? so today I've new discussion about determining the advanced elixir usage so far I reached this _BindingOptionWithItem

How can we join it with _GetInventoryItem Stored procedure so it will show if advanced elixir in use or not. Waiting your answers (I'm not really sql pro ^^)

Cheers
naty48 is offline  
Old 04/09/2012, 17:34   #2
 
IceAmStiel's Avatar
 
elite*gold: 0
Join Date: Jul 2011
Posts: 1,058
Received Thanks: 1,118
Searching for sth like that?

PHP Code:
USE SRO_VT_SHARD

SELECT

chart
.CharID,
chart.CharName16,
invent0.Slot as Slot,
CASE 
WHEN ref0.CodeName128 like 'DUMMY_OBJECT' THEN NULL ELSE ref0.CodeName128 END as 'ItemCode',
CASE 
WHEN ref0.CodeName128 like 'DUMMY_OBJECT' THEN NULL ELSE ref0.AssocFileIcon128 END as 'DDJ-Path',
CASE
    
WHEN ref0.CodeName128 like 'DUMMY_OBJECT' THEN NULL
    WHEN invent0
.Slot 0 THEN 'Head'
    
WHEN invent0.Slot 1 THEN 'Suit'
    
WHEN invent0.Slot 2 THEN 'Shoulders'
    
WHEN invent0.Slot 3 THEN 'Hands'
    
WHEN invent0.Slot 4 THEN 'Legs'
    
WHEN invent0.Slot 5 THEN 'Shoes'
    
WHEN invent0.Slot 6 THEN 'Weapon'
    
WHEN invent0.Slot 7 THEN 'Shield/Arrow'
    
WHEN invent0.Slot 9 THEN 'Earring'
    
WHEN invent0.Slot 10 THEN 'Necklace'
    
WHEN invent0.Slot 11 THEN 'RingL'
    
WHEN invent0.Slot 12 THEN 'RingR'
    
ELSE 'NO clue' 
END as 'ItemType',
Name es.EndTextString +
CASE
    
WHEN PATINDEX('%_11%_' '%A_RARE',ref0.CodeName128) > 0 THEN ' (Seal of Nova)'
    
WHEN PATINDEX('%A_RARE',ref0.CodeName128) > 0 THEN ' (Seal of Star)'
    
WHEN PATINDEX('%B_RARE',ref0.CodeName128) > 0 THEN ' (Seal of Moon)'
    
WHEN PATINDEX('%C_RARE',ref0.CodeName128) > 0 THEN ' (Seal of Sun)'
    
ELSE '' 
END,
items0.OptLevel as 'Item+',
'AdvE+' = CASE WHEN not exists(SELECT nOptValue FROM _BindingOptionWithItem WHERE nItemDBID items0.ID64THEN 0 ELSE bind.nOptValue END,
CASE 
WHEN ref0.CodeName128 like 'DUMMY_OBJECT' THEN NULL ELSE CAST(ref0.ReqLevel1 as varchar(5)) END as 'ItemLevel'

FROM _Inventory as invent0
JOIN _Items 
as items0 on invent0.ItemID items0.ID64 AND ((invent0.Slot BETWEEN 0 AND 12) AND invent0.Slot != 8)
JOIN _RefObjCommon as ref0 on items0.RefItemID ref0.ID
JOIN _Char 
as chart on invent0.CharID chart.CharID
LEFT JOIN _BindingOptionWithItem 
as bind on items0.ID64 bind.nItemDBID AND bind.bOptType 2
LEFT JOIN C_EquipStrings 
as es on ref0.NameStrID128 es.TextString

WHERE 
(invent0.Slot BETWEEN 0 AND 12) AND invent0.Slot != 8

GROUP BY chart
.CharIDchart.CharName16invent0.Slotref0.CodeName128ref0.AssocFileIcon128,
es.EndTextStringitems0.OptLevelref0.ReqLevel1bind.nOptValueitems0.ID64

ORDER BY chart
.CharID ascinvent0.Slot asc

btw in case you want to try it out use..
PHP Code:
BULK INSERT dbo.C_EquipStrings FROM 'C:\textdata_equip&skill.txt' 
..at first with the textdata_equip&skill.txt file of your current Media.pk2
IceAmStiel is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
HOW ADD NEW ADVANCED ELIXIR - VSRO SERVER
08/01/2020 - SRO PServer Guides & Releases - 5 Replies
Part 1 - Setting Up Tools that you will need Pk2 extractor & editor Text Editor Your database and server You will be editing the following files in your Media.pk2: itemdata_45000.txt TO DO - Extract the files into a folder.
About Advanced Elixir
02/03/2012 - Silkroad Online - 2 Replies
Hi everyone, When an item which has advanced b (+2) effect on it failed to enchance, does it drop to +1 or +3 (because of adv +2)? And if it drops to +3, on first alchemy, do i have change equal to +3 -> +4 or +1 -> +2 (because of adv +2) Thx
Advanced Elixir grade C?
04/13/2011 - Silkroad Online - 10 Replies
Is it true if you destroy a EGY grade A weapon you get an advanced elixir grade C with gives you a +3 advanced plus?
Advanced Elixir Guide [VID]
03/20/2010 - Silkroad Online - 8 Replies
YouTube - ? Silkroad Advanced elixir Im not the owner of this video
(i)Bot pick the Advanced elixir??
03/19/2010 - Silkroad Online - 2 Replies
Hello guys! I want to know...the (i)Bot can pick the new elixir?(Advanced Elixir) I hope somebody can answer me..bcoz i dont found the setup to pick this elixir...only the old elixirs can be setup... Sorry for bad english^^:handsdown: Thanks for all answer:handsdown:



All times are GMT +1. The time now is 23:42.


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.