GuessTheNumber

Moved

Total Downloads: 1,151 - First Release: Jul 18, 2016 - Last Update: May 9, 2017

5/5, 20 likes
  1. You need to set limitAttemptsEnabler to true.
     
  2. eventStart(6 line) - in lang file, can not be translated.
     
  3. As of version 1.1.0, eventStart is obsolete.
    It will be using numberNotice instead as it uses min/maxNumber from configuration file.
    I'll make a quick update for 1.1.1 by removing eventStart.
     
  4. Dora updated Guess The Number with a new update entry:

    1.1.1

     
  5. can you add timer for autoevent end? you know so its fully automated, would be nice to have enable true/false and how much time the event is a live. Also add please XP reward true/false so we can choose between if serverrewards/economics are on ;)
     
  6. Oh yeah. I actually forget to implement a timer for the autoevent or else it will never end if someone never win.
    Right, I also thought of enable/disable XP system as well after implementing support for serverrewards/economics.
    I'll start working on it tomorrow. :p
     
  7. Dora updated Guess The Number with a new update entry:

    1.2.0

     
  8. Awesome update Still could really use a console command to manually run thx
     
  9. I might take some time on this. As it seems like to me, I have to copypasta all ova again. Might need to redesign my coding structure for code-usability on the console command.
     
  10. add with start command in console also some messages, would be great to have in config option for show in console true/false when on true it would say when the event starts and whats the secret number, maybe but as a second option true/false on print player number suggestions when in console you would see what players do - its only for control had tody one prick trying to be like smart that he did the winning number but nothing happened lol... and also permission something like admincansee where you would see ingame in chat printed players numbers, not sure about this cause spam lag :)
     
  11. The error occurs when the correct answer
    Code:
    03:56 [Error] Failed to call hook 'numberReply' on plugin 'GuessTheNumber v1.2.0' (FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.)
    03:56 [Debug]   at System.String.FormatHelper (System.Text.StringBuilder result, IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0
      at System.String.Format (IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0
      at System.String.Format (System.String format, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.GuessTheNumber.Lang (System.String key, System.String id, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.GuessTheNumber.numberReply (.BasePlayer player, System.String cmd, System.String[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.GuessTheNumber.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 
     
  12. Can I see your config file & lang file?

    I think it might be your lang file being outdated or have error in it.
    [DOUBLEPOST=1468989336][/DOUBLEPOST]
    I can do "consoleNumberEnabler" that shows player number in the console. It will be quite flooding if your server is huge and many people is participating.

    Showing in-game will be difficult.
    I also took note of displaying when the event starts. What I can do is to display the actual time before event start but I cannot do like "5 minutes till event start"
     
    Last edited by a moderator: Jul 20, 2016
  13. No need like 5 mins to event start :) I just need in console sentence that: Guess the number has started, the number is ##
     
  14. Oh so that what you wanted. That is simple. I can do that.
     
  15. Also message like: Guess The Number has ended, nobody guessed the number.
    optinal if you could do: Guess The Number has ended, nobody guessed the number, closes was <player> with <number> :)
     
  16. "Guess The Number has ended, nobody guessed the number." is already in the plugin.
    For the optimal part. Its possible but take quite sometime. As i have to store the value of each number they posted and analyze and see who is the closest. You can say its a waste of time to show this bit more of info.
     
  17. It is, you know mornings ;) I ment btw a console message that event ended :)
     
  18. Hhaha I can do that easily.
    Probably v1.2.1 or 1.3.
     
  19. when you guess the number, you take XP. But if you have more attempts, you can type this number again and abuse it. (Event does not end when the player guessing)
     
  20. Enable "maximumAttemptsEnabler" to true. and set "maximumAttempts" to 5 if you do not want player to guess too much.
    Enable "autoEventEndEnabler" to true and set "autoEventInterval" to like 120(2min) for the event to end automatically if no one guess it correctly.
    If you do not have this in your config.json, means your plugin is outdated.