Register for your free account! | Forgot your password?

You last visited: Today at 09:07

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

Advertisement



Random reward scroll

Discussion on Random reward scroll within the SRO Private Server forum part of the Silkroad Online category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2009
Posts: 974
Received Thanks: 453
Random reward scroll

Code:
IF ( @ operation = '41') AND @ itemRefID = '***' -- scroll id
Begin 

select @ charname = CharName16 from SRO_VT_SHARD.dbo._Char where CharID = @ ChariD
exec [SRO_VT_SHARD].[dbo].[_ADD_ITEM_EXTERN] @ charname,'ITEM_MALL_DAMAGE_INC_ABS_10P_SCROLL',1, 1
exec [SRO_VT_SHARD].[dbo].[_ADD_ITEM_EXTERN] @ charname,'ITEM_MALL_AVATAR_M_NASRUN_UNIQUE',1,1 
end
How to make this scroll to give a random reward?
leo2111 is offline  
Old 12/03/2016, 22:00   #2
 
elite*gold: 0
Join Date: Sep 2016
Posts: 262
Received Thanks: 71
By realizing that your signature is the most cringiest thing ever.

NoIdeaForAName is offline  
Old 12/04/2016, 01:44   #3
 
DeviasOnline's Avatar
 
elite*gold: 85
Join Date: Sep 2008
Posts: 389
Received Thanks: 153
or :
DeviasOnline is offline  
Old 12/04/2016, 02:50   #4
 
elite*gold: 0
Join Date: Feb 2016
Posts: 652
Received Thanks: 342
Quote:
Originally Posted by leo2111 View Post
Code:
IF ( @ operation = '41') AND @ itemRefID = '***' -- scroll id
Begin 

select @ charname = CharName16 from SRO_VT_SHARD.dbo._Char where CharID = @ ChariD
exec [SRO_VT_SHARD].[dbo].[_ADD_ITEM_EXTERN] @ charname,'ITEM_MALL_DAMAGE_INC_ABS_10P_SCROLL',1, 1
exec [SRO_VT_SHARD].[dbo].[_ADD_ITEM_EXTERN] @ charname,'ITEM_MALL_AVATAR_M_NASRUN_UNIQUE',1,1 
end
How to make this scroll to give a random reward?
Hi, that totally wrong,
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:
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  
Thanks
1 User
Old 12/04/2016, 14:26   #5
 
elite*gold: 0
Join Date: Jan 2009
Posts: 974
Received Thanks: 453
Quote:
Originally Posted by EdwardTeach+- View Post
Hi, that totally wrong,
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:
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
Thank you! This is what I actually wanted to know.
Best regards!

The procedure as it is right now is wrong , but I modified it and everything works fine, thank you
leo2111 is offline  
Old 12/05/2016, 14:45   #6
 
WickedNite.'s Avatar
 
elite*gold: 15
Join Date: Jul 2014
Posts: 1,616
Received Thanks: 1,377
That's the easy approach though...
WickedNite. is offline  
Old 12/05/2016, 15:29   #7
 
D3vil Power's Avatar
 
elite*gold: 0
Join Date: Nov 2016
Posts: 27
Received Thanks: 38
#_TimedJob

PHP Code:
if(@JobID'xxx') -- scroll id
        begin 
            EXEC 
[SRO_VT_ACCOUNT].[CGI].[CGI_WebPurchaseSilk]  [MENTION=4225629]orderi[/MENTION]NULL,  [MENTION=831308]userid[/MENTION] = [MENTION=339306]newuser[/MENTION]ID,  [MENTION=1417196]pkg[/MENTION]ID NULL,  [MENTION=2856536]numsi[/MENTION]lk 50,  [MENTION=865581]PRICE[/MENTION] = NULL 
            set 
[MENTION=351728]new[/MENTION]JobID = @@identity 
            
return [MENTION=351728]new[/MENTION]JobID 
        end 
Try this ..
that's Scroll gift coin form ItemMall
D3vil Power is offline  
Old 12/07/2016, 02:32   #8


 
Spidy.'s Avatar
 
elite*gold: 1
Join Date: Oct 2012
Posts: 8,423
Received Thanks: 3,242
Quote:
Originally Posted by leo2111 View Post
Thank you! This is what I actually wanted to know.
Best regards!

The procedure as it is right now is wrong , but I modified it and everything works fine, thank you
^
#Closed
Spidy. is offline  
Thanks
1 User
Closed Thread


Similar Threads Similar Threads
Random Stat Scroll Question
04/20/2016 - Flyff Private Server - 2 Replies
Hello Epvp, anyone who can tell me how can I change the Stats of Random Scroll (Scroll of STR, Scroll of DEX, Scroll of INT, Scroll of STA) I want to change it to random stats by 150 randomized by 10, 20, 30, 40 up to 150 and Here's the Code void CDPSrvr::OnRandomScroll( CAr & ar, DPID dpidCache, DPID dpidUser, LPBYTE lpbuf, u_long uBufSize ) {
Reward Scroll.
07/20/2014 - SRO Private Server - 1 Replies
Hi. I am trying to do a reward scroll which would give you a random item when you click on it... I think it can be done setting right params on _refObjItem table but I just cant find the right params. I've do some researchs and tests on my testserver and I've figured out that param is for item usage, is for item loads, for skill usage.. but I havent find any param that creates another item once the scroll is used.. Anyone have an idea how it can be done?
random reward 1 time only FAST
01/11/2014 - Dragon City - 6 Replies
https://apps.facebook.com/dragoncity/?fanpage=2D0C 44B2EE67620476084A176872E035 i got 11kk gold,wished it was food or gems but its fine what ever :P press thanks and say what u got
[Question] How to use Random Properties Scroll
05/03/2011 - Grand Chase - 3 Replies
Anyone know how to use Random Properties Scroll??.. can you teach me?? thnx
[Mini-Release] HeroCards w/ random reward
07/08/2009 - CO2 PServer Guides & Releases - 11 Replies
Ok so not a huge release but I figured I'd give people an example of how to do some nice "random" cp rewards (or any rewards tbh) from item use. *NOTE* For the record, this is for CoEmu2.0.nano, obvious from the scripting but just figured I'd make sure nubs knew. Under Use item put this anywhere in the case section. Simply look for case numbers, paste this one line above one of them so you aren't cutting into any other script. Again you should know this from adding/modifying ANYTHING in...



All times are GMT +1. The time now is 09:07.


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