Register for your free account! | Forgot your password?

You last visited: Today at 12:24

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

Advertisement



[Release] Random Gold

Discussion on [Release] Random Gold within the SRO PServer Guides & Releases forum part of the SRO Private Server category.

Reply
 
Old   #1
 
bestprem's Avatar
 
elite*gold: 0
Join Date: Nov 2011
Posts: 353
Received Thanks: 199
[Release] Comatose's Gold Lottery

Random Gold Lottery!!


#*Media Section*

#itemdata_50000.txt
HTML Code:
1	180295	ITEM_KIRO_RANDOM_GOLD	???? ???? ??? (???)	xxx	SN_ITEM_KIRO_RANDOM_GOLD	SN_ITEM_KIRO_RANDOM_GOLD_TT_DESC	1	0	3	3	3	1	180000	3	2	0	1	0	3	0	1	0	0	129	0	0	0	0	0	0	0	1	1	-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	comatose\uniq_point_scroll.ddj	xxx	xxx	1	2	0	0	3	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	1500	????	1	??????                                                                                                                           	-1	RESURRECT	-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	-1	xxx	0	0	0
#textdata_object.txt
HTML Code:
1	SN_ITEM_KIRO_RANDOM_GOLD								Gold Lottery(Kiro)
1	SN_ITEM_KIRO_RANDOM_GOLD_TT_DESC								Gold Lottery(Kiro)

#*Database Section*


#Tables
#_RefObjCommon
HTML Code:
1	180295	ITEM_KIRO_RANDOM_GOLD	???? ???? ??? (???)	xxx	SN_ITEM_KIRO_RANDOM_GOLD	SN_ITEM_KIRO_RANDOM_GOLD_TT_DESC	1	0	3	3	3	1	180000	3	2	0	1	0	3	0	1	0	0	129	0	0	0	0	0	0	0	1	1	-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	comatose\uniq_point_scroll.ddj	xxx	xxx 99999
#_RefObjItem
HTML Code:
99999	1	2	0	0	3	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	1500	????	1	??????                                                                                                                           	-1	RESURRECT	-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	-1	xxx	0	0	0
#Procedures
SRO_VT_SHARDLOG >>>> [_AddLogItem]

Notice:add that query at addlogitem
HTML Code:
IF (@Operation = 41) -- If item used!
BEGIN
    IF (@ItemRefID = 180295) -- RefObjCommon ID (Scroll) (By Kiro)
    BEGIN
    declare @Charname varchar(128)
declare @upper_kiro int = '100000000' declare @lower_kiro int = '10000000'
 declare @random_kiro int = ROUND(((@upper_kiro - @lower_kiro -1) * RAND() + @lower_kiro), 0)
 set @charname = (select CharName16  from sro_vt_shard.dbo._Char where CharID=@CharID)
Update SRO_VT_SHARD.dbo._Char set RemainGold = RemainGold + @random_kiro  where CharName16 = @charname      
end
end
Attached Files
File Type: txt gold lottery by kiro.txt (2.9 KB, 172 views)
bestprem is offline  
Thanks
5 Users
Old 03/01/2014, 04:22   #2
Chat Killer In Duty


 
PortalDark's Avatar
 
elite*gold: 5
Join Date: May 2008
Posts: 16,399
Received Thanks: 6,509
#Approved
PortalDark is offline  
Thanks
2 Users
Old 03/01/2014, 06:01   #3
 
elite*gold: 41
Join Date: Oct 2012
Posts: 2,216
Received Thanks: 1,196
thanks !
Crue* is offline  
Old 03/01/2014, 06:40   #4
 
elite*gold: 0
Join Date: Sep 2013
Posts: 63
Received Thanks: 35
N!Ce keep going
menamoners is offline  
Old 03/01/2014, 10:25   #5
 
elite*gold: 99
Join Date: Jan 2012
Posts: 419
Received Thanks: 95
Old but thank you
Scheffi is offline  
Old 03/01/2014, 14:17   #6
 
elite*gold: 0
Join Date: Sep 2013
Posts: 22
Received Thanks: 9
Nice :3
Wolf Internet Attacker is offline  
Old 03/01/2014, 16:35   #7
 
elite*gold: 50
Join Date: Mar 2013
Posts: 1,153
Received Thanks: 412
ok nice =D
asanoftw is offline  
Old 03/01/2014, 20:25   #8
 
Justin1337*'s Avatar
 
elite*gold: 480
Join Date: Jan 2012
Posts: 655
Received Thanks: 579
Thanks, btw fix your sig :P
Justin1337* is offline  
Thanks
1 User
Old 03/02/2014, 00:48   #9
 
elite*gold: 0
Join Date: Jul 2011
Posts: 265
Received Thanks: 62
Too easy + Too old

anyway thank's .
nourayman is offline  
Old 03/23/2014, 08:12   #10
 
bestprem's Avatar
 
elite*gold: 0
Join Date: Nov 2011
Posts: 353
Received Thanks: 199
i know it it's easy
for beginners :3
bestprem is offline  
Thanks
1 User
Old 03/24/2014, 02:11   #11
 
elite*gold: 0
Join Date: Dec 2007
Posts: 81
Received Thanks: 4
I try it but after TP gold not added :O
Code:
 IF (@ItemRefID = 180295) -- RefObjCommon ID (Scroll) (By Kiro)
BEGIN
declare @Charname varchar(128)
declare @upper_kiro int 
SET @upper_kiro = '100000000' 
declare @lower_kiro int 
SET @lower_kiro = '1000000'
declare @random_kiro int 
SET @random_kiro = ROUND(((@upper_kiro - @lower_kiro -1) * RAND() + @lower_kiro), 0)
set @charname = (select CharName16  from sro_vt_shard_init.dbo._Char where CharID = @CharID)
Update SRO_VT_SHARD_INIT.dbo._Char set RemainGold = RemainGold + @random_kiro  where CharName16 = @charname      
end
No errors in server modules.
lewy1000 is offline  
Old 03/24/2014, 02:59   #12
 
bestprem's Avatar
 
elite*gold: 0
Join Date: Nov 2011
Posts: 353
Received Thanks: 199
Quote:
Originally Posted by lewy1000 View Post
I try it but after TP gold not added :O
Code:
 IF (@ItemRefID = 180295) -- RefObjCommon ID (Scroll) (By Kiro)
BEGIN
declare @Charname varchar(128)
declare @upper_kiro int 
SET @upper_kiro = '100000000' 
declare @lower_kiro int 
SET @lower_kiro = '1000000'
declare @random_kiro int 
SET @random_kiro = ROUND(((@upper_kiro - @lower_kiro -1) * RAND() + @lower_kiro), 0)
set @charname = (select CharName16  from sro_vt_shard_init.dbo._Char where CharID = @CharID)
Update SRO_VT_SHARD_INIT.dbo._Char set RemainGold = RemainGold + @random_kiro  where CharName16 = @charname      
end
No errors in server modules.
Skype:Kerolosmoner
bestprem is offline  
Thanks
1 User
Old 05/12/2018, 10:02   #13
 
silkflo's Avatar
 
elite*gold: 0
Join Date: Nov 2011
Posts: 65
Received Thanks: 5
Maybe late to answer you , but i've got the same problem. So for other who might have no gold added, change the @operation number, i changed for 16 and works
silkflo is offline  
Reply


Similar Threads Similar Threads
[Release]Random S4 Hacks
05/20/2013 - S4 League Hacks, Bots, Cheats & Exploits - 53 Replies
smth
[SALE] Random ISRO chars in random servers CHEAP, from 1$ to 3$
06/03/2012 - Silkroad Online Trading - 4 Replies
Hello, I want to sell all those chars very cheap for PayPal money from 1$ to 3$ , because I need some money to buy usb joystick to play FIFA on pc ^^ If you buy them all, I can sell all those chars for 15$!!! Contacts - skype: myntex2 I ACCEPT PAYPAL ONLY So let's start:
[Release] Random Trainer
12/29/2010 - S4 League Hacks, Bots, Cheats & Exploits - 54 Replies
Hallo, da mir lw war hab ich kurz was gescriptet. Es ist so eine Art "Fun-Trainer", der witzige Random Sachen macht. Einfach eine Zahl in die Inputboxen schreiben und auf Start klicken und S4Leech starten und schon kann man spass haben. Kein Spam, kein Flame. Ich hab einfach random ne Zahl genommen und die dann gesucht und dann gabs das und das, als ich sie änderte. Ich weiss es ist nooblike das der mit AutoIt gescriptet wurde aber ich bin atm zu müde für andere Sprachen. Dafür mal ne...
[Release] Random teleport via database
01/17/2010 - CO2 PServer Guides & Releases - 8 Replies
Ok so I had a similar system on my oooolldd coemu server but seeing as I have no backup of it I figured I'd re-code it. This has proven a very useful learning experience for me. Data structures are not something I've ever been comfortable using and so I've always avoided them like the plague xD. Huge thanks to Korvacs: Your advice is always appreciated. This is for Co1 CoFuture but seeing as it's a database system you can convert it for CoEmu with virtually NO hassle. If people can't...
[RELEASE] SEA 0.1.17 Random TP
07/17/2009 - Dragonica Hacks, Bots, Cheats & Exploits - 4 Replies
Just because I can :P This serves no purpose whatsoever but to randomly teleport you around the map once per second for lulz.



All times are GMT +1. The time now is 12:24.


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.