Jump to content
Sign in to follow this  
goddameit

Random Bonus

Recommended Posts

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.