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
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
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
[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...