Register for your free account! | Forgot your password?

You last visited: Today at 11:14

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

Advertisement



Scroll Random item

Discussion on Scroll Random item within the SRO Private Server forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2014
Posts: 218
Received Thanks: 30
Scroll Random item

i Want Make scroll after click take reward random item

UP
revldo1 is offline  
Old 08/12/2017, 16:07   #2
 
elite*gold: 0
Join Date: Feb 2016
Posts: 652
Received Thanks: 342
Hi
To make a scroll give a random Reward,
-1st you'll have to create a table with like "20 Codename or less that you need that scroll when someone use it gave him random reward from these 20 codename u choice in this table"
and then you'll make a producer

Code:
Code:
BEGIN
declare @ CharName varchar(25) = (select CharName16 from SRO_VT_SHARD.._Char where CharID=@ CharID)
declare @ itemCodeName varchar(MAX) = (Select  1 CodeName from _YourTableName order by RAND()))
exec SRO_VT_SHARD.._ADD_ITEM_EXTERN @ charname @ itemCodeName,1,0
end
that make it exec on AddLogItem
EdwardTeach+- is offline  
Old 08/12/2017, 17:09   #3
 
elite*gold: 0
Join Date: Aug 2017
Posts: 21
Received Thanks: 3
Quote:
Originally Posted by revldo1 View Post
i Want Make scroll after click take reward random item

UP
Scroll

RefObjCommon
PHP Code:
1    50077    ITEM_VALYTR_SPECIAL    ?????    xxx    SN_ITEM_VALYTR_SPECIAL    SN_ITEM_VALYTR_SPECIAL_TT_DESC    1    0    3    3    3    1    180000    3    0    1    1    1    255    0    1    0    0    1    0    100    0    0    0    0    0    -1    0    -1    0    -1    0    -1    0    -1    0    0    0    0    0    0    0    100    0    0    0    xxx    item\etc\drop_mall_scroll.bsr    item\etc\silk_scroll.ddj    xxx    xxx    61607 
RefObjItem
PHP Code:
61607    1    2    0    0    1    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    1000    ????    1    ??????                                                                                                                               -1    RESURRECT    1000    COOLTIME:0x00000000    -1    xxx    -1    xxx    -1    xxx    -1    xxx    -1    xxx    -1    xxx    -1    xxx    -1    xxx    -1    xxx    -1    xxx    -1    xxx    -1    xxx    -1    xxx    -1    xxx    -1    xxx    -1    xxx    0    0    0 
SHARDLOG

AddLogItem

Code:
 IF ( [MENTION=1059401]operation[/MENTION] = '41') AND [MENTION=1134588]item[/MENTION]RefID = '50077' -- scroll id
   BEGIN
declare [MENTION=3898309]charname[/MENTION]6 varchar(64) 
Select [MENTION=3898309]charname[/MENTION]6=CharName16 from SRO_VT_SHARD.dbo._Char where CharID = [MENTION=395373]Chari[/MENTION]D 
declare [MENTION=1994693]lottery[/MENTION]Avatar varchar(129)
set [MENTION=1994693]lottery[/MENTION]Avatar = (SELECT TOP 1 GiftItems FROM SRO_VT_SHARDLOG.dbo._Random_YSRO_ITEM ORDER BY NEWID())
    exec SRO_VT_SHARD.dbo._ADD_ITEM_EXTERN [MENTION=3898309]charname[/MENTION]6 [MENTION=1994693]lottery[/MENTION]Avatar,1,0
   end
SHARDLOG Table

PHP Code:
USE [SRO_VT_SHARDLOG]
GO

/****** Object:  Table [dbo].[_Random_VALTYR_ITEM]    Script Date: 12.08.2017 15:07:48 ******/
DROP TABLE [dbo].[_Random_VALTYR_ITEM]
GO

/****** Object:  Table [dbo].[_Random_VALTYR_ITEM]    Script Date: 12.08.2017 15:07:48 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE 
[dbo].[_Random_VALTYR_ITEM](
    [
GiftItems] [varchar](129NULL,
    [
SpecialItems] [varchar](129NULL,
    [
PremItems] [varchar](129NULL
ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO 
Valtyr is offline  
Reply


Similar Threads Similar Threads
[Released] Monster legends (Random Gold) (Random Food) (Random Exp)
02/03/2015 - Facebook - 6 Replies
Monster legends New Tools !! *1 - Random Gold *2 - Random Food *3 - Random Exp All Tested And Working 100% Without Any Problem :handsdown: !!! Link
DC Random 8 -> 100 Gems + Random 3M --> 18 M Food + Random 3M --> 18M Gold
01/24/2015 - Dragon City - 25 Replies
DC Random 8 -> 100 Gems + Random 3M --> 18 M Food + Random 3M --> 18M Gold Dragon City Gem + Gold + Food +Exp
Java Color.rgb(random,random,random)
05/19/2014 - Java - 4 Replies
Guten Abend liebe Community, ich habe ein Anliegen. Wie ist es möglich bei der Methode : setTextColor(Color.rgb(0,0,0)); anstatt (0,0,0) 3 random Integer zu verwenden wenn ja wie? Ich habe es mal so probiert: final Random r = new Random();



All times are GMT +1. The time now is 11:17.


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.