Case 0Dim RndiDim PlyDim ItRndi = Int((500 - 1 + 1) * Rnd) + 1Ply = 499If Rndi > Ply Then Call PlayerMsg(index, "You just mined a gem!", 1) If GetPlayerInvItemNum(index, 24) = 75 Then Call SetPlayerInvItemValue(index, 24, GetPlayerInvItemValue(index, 24) + 1) Call SendInventoryUpdate(index, 24)Else Call SetPlayerInvItemNum(index, 24, 75) Call SetPlayerInvItemValue(index, 24, 1) Call SendInventoryUpdate(index, 24) End IfEnd If
Level: 2/5 (you have to edit a few numbers in the code)Ok, I know baron made the best script ever for mining, but it's way to complicated, and way to expanded if you just want a simple mining script. In the game me and my friends are currently making we just want a "gem mine" where you just have to walk around, and if ur lucky, you'll get a gem. To do this, I got the following script. If anyone else wants to use it, good luck.To get it working, you first need to replace 75 by the item number you want to reward a lucky player. Also, you will need to replace 499 by the chance the player WON'T get lucky (x/500). After that, just place scripted tiles 0 in the area where you want the mine, and ur done!Good luck, I know the script isn't that good (so no use flaming me for it ^_^). If you are gonna use it, good luck.
Well yeah it looks awsome, but I dont know were to put the code
should be obvioushit ctrl+f Sub ScriptedTiles.There. now if you dont know about cases or anything like that. PLEASE GIVE UP NOW.sorry.
Remember that marshmallow from Ghost Busters? marsh is a Canadian version of that.
Hello! I am French and I have found my happiness on your software.