The Code-Bin
Links
Home
Add your code!
All Listings
About
Latest Entry
Featured Scripts
Author's Website
Latest Entries
FFMPEG Thumbnail Scr...
PHP, 0.8KB
Jul. 29, 10:24pm
John
Z80 Assembler, 190 bytes
Feb. 17, 3:36am
John
Z80 Assembler, 176 bytes
Sep. 13, 2:19am
John
Z80 Assembler, 77 bytes
Sep. 13, 2:18am
John
Z80 Assembler, 209 bytes
Sep. 13, 2:17am
Christmas Cracker
Posted by: cocoa | June 1, 2009 @ 12:17am
Java Code
[
Download
]
f(itemId == 962) { int randomPhat = misc.random(10); if(randomPhat == 1) { Engine.playerItems.addItem(p, 1040, 1); } if(randomPhat == 2) { Engine.playerItems.addItem(p, 1038, 1); } if(randomPhat == 0) { Engine.playerItems.addItem(p, 1042, 1); } if(randomPhat == 3) { Engine.playerItems.addItem(p, 1044, 1); } if(randomPhat == 4) { Engine.playerItems.addItem(p, 1046, 1); } if(randomPhat == 5) { Engine.playerItems.addItem(p, 1048, 1); } }
Syntax Highlighting
[
Open in new window
]
Author Comments
50% chance for getting a party hat from a christmas cracker. Add
to ItemOnPlayer.java
Rating
4.42 / 8
172 Votes
http://codebin.yi.org/291
page generated in 0.01 seconds