Jump to content
  • 0
Sign in to follow this  
dyltank

Need some commands fully working. [317][PI][Paypal]

Question

Heya, basically I need the following commands working:
::players which shows names of all players on a scrollable list.
::dice which picks a random number between 1-100 and says it out loud.
::itemsondeath which well.. shows items kept on death (currently have no idea how to do this.. I have the interfaces)
add a timer to my ::kickall which broadcasts over every other player's screens how long to go.
::bpin to lock/unlock bank.

I will pay via paypal; a reasonable price to suit the quality of the job done.
SKYPE: dylan.lange411

THANKS!

Share this post


Link to post
Share on other sites

28 answers to this question

Recommended Posts

  • 0
Replace the line

[code]System.out.println(result);[/code]

with this:

[code]for (Player p : World.getInstance().getPlayers()) {
if (p == null)
continue;
p.sendMessage(player.getUsername() + " diced " + result + " on their dice roll.");
}[/code]

It might not be 100% correct, but you should be able to figure it out by looking at other commands.

Share this post


Link to post
Share on other sites
  • 0
i changed that line to other 1
i only still got 1 error... its "random"
can u help me?
the error is
[code]src\server\model\players\packets\Commands.java:112: cannot find symbol
symbol : variable Random
location: class server.model.players.packets.Commands
c.forcedChat("[" + c.properName + "] just rolled " + Ran
dom + "with their dice");
^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
Press any key to continue . . .[/code]

thanks again :)

Share this post


Link to post
Share on other sites
  • 0
[quote name='kareemloser']well.. nice thefree3.. but he already done it :) and he dont need the yell :)
goodjob bro :)
eda bdk eshe pm me.[/QUOTE]
kk ty ;)

Share this post


Link to post
Share on other sites
  • 0
[code]c.forcedChat("[" + c.properName + "] just rolled " + result + "with their dice");[/code]

You had [I]Random[/I] instead of [I]result[/I].

Share this post


Link to post
Share on other sites
  • 0
[quote name='Nouish']Even though that yell command would work; the code itself is horrid.[/QUOTE]
it work to me perfectly and im still new to coding and write half of it by my self XD

Share this post


Link to post
Share on other sites
  • 0
thefree3 do u know how to make the chat appear in the cc??
i made it but with lootshare massage l00l

Share this post


Link to post
Share on other sites
Sign in to follow this  

×