Wulf submitted a new resource:
Roll the Dice - Feeling lucky? Roll one or multiple dice to get a random number
Read more about this resource...
Dice
Moved
Total Downloads: 623 - First Release: Oct 17, 2014 - Last Update: May 25, 2017
- 4.33333/5, 6 likes
-
Wulf Community Admin
-
Wulf Community Admin
Wulf updated Roll the Dice with a new update entry:
Added support for /help plugins
-
Unknown chat command dice???
-
Wulf Community Admin
-
ok thx
-
Wulf Community Admin
Wulf updated Dice with a new update entry:
Renamed to Dice and other minor changes
-
doesnt work. the /roll command
-
Wulf Community Admin
-
Player did this and it froze my server
1:14 AM [Info] [Logger] mindthings <8 LvL> ran chat command: /dice 99999999999999999999999999999999999999999999999999 -
Wulf Community Admin
-
Wulf Community Admin
Wulf updated Dice with a new update entry:
Added dice limit of 1000 to prevent abuse
-
Run against 99 quindecillion. That's impressive.
-
Wulf Community Admin
Wulf updated Dice with a new update entry:
Update for latest Oxide builds 266+
-
My topdog wulf
Code:Oxide] 8:34 PM [Error] Failed to call hook 'cmdRollDice' on plugin 'Dice' (IndexOutOfRangeException: Array index is out of range.) [Oxide] 8:34 PM [Debug] at NLua.MetaFunctions.GetMethodInternal (LuaState luaState) [0x00000] in <filename unknown>:0 at NLua.MetaFunctions.GetMethod (LuaState luaState) [0x00000] in <filename unknown>:0 at (wrapper native-to-managed) NLua.MetaFunctions:GetMethod (KeraLua.LuaState) at (wrapper managed-to-native) KeraLua.NativeMethods:LuaNetPCall (intptr,int,int,int) at KeraLua.Lua.LuaNetPCall (IntPtr luaState, Int32 nArgs, Int32 nResults, Int32 errfunc) [0x00000] in <filename unknown>:0 at NLua.LuaLib.LuaPCall (LuaState luaState, Int32 nArgs, Int32 nResults, Int32 errfunc) [0x00000] in <filename unknown>:0 at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 Jack Daniel Sama was killed by [GR] OverCooked Noodles
-
Can you just make a new Funktion with Dice?
I want to use the command /Dice .. 1h = 1/dice
You can roll from 0-100
If you hit 0-25 you got Trash items (Animal Fat, Cloth, Bone,Stone Hatchet...)
If you hit25-50 you got some Resources (Wood,Sulfur,Stone...)
if you hit50-75 you got some Bp (Rdm Bp..)
If you hit 75-100 you got Armor (Weapons, Rockets...)
it's possible to do a plugin like that? -
Wulf Community Admin
-
It doesn't say how many dice you roll. This is dumb! Lol. You need to tell people how many dice they rolled. Otherwise I can say, I rolled 2 dice and got an 11, but really I rolled 4 dice and got an 11, so odds are shifted.
You follow? Take the count variable and publish it to the message in game. Player Y rolled X dice and got a total of #. K?
[DOUBLEPOST=1433024696][/DOUBLEPOST]I fixed it. Here are the key things I did.
Find
Code:local number = tostring(total)
Code:local dicecount = tostring(count)
Code:local message = self.Config.Messages.Rolled:gsub("{player}", player.displayName):gsub("{number}", number)
Code:local message = self.Config.Messages.Rolled:gsub("{player}", player.displayName):gsub("{number}", number):gsub("{dicecount}", dicecount)
Code:self.Config.Messages.Rolled = self.Config.Messages.Rolled or "{player} rolled {number}"
Code:self.Config.Messages.Rolled = self.Config.Messages.Rolled or "{player} rolled {number} with {dicecount} dice."
Code:"Rolled": "{player} rolled {number} with {dicecount} dice."
-
Wulf Community Admin
-
Hehe. It's really nice. I totally can't make code for crap. But I can understand usually.
-
Bro are you able to effectively turn this into a higher lower type game? and if so would it be hard?