Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Private Server
You last visited: Today at 08:47

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

Advertisement



Need Query for add item to all player

Discussion on Need Query for add item to all player within the SRO Private Server forum part of the Silkroad Online category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2014
Posts: 3
Received Thanks: 0
Need Query for add item to all player

Need It Fast please, thanks
◄Aَِxٌelَْ► is offline  
Old 10/29/2014, 00:07   #2
 
elite*gold: 0
Join Date: May 2012
Posts: 179
Received Thanks: 54
here you go , just change the "ITEM CODE" to what ever item you want to give then then hit execute and all players will get what ever items you want to send them , hope it helps
Quote:
USE SRO_VT_SHARD
GO
DECLARE @CharName VARCHAR(64),
@ItemCodeName VARCHAR(64) = 'ITEM CODE' --Item's codename
-->Coded by Mountain_Man33
DECLARE item_cur CURSOR FOR
SELECT DISTINCT CharName16 FROM _Char ORDER BY CharName16

OPEN item_cur
FETCH NEXT FROM item_cur INTO @CharName
WHILE @@FETCH_STATUS = 0
BEGIN
EXEC _ADD_ITEM_EXTERN @CharName, @ItemCodeName, 1, 0 --params: CharName, ItemCodeName, Data(quantity or durability), OptLevel
FETCH NEXT FROM item_cur INTO @CharName
END

PRINT @CharName
CLOSE item_cur

DEALLOCATE item_cur
mtnman33 is offline  
Old 10/31/2014, 22:53   #3
 
elite*gold: 0
Join Date: Oct 2014
Posts: 3
Received Thanks: 0
Quote:
Originally Posted by mtnman33 View Post
here you go , just change the "ITEM CODE" to what ever item you want to give then then hit execute and all players will get what ever items you want to send them , hope it helps
Thanks bro
◄Aَِxٌelَْ► is offline  
Closed Thread


Similar Threads Similar Threads
Add Item to NPC Query
12/16/2016 - SRO Guides & Templates - 13 Replies
if someone needs it, use it - will faster many things up :) and you'll get punished for sloppy done work in the past. USE SRO_VT_SHARD /* ITEMS TO NPC FOR GOLD by Caipi */ Declare @ItemID int Declare @yourPrice int Declare @WhichTAB varchar(74) SET @ItemID = 23 /* The Item ID of the Item you want to add to the NPC*/ --## <--
Query for more then one Item
04/09/2013 - SRO Private Server - 8 Replies
G8 guys, I wonder if you know how can I edit this query or if haz another to add more than one item. I am creating an NPC with ALL Avatars and ALL Pets, and one by one, then go to the media and such. Could someone help me with this. I use this query to add items to npcs.
INSERT INTO Item Query?
01/07/2012 - Flyff Private Server - 4 Replies
Gibts ne query um items direkt per query ins inventory / als mail zu senden? Insanityflyff hat dieses ja zB,wenn man ein item auf der homepage auswählt,wirds sofort ins inventory gepackt.. kennt wer den oder einen ähnlichen query :/?
Insert item query
07/31/2011 - Rappelz - 7 Replies
HI all, My commands game001 didnt working, what is the way to inser this : USE GO DECLARE @return_value int EXEC @return_value = .



All times are GMT +2. The time now is 08:47.


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