Sign in to follow this  
Followers 0
goddameit

Random Bonus

5 posts in this topic

Hp5Jd68.jpg


 
In this video, you can see I get different bonus on same item (both item-id are 1101) after I change something in database,
so you can set what you like on each equipment.

 
Download:
code ---
randombonus.patch
sql ---
http://pastebin.com/ais6Tbt9
sample script ---
http://pastebin.com/a64JSGv1


How to use:
1. add special command into your item_db
callfunc "RandomBonusFunc", getuniqueid();

http://i.imgur.com/7kzDdsn.png

2.Modify script to what you like
http://i.imgur.com/x1eL0T3.jpg


Refer:
script4each

Edited by goddameit

Share this post


Link to post
Share on other sites

I wanna say, that's amazing~,jack! :D

你的道具編碼太神奇了 ,錯誤之後竟可以變成唯一的一個編號

因為 getuniqueid 變數存不了吧 ,變數只正負21億範圍 ,

你看你的資料庫 道具編碼是超過 21億, 所以會溢位出一個數 ,

而這個數竟然剛好就是唯一所以 太神奇了~ 傑克!

Edited by Angelmelody

Share this post


Link to post
Share on other sites

I wanna say, that's amazing~,jack! :D

你的道具編碼太神奇了 ,錯誤之後竟可以變成唯一的一個編號

因為 getuniqueid 變數存不了吧 ,變數只正負21億範圍 ,

你看你的資料庫 道具編碼是超過 21億, 所以會溢位出一個數 ,

而這個數竟然剛好就是唯一所以 太神奇了~ 傑克!

Please use only English in this section of the forums.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0