|
You last visited: Today at 17:18
Advertisement
Check Items !
Discussion on Check Items ! within the SRO Private Server forum part of the Silkroad Online category.
10/05/2015, 02:13
|
#1
|
elite*gold: 0
Join Date: Jun 2014
Posts: 9
Received Thanks: 0
|
Check Items !
Hello , Dears
iam have small private silkroad
and i want know player who owns more Arena Coins in my game ?
how i can know , which player have more than 10.000 Arena Coin in game
thanks
|
|
|
10/05/2015, 05:01
|
#2
|
elite*gold: 28
Join Date: Aug 2014
Posts: 4,096
Received Thanks: 2,653
|
man neqst time u ask at correctlar sektion okk? cuz this wrong one and u need ask there.
oqe man? this man works full wokrs man
PHP Code:
SELECT CharName16 FROM _Char WHERE CharID IN ( SELECT I.CharID FROM _Inventory I JOIN _Items T ON I.ItemID = T.ID64 WHERE T.RefItemID = 25834 AND T.Data = 10000 ) --Men wrks only if in inventory cuz to lazy to srch other things man. Pet/Chest/etc man. I will write query menz when back oqe?
|
|
|
10/05/2015, 05:34
|
#3
|
Chat Killer In Duty
elite*gold: 5
Join Date: May 2008
Posts: 16,397
Received Thanks: 6,509
|
Quote:
Originally Posted by Exo
man neqst time u ask at correctlar sektion okk? cuz this wrong one and u need ask there.
oqe man? this man works full wokrs man
PHP Code:
SELECT CharName16
FROM _Char
WHERE CharID IN
(
SELECT I.CharID
FROM _Inventory I
JOIN _Items T
ON I.ItemID = T.ID64
WHERE T.RefItemID = 25834 AND T.Data = 10000
)
--Men wrks only if in inventory cuz to lazy to srch other things man. Pet/Chest/etc man. I will write query menz when back oqe?
|
no need to talk like an asshat
|
|
|
10/05/2015, 10:45
|
#4
|
elite*gold: 21
Join Date: Mar 2011
Posts: 1,613
Received Thanks: 1,122
|
Here, it'll check the pet inventory and storage and inventory, it might not work well.. though i did my best.
Code:
USE SRO_VT_SHARD
DECLARE @ItemCodeNameToCheck varchar(max) = 'ITEM_ETC_ARENA_COIN';
CREATE TABLE #_mGotArena (
CharName16 VARCHAR(32) NOT NULL,
CodeName128 VARCHAR(MAX) NOT NULL,
Count INT NOT NULL)
INSERT INTO #_mGotArena
SELECT C.CharName16, R.CodeName128, IT.Data
FROM _Char C
JOIN _Inventory I ON C.CharID = I.CharID
JOIN _Items IT ON I.ItemID = IT.ID64
JOIN _RefObjCommon R ON IT.RefItemID = R.ID
--JOIN _Chest CT ON IT.ID64 = CT.ItemID
WHERE R.CodeName128 = @ItemCodeNameToCheck
DECLARE @CharName varchar(32)
SELECT @CharName = C.CharName16
FROM _Char C
JOIN _User U ON C.CharID = U.CharID
JOIN _Chest CT ON U.UserJID = CT.UserJID
JOIN _Items IT ON CT.ItemID = IT.ID64
JOIN _RefObjCommon R ON IT.RefItemID = R.ID
WHERE R.CodeName128 = @ItemCodeNameToCheck
IF NOT EXISTS (SELECT CharName16 FROM #_mGotArena WHERE CharName16 = @CharName)
INSERT INTO #_mGotArena
SELECT C.CharName16, R.CodeName128, IT.Data
FROM _Char C
JOIN _User U ON C.CharID = U.CharID
JOIN _Chest CT ON U.UserJID = CT.UserJID
JOIN _Items IT ON CT.ItemID = IT.ID64
JOIN _RefObjCommon R ON IT.RefItemID = R.ID
WHERE R.CodeName128 = @ItemCodeNameToCheck
ELSE
UPDATE U
SET Count += IT.Data
FROM #_mGotArena U
JOIN _Char C ON U.CharName16 = C.CharName16
JOIN _User UX ON C.CharID = UX.CharID
JOIN _Chest CT ON UX.UserJID = CT.UserJID
JOIN _Items IT ON CT.ItemID = IT.ID64
JOIN _RefObjCommon R ON IT.RefItemID = R.ID
WHERE R.CodeName128 = @ItemCodeNameToCheck
DECLARE @CharnameX varchar(32)
SELECT @CharnameX = C.CharName16 FROM _Char C
JOIN _CharCOS CC ON C.CharID = CC.RefCharID
IF NOT EXISTS (SELECT CharName16 FROM #_mGotArena WHERE CharName16 = @CharnameX)
INSERT INTO #_mGotArena
SELECT C.CharName16, R.CodeName128, IT.Data
FROM _Char C
JOIN _CharCOS CC ON C.CharID = CC.RefCharID
JOIN _InvCOS IC ON CC.ID = IC.COSID
JOIN _Items IT ON IC.ItemID = IT.ID64
JOIN _RefObjCommon R ON IT.RefItemID = R.ID
WHERE R.CodeName128 = @ItemCodeNameToCheck
ELSE
UPDATE U
SET Count += IT.Data
FROM #_mGotArena U
JOIN _Char C ON U.CharName16 = C.CharName16
JOIN _CharCOS CC ON C.CharID = CC.RefCharID
JOIN _InvCOS IC ON CC.ID = IC.COSID
JOIN _Items IT ON IC.ItemID = IT.ID64
JOIN _RefObjCommon R ON IT.RefItemID = R.ID
WHERE R.CodeName128 = @ItemCodeNameToCheck
SELECT CharName16, CodeName128, Count
FROM #_mGotArena
WHERE Count > 9999
|
|
|
10/05/2015, 11:23
|
#5
|
elite*gold: 56
Join Date: Oct 2013
Posts: 1,165
Received Thanks: 774
|
Quote:
Originally Posted by Skipper*
Here, it'll check the pet inventory and storage and inventory, it might not work well.. though i did my best.
Code:
USE SRO_VT_SHARD
DECLARE @ItemCodeNameToCheck varchar(max) = 'ITEM_ETC_ARENA_COIN';
CREATE TABLE _UhmUhm (
CharName16 VARCHAR(32) NOT NULL,
CodeName128 VARCHAR(MAX) NOT NULL,
Count INT NOT NULL)
INSERT INTO _UhmUhm
SELECT C.CharName16, R.CodeName128, IT.Data
FROM _Char C
JOIN _Inventory I ON C.CharID = I.CharID
JOIN _Items IT ON I.ItemID = IT.ID64
JOIN _RefObjCommon R ON IT.RefItemID = R.ID
--JOIN _Chest CT ON IT.ID64 = CT.ItemID
WHERE R.CodeName128 = @ItemCodeNameToCheck
DECLARE @CharName varchar(32)
SELECT @CharName = C.CharName16
FROM _Char C
JOIN _User U ON C.CharID = U.CharID
JOIN _Chest CT ON U.UserJID = CT.UserJID
JOIN _Items IT ON CT.ItemID = IT.ID64
JOIN _RefObjCommon R ON IT.RefItemID = R.ID
WHERE R.CodeName128 = @ItemCodeNameToCheck
IF NOT EXISTS (SELECT CharName16 FROM _UhmUhm WHERE CharName16 = @CharName)
INSERT INTO _UhmUhm
SELECT C.CharName16, R.CodeName128, IT.Data
FROM _Char C
JOIN _User U ON C.CharID = U.CharID
JOIN _Chest CT ON U.UserJID = CT.UserJID
JOIN _Items IT ON CT.ItemID = IT.ID64
JOIN _RefObjCommon R ON IT.RefItemID = R.ID
WHERE R.CodeName128 = @ItemCodeNameToCheck
ELSE
UPDATE U
SET Count += IT.Data
FROM _UhmUhm U
JOIN _Char C ON U.CharName16 = C.CharName16
JOIN _User UX ON C.CharID = UX.CharID
JOIN _Chest CT ON UX.UserJID = CT.UserJID
JOIN _Items IT ON CT.ItemID = IT.ID64
JOIN _RefObjCommon R ON IT.RefItemID = R.ID
WHERE R.CodeName128 = @ItemCodeNameToCheck
DECLARE @CharnameX varchar(32)
SELECT @CharnameX = C.CharName16 FROM _Char C
JOIN _CharCOS CC ON C.CharID = CC.RefCharID
IF NOT EXISTS (SELECT CharName16 FROM _UhmUhm WHERE CharName16 = @CharnameX)
INSERT INTO _UhmUhm
SELECT C.CharName16, R.CodeName128, IT.Data
FROM _Char C
JOIN _CharCOS CC ON C.CharID = CC.RefCharID
JOIN _InvCOS IC ON CC.ID = IC.COSID
JOIN _Items IT ON IC.ItemID = IT.ID64
JOIN _RefObjCommon R ON IT.RefItemID = R.ID
WHERE R.CodeName128 = @ItemCodeNameToCheck
ELSE
UPDATE U
SET Count += IT.Data
FROM _UhmUhm U
JOIN _Char C ON U.CharName16 = C.CharName16
JOIN _CharCOS CC ON C.CharID = CC.RefCharID
JOIN _InvCOS IC ON CC.ID = IC.COSID
JOIN _Items IT ON IC.ItemID = IT.ID64
JOIN _RefObjCommon R ON IT.RefItemID = R.ID
WHERE R.CodeName128 = @ItemCodeNameToCheck
SELECT CharName16, CodeName128, Count
FROM _UhmUhm
WHERE Count > 9999
|
next time, if you wanna use a table for such stuff use a variable table or atlease a temp table but dont fill people databases with tables they habe such a retarted name.
|
|
|
10/05/2015, 12:00
|
#6
|
elite*gold: 21
Join Date: Mar 2011
Posts: 1,613
Received Thanks: 1,122
|
Quote:
Originally Posted by Syloxx
next time, if you wanna use a table for such stuff use a variable table or atlease a temp table but dont fill people databases with tables they habe such a retarted name.
|
Oh oh you're so fantastic, why didn't you help instead? I didn't care about the names because he'll just use it once or twice not all the time.
However, I updated the query and changed the table to a temp one.
|
|
|
10/05/2015, 12:03
|
#7
|
elite*gold: 56
Join Date: Oct 2013
Posts: 1,165
Received Thanks: 774
|
Quote:
Originally Posted by Skipper*
Oh oh you're so fantastic, why didn't you help instead? I didn't care about the names because he'll just use it once or two not all the time.
However, I updated the query and changed the table to a temp one.
|
well, did you saw me active in elitepvpers the last days (or even weeks)? so how should i help people if i wasnt active?
and yes, he use it only once or maybe twice (or shall i say two) so why using a permanent table?
|
|
|
10/05/2015, 12:17
|
#8
|
elite*gold: 28
Join Date: Aug 2014
Posts: 4,096
Received Thanks: 2,653
|
Quote:
Originally Posted by PortalDark
no need to talk like an asshat
|
Why u no move this man?!
|
|
|
10/05/2015, 12:46
|
#9
|
Chat Killer In Duty
elite*gold: 5
Join Date: May 2008
Posts: 16,397
Received Thanks: 6,509
|
<span itemprop="articleSection">Private SRO Main Discussions / Questions</span> -> P…
#moved to correct section
|
|
|
10/10/2015, 18:34
|
#10
|
elite*gold: 0
Join Date: May 2013
Posts: 1,447
Received Thanks: 1,046
|
Dat should be possible in much less code..
|
|
|
10/10/2015, 19:32
|
#11
|
elite*gold: 28
Join Date: Aug 2014
Posts: 4,096
Received Thanks: 2,653
|
Quote:
Originally Posted by Zed*
Dat should be possible in much less code..
|
If it's just a one-time use then it wouldn't really matter tho.
|
|
|
 |
Similar Threads
|
[Selling] Dota 2 Items Just Check
09/09/2013 - Steam Trading - 8 Replies
Verkaufe ne menge Dota 2 Items.
Sell alot of Dota 2 items.
Einfach Inventar anschaun
Just check my Inventory
Steam Community :: 3P.Xetoxyc
Ich akzeptiere e*gold und PP
I accept e*gold and PP
|
[Buying] Warz Items [ MUST CHECK! =D ]
06/05/2013 - Infestation Trading - 0 Replies
Im looking for items in warz!
Snipers / other pvp items!
What do i got for offer?
4 Steam accounts! ( 1 from 2004!! )
1 Warz Account!
1 League of legends account ( almost all champs, many skins )
2 Runescape accounts
|
[FREE ITEMS]Check it now
05/02/2013 - S4 League Hacks, Bots, Cheats & Exploits - 4 Replies
online games multiplayer games - alaplaya - alaplaya.net
Code: HI1V-R1FW-5H8S-3M86
Free items s4 league
press thanks if i help you
|
WTB some items check.
02/27/2012 - 9Dragons Trading - 2 Replies
hello i just started to play 9D again so i need some items hp/def trinket,gb-ec +7-8-9 bracer and 1 rd deco female,600 def set female, if u have one of those items pm me i got some $ to waste lol
yang server .
|
All times are GMT +1. The time now is 17:19.
|
|