Thread: [NIO]How do i add a dice command[NIO]

Results 1 to 5 of 5
  1. #1 [NIO]How do i add a dice command[NIO] 
    Registered Member ozlaya's Avatar
    Join Date
    May 2014
    Posts
    161
    Thanks given
    2
    Thanks received
    11
    Rep Power
    11
    Hello runeserver
    This is probably really basic but how do i add a dice command so that it makes me say a number between 1 - 100

    Skype: oscarmillard If you want to help me out

    Ozlaya
    Reply With Quote  
     

  2. #2  
    Registered Member Adamq's Avatar
    Join Date
    Oct 2014
    Posts
    175
    Thanks given
    10
    Thanks received
    19
    Rep Power
    13
    Code:
    			if (playerCommand.startsWith("roll")) {
    				if(c.inWild()) {
    				c.sendMessage("Dicing isn't safe in the wilderness.");
    				return;
    				}
    				c.forcedText = "["+ Misc.optimizeText(c.playerName) +"] Just Rolled "+ Misc.random(100) +" On The Dice!";
    				c.forcedChatUpdateRequired = true;
    				c.updateRequired = true;
    				c.sendMessage("you roll the dice...");
    				}
    }
    Attached image
    Reply With Quote  
     

  3. #3  
    Registered Member ozlaya's Avatar
    Join Date
    May 2014
    Posts
    161
    Thanks given
    2
    Thanks received
    11
    Rep Power
    11
    Quote Originally Posted by Adamq View Post
    Code:
    			if (playerCommand.startsWith("roll")) {
    				if(c.inWild()) {
    				c.sendMessage("Dicing isn't safe in the wilderness.");
    				return;
    				}
    				c.forcedText = "["+ Misc.optimizeText(c.playerName) +"] Just Rolled "+ Misc.random(100) +" On The Dice!";
    				c.forcedChatUpdateRequired = true;
    				c.updateRequired = true;
    				c.sendMessage("you roll the dice...");
    				}
    }
    U sure this is 562?
    Reply With Quote  
     

  4. #4  
    Registered Member Adamq's Avatar
    Join Date
    Oct 2014
    Posts
    175
    Thanks given
    10
    Thanks received
    19
    Rep Power
    13
    Quote Originally Posted by ozlaya View Post
    U sure this is 562?
    Its 317, but im sure you can figure it out with that i guess
    Attached image
    Reply With Quote  
     

  5. #5  
    Registered Member ozlaya's Avatar
    Join Date
    May 2014
    Posts
    161
    Thanks given
    2
    Thanks received
    11
    Rep Power
    11
    Quote Originally Posted by Adamq View Post
    Its 317, but im sure you can figure it out with that i guess
    converted it and got 52 errors -_-
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 1
    Last Post: 11-12-2013, 09:57 PM
  2. How do i add a ::home command to matrix 718
    By scarlet nite in forum Help
    Replies: 17
    Last Post: 07-25-2013, 08:48 PM
  3. How do I add an ::xtele command?
    By Cosmic95 in forum Help
    Replies: 6
    Last Post: 10-08-2011, 03:12 AM
  4. Replies: 1
    Last Post: 10-07-2010, 11:57 PM
  5. how do i add pvp (::pvp command) (508/525)
    By international in forum Help
    Replies: 3
    Last Post: 04-13-2010, 08:53 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •