Thread: Vencillio Base EASIER COMMAND STARTERS/STAFF YELL / FULL SPOON FED GUIDE

Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1 Vencillio Base EASIER COMMAND STARTERS/STAFF YELL / FULL SPOON FED GUIDE 
    Registered Member 1m6n29s9gmxh's Avatar
    Join Date
    Jan 2017
    Posts
    430
    Thanks given
    32
    Thanks received
    100
    Rep Power
    40
    R-S Admin Response  using ;; to start any command.
    Ok so first of all let me introduce what i'm releasing, this is really simple, yet no other 317 i've played managed to actually do this, and players from 718s really like this feature.
    What you will be doing - First we will be making it so players can use ;; to use any command, on all 718s this is a basic feature but on 317s noone has this. Instead they have just :: to start a command. Not many people like using shift for it, so why not give both options.
    First go to your client then find Client.java then find this
    Code:
    (inputString.startsWith("::"))
    replace it with
    Code:
    (inputString.startsWith("::") || inputString.startsWith(";;"))
    Now players will be able to use ;;home to teleport home, or ;;yell to yell or ;;ban to ban (mods+ ban obv).
    Spoiler for Example of what you're adding:
    Attached image



    R-S Admin Response  Using ' to yell.

    Now the next part, making it so players can yell using '. Example 'hello who wants to be reported?
    In client.java add this above what we did earlier.
    Code:
    		if (inputString.startsWith("'"))
    						inputString = "::" + inputString;
    Then on your vencillio source go to com.vencillio.rs2.entity.player.net.in.impl;
    open up CommandPacket and find
    Code:
    if (player == null) {
    		return;
    	}
    and under it put
    Code:
    if (parser.getCommand().startsWith("'")) {
    			parser = CommandParser.create(" " + parser.toString().substring(1));
    			if (parser.hasNext()) {
    				String message = "";
    				while (parser.hasNext()) {
    					message += parser.nextString() + " ";
    				}
    				Yelling.yell(player, message, false);
    			}
    			return;
    	}
    Then you will be able to yell using '.
    Spoiler for Example of what you're adding:
    Attached image



    R-S Admin Response  Staffyell, only staff can see.

    Now for the staff yell part, the name kind of already explains what it is but incase people don't know, it is just a yell that only staff can see.
    Go to package com.vencillio.rs2.content;
    open up Yelling.java replace this
    Code:
    public static void yell(Player player, String message)
    with
    Code:
    public static void yell(Player player, String message, boolean staffyell)
    Find
    Code:
     else if (rights == 5)
    Above it add
    Code:
    } else if (staffyell) {
    			send = "[<shad=0><col=FF0202>Staff Yell</shad></col>]  <img=11> " + player.getUsername() + "</col>:<shad=0><col=FF0202> " + message;
    Now go to the bottom and replace this
    Code:
     		for (Player i : World.getPlayers())
    			if (i != null && send != null)
    				i.getClient().queueOutgoingPacket(new SendMessage(send));
    with
    Code:
    for (Player i : World.getPlayers()){
    		if (i != null && i.getRights() >=7 && staffyell) {
    		i.send(new SendMessage(send));
    	
    		}
    		
    		else if (i != null && !staffyell){
    			i.send(new SendMessage(send));
    		}
    It will look like this for non staff. ( btw i changed my rights to make it go in order so hence the right >=7 for anyone using the vencillio rights system default just change it accordingly.)
    Next go to package com.vencillio.rs2.entity.player.net.in.command.imp l;
    and open up PlayerCommand.java and look for this in your yell command.
    Code:
    	Yelling.yell(player, message.trim() );
    replace it with
    Code:
    	Yelling.yell(player, message.trim(), false);
    Then add the staff yell command.

    Code:
    case "s":
    			if (player.getRights() >=7) {
    				if (parser.hasNext()) {
    					try {
    						String message = parser.nextString();
    						while (parser.hasNext()) {
    							message += " " + parser.nextString();
    						}
    						Yelling.yell(player, message.trim(), true);
    					} catch (Exception e) {
    						player.getClient().queueOutgoingPacket(new SendMessage("Invalid yell format, syntax: -messsage"));
    					}
    				}
    			}
    			return true;
    Once again i've changed the rights system around so change the #7 to fit your staff rights, think vencillio og is mod = 1, admin = 2 , owner = 3.

    Spoiler for What it looks like to non staff.:
    Attached image

    Spoiler for What it looks like to staff.:
    Attached image


    I know this is all simple stuff, but it is very useful.
    If you have any problems post them down below and i'll try to help as much as possible
    Reply With Quote  
     

  2. Thankful users:


  3. #2  
    Donator


    Join Date
    Oct 2015
    Posts
    232
    Thanks given
    187
    Thanks received
    85
    Rep Power
    1516
    Thanks for your contribution. I'm sure many will find this helpful.
    Spoiler for Lolz:
    Attached image
    [Today 06:47 PM] Rusko: Shut uo ethernet ur moms a whore


    Reply With Quote  
     

  4. #3  
    WPS Developer
    JakeSCL's Avatar
    Join Date
    Dec 2014
    Posts
    23
    Thanks given
    14
    Thanks received
    13
    Rep Power
    3
    Very simple things but I can guarantee someone new to the forums or rsps development in general would find it very useful. Thanks for your contributions man.
    If you need any assistance; PM me.
    Reply With Quote  
     

  5. #4  
    Registered Member 1m6n29s9gmxh's Avatar
    Join Date
    Jan 2017
    Posts
    430
    Thanks given
    32
    Thanks received
    100
    Rep Power
    40
    Quote Originally Posted by Ethernet View Post
    Thanks for your contribution. I'm sure many will find this helpful.
    Thank you
    Quote Originally Posted by JakeSCL View Post
    Very simple things but I can guarantee someone new to the forums or rsps development in general would find it very useful. Thanks for your contributions man.
    Thank you, i know the professional coders don't really need it so I post it mainly for the newbs
    Reply With Quote  
     

  6. #5  
    WPS Developer
    JakeSCL's Avatar
    Join Date
    Dec 2014
    Posts
    23
    Thanks given
    14
    Thanks received
    13
    Rep Power
    3
    Quote Originally Posted by OsFury View Post
    Thank you


    Thank you, i know the professional coders don't really need it so I post it mainly for the newbs
    I entirely agree man. I enjoy helping people when it's needed. Everyone starts off somewhere here whether they're new to coding or they've coded for years.
    If you need any assistance; PM me.
    Reply With Quote  
     

  7. #6  
    Registered Member

    Join Date
    Nov 2010
    Posts
    1,528
    Thanks given
    1,017
    Thanks received
    348
    Rep Power
    240
    amazing so simple never thought of this, million times i done ;; by accident so much command fails thanks alot dude!!!
    None.
    Reply With Quote  
     

  8. #7  
    Banned

    Join Date
    Jan 2011
    Posts
    1,904
    Thanks given
    367
    Thanks received
    330
    Rep Power
    0
    Thanks for this. some will use!
    Reply With Quote  
     

  9. #8  
    Registered Member 1m6n29s9gmxh's Avatar
    Join Date
    Jan 2017
    Posts
    430
    Thanks given
    32
    Thanks received
    100
    Rep Power
    40
    Quote Originally Posted by figgatt23 View Post
    Thanks for this. some will use!
    No problem
    Quote Originally Posted by Mojo! View Post
    amazing so simple never thought of this, million times i done ;; by accident so much command fails thanks alot dude!!!
    Np, and yea I used to play 718 a lot so i'd always use ;; for commands, first thing i thought of adding on the 317 lel
    Reply With Quote  
     

  10. #9  
    Registered Member
    Zivik's Avatar
    Join Date
    Oct 2007
    Age
    28
    Posts
    4,421
    Thanks given
    891
    Thanks received
    1,527
    Rep Power
    3285
    I literally had this in Visix like 3 years ago and it's not exactly some spectacular knowledge you make it out to be.

    But if you learned something, keep it up!
    Reply With Quote  
     

  11. #10  
    Registered Member 1m6n29s9gmxh's Avatar
    Join Date
    Jan 2017
    Posts
    430
    Thanks given
    32
    Thanks received
    100
    Rep Power
    40
    Quote Originally Posted by Zivik View Post
    I literally had this in Visix like 3 years ago and it's not exactly some spectacular knowledge you make it out to be.

    But if you learned something, keep it up!
    Uh, Wrong post? Not exactly sure where I even sounded like it was some "spectacular knowledge".
    My first line, literally said it's something simple. Simple = spectacular, yea ok bro thanks
    Reply With Quote  
     

  12. Thankful user:


Page 1 of 2 12 LastLast

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: 10
    Last Post: 11-09-2011, 12:36 AM
  2. Checkbank command for staff only.
    By JokerScape in forum Help
    Replies: 2
    Last Post: 07-21-2011, 05:43 PM
  3. Command to Hide yell? [HELP]
    By Xynasty in forum Help
    Replies: 0
    Last Post: 12-05-2010, 07:20 PM
  4. Far easier command system [Devo]
    By Tobias in forum Snippets
    Replies: 9
    Last Post: 05-27-2010, 10:11 AM
  5. Quicker & Easier Commands!
    By Rickii in forum Tutorials
    Replies: 7
    Last Post: 01-26-2008, 02:22 AM
Tags for this Thread

View Tag Cloud

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •