Does anyone know if RZ have a full guide on how to use math.random ?
I've searched and saw Shawn's but I can't really understand on how to use it.
I'm working on something like using math.random to make a NPC 'scroll' that certain item & it has 30% chance of failure. Upon failure item is destroyed.
For destroying the item , I've dug out a function from VindicatedStory source. Please do let me know if this function won't work for what I'm trying to do.
public void removeEquipFromSlot(int slot) {
MapleInventoryManipulator.removeFromSlot(getClient(), MapleInventoryType.EQUIP, (short) slot, (short) 1, false);
}


Reply With Quote![[Help]Using Math.Random](http://ragezone.com/hyper728.png)


