Jump to content


Photo

Random Bonus

goddameit

  • Please log in to reply
4 replies to this topic

#1 goddameit

goddameit

    Advanced Member

  • Members
  • PipPipPip
  • 56 posts
  • Emulator:Hercules

Posted 23 May 2015 - 06:14 PM

Posted Image


 
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 ---
Attached File  randombonus.patch   1.24K   67 downloads
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, 23 May 2015 - 06:19 PM.

My Releases ; My Paid Services
 
( I usually don't re-check any topic or post )


mbIV1fV.png
 
(If you don't want to pay, then there is no reason that I must help you)

#2 Angelmelody

Angelmelody

    (\ /) ( . .)

  • Members
  • PipPipPip
  • 772 posts
  • Locationnew_1-1,53,111
  • Emulator:Hercules
  • Github:Angelmelody

Posted 25 May 2015 - 04:35 PM

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

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

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

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

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


Edited by Angelmelody, 25 May 2015 - 04:44 PM.

Spoiler


#3 Mysterious

Mysterious

    Advanced Member

  • Administrators
  • 3589 posts
  • LocationProntera ;3
  • Github:Mystery

Posted 26 May 2015 - 12:40 PM

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

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

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

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

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

Please use only English in this section of the forums.


http://upaste.me a paste site with Athena syntax!
Now with the ability to test your athena pastes!


#4 goddameit

goddameit

    Advanced Member

  • Members
  • PipPipPip
  • 56 posts
  • Emulator:Hercules

Posted 30 May 2015 - 06:14 PM

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

Haha, I didn't notice that  :D


My Releases ; My Paid Services
 
( I usually don't re-check any topic or post )


mbIV1fV.png
 
(If you don't want to pay, then there is no reason that I must help you)

#5 violy

violy

    Newbie

  • Members
  • Pip
  • 7 posts
  • Github:violy

Posted 04 June 2016 - 08:08 PM

Thanks


Edited by violy, 05 June 2016 - 07:57 PM.






Also tagged with one or more of these keywords: goddameit

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users


This topic has been visited by 185 user(s)