Need Dice Rolling Like RS

Discussion in 'Archived: Plugin Requests' started by PureTurmoil, Jun 18, 2012.

  1. Offline

    PureTurmoil

    hey i used to play rs and i thought it would be a great idea to have this on my server. I wouldnt need it to handle giving out the money just broadcasting a number between 1-100 or a set amount using the /roll command or something simalar. thanks alot
     
  2. Offline

    Ne0nx3r0

  3. Offline

    PureTurmoil

    RuneScape

    runescape come on this cant be hard to code, and no i cant do im a c++ guy

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 26, 2016
  4. Offline

    Ne0nx3r0

    Oddly, that's a common excuse in this section. Java is an astoundingly easy language to learn, I'm sure you'll pick it up just fine.

    That said, your post doesn't give much detail into what you actually want. I was never into Runescape, so I don't know what you are talking about.
     
  5. Offline

    Lonesface

    I recently made something similar to this for my server. If you want I can write up one like it. (Mine does a random effect to the player after he uses it so I'm remaking it) Refrain from bumping, I'll upload it and send it to you here.

    http://puu.sh/BZWn
    Enjoy!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 26, 2016
    llamasaylol likes this.
  6. Offline

    PureTurmoil

    just tested i get a severe error
     
  7. Offline

    Lonesface

    You need Java 7.
     
    llamasaylol likes this.
  8. Offline

    kezz101

    C++ and Java are essentially the same... I know them both and not much changes...
     
  9. Offline

    Ne0nx3r0

    More like you need to compile under Java 6 ; ).
     
  10. Offline

    Lonesface

    Nah, everyone should upgrade to Java 7.
    I deleted the source after I tested for bugs, so I really can't do Java 6 for him anyways. Lol
     
    llamasaylol likes this.
  11. Offline

    PureTurmoil

    does my server machine use java to run the server?
     
  12. Offline

    Lonesface

    Yes it does. Do you have full access to this server, or is it a server hosted for you on someone else's machine? And if you didn't know what I mean there.. Is this a VPS, home computer, or Dedicated Server? or is it some Minecraft server host that only uses Java 6?
     
    llamasaylol likes this.
  13. Offline

    llamasaylol

    Why would one want to degrade to Java 6? It would be better for the person to just upgrade to 7.
     
  14. Offline

    PureTurmoil

    i own the server machine its a dedicated 24/7, i just checked and i have 64 bit jre6 installed on it, from past experience with minecraft it works bet with the last java 6u32, on java 7 i cant get any computers to load miencraft from a fresh install
     
  15. Offline

    Lonesface

    If you run the server from a batch file you have to change the java path of the batch file in notepad.

    Code:
    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre7\bin\java.exe" -Xmx2048M -Xms2048M -jar craftbukkit.jar
    PAUSE

    ^^ Put that in the batch file if you use one.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 26, 2016
    llamasaylol likes this.
  16. Offline

    PureTurmoil

    yea but i dont use the jre7
    and couldnt this corrupt other plugins
     
  17. Offline

    Lonesface

    Uh, no? jre7 has everything jre6 has. Plus you're able to install both and just run whichever one that isn't causing errors.
    Edit: If you're really really wanting it in Java 6 I can take a few minutes and make it once again.
     
    llamasaylol likes this.
  18. Offline

    Ne0nx3r0

    This might not be the case anymore (I'm not convinced it isn't though), but time was most plugins were compiled using 6 because many servers used 6. A 6 jar goes to 7, but the reverse is not true. For most plugins from a coding perspective the upgrade doesn't add much if anything practically speaking, so it's simpler to just compile under 6 even if you are using 7, to avoid these conflicts.

    This is mostly advice for plugins that are released for community consumption. Private plugins just need to be <= the version of Java that's run on the server.
     
  19. Offline

    Lonesface

    Yes, but if everyone starts compiling in Java 7, the majority of server owners will go to 7 as well. Well, that or they'll just rage on the forums saying that the plugins don't work anymore..
     
    llamasaylol likes this.
  20. Offline

    Ne0nx3r0

    Well you can certainly compile your plugins in 7 if that's your goal; but I prefer to avoid the additional requests for my plugins just to save ten seconds setting my environment when I setup a new project.

    As I said before, for most people there's no practical difference in the two, from the perspective of a plugin. (I'm open to convincing on this though if someone knows specific things JRE7 takes advantage of in memory/etc., that it wont use because a jar is jre6)
     
  21. Offline

    PureTurmoil

    so can u make in java 6 please ;P
     
  22. Offline

    Lonesface

    Alright..

    http://puu.sh/CdMk
    Once again, enjoy!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 26, 2016
    llamasaylol likes this.
  23. Offline

    PureTurmoil

    ok i can do it now but now i only roll 85's idk if something is wrong?

    well loneface has it pretty much done it just needs to print out a random number between 1-100

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 26, 2016
  24. Offline

    Lonesface

    Hm.. Didn't do that on my server. I'll do some additional work.

    http://puu.sh/CqpV
    Here you go, sorry for the above problem.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 26, 2016
    llamasaylol likes this.
  25. Offline

    LexLaiden

  26. Offline

    trusebruse

    well thats not an roll ^^ i guess he wants a plugin to do, /roll and a nuber 1-100 show up :3
     
  27. Offline

    LexLaiden

    Oh. OK.
     

Share This Page