Rattlehead 
Master
 
Posts: 290
Likes Given: 3
Likes Received: 8 in 6 posts
Joined: Jun 2012
Reputation: 8
![]()
|
RE: R99
(04-21-2013 07:31 PM)UltimaAku Wrote: Your right Art, it stops at 99, but if you want to make an item rarer than 99, you would have to add a variance in your script.
At 99, theres a 1% chance of dropping the loot (i think?) so if you want it lower add this to your npc
ON=@DEATH
VAR.RAND=<EVAL {1 1000}>
IF (<VAR.RAND><=5) //0.5% Chance Loot Drop
NEWITEM=i_something_rare
ACT.BOUNCE
RETURN 0
ENDIF
It does add a variance on R100 but it seems to only make it more common than R99, which i dont understand...
using vars is actually a bad idea, use locals instead:
ON=@DEATH
LOCAL.RAND=<EVAL {1 1000}>
IF (<LOCAL.RAND><=5) //0.5% Chance Loot Drop
SERV.NEWITEM i_something_rare
NEW.CONT <SRC.FINDLAYER.21.UID>
RETURN 0
ENDIF
Rx is ok to use i guess, but u have better control if u use ur own algorithm, please correct me if i am wrong.
(This post was last modified: 04-27-2013 05:47 PM by Rattlehead.)
|
|
04-27-2013 05:43 PM |
|
|