Thread: [317] pay to spawn veng + barrage!

Results 1 to 4 of 4
  1. #1 [317] pay to spawn veng + barrage! 
    Registered Member
    Join Date
    Feb 2017
    Posts
    83
    Thanks given
    5
    Thanks received
    3
    Rep Power
    11
    Difficulty: 0/10
    Simply copy and paste, change imports as you would.
    Create a Veng.java and a Barrage.java in (ALL) player commands.

    Veng.java

    Code:
    package ab.model.players.packets.commands.all;
    
    import ab.model.players.packets.commands.Command;
    import ab.model.players.Player;
    
    //author Zayuh 2/15/17
    
    public class Veng implements Command {  
    @Override
    public void execute(Player c, String input) {
    	
    	if (c.inWild() || c.inCamWild()) {
    		c.sendMessage("You can't use this command in the wilderness!");
    		} else {
    	if (c.getItems().playerHasItem(995, 1000000)) {
    	c.getItems().deleteItem(995, 1000000);
    	c.getItems().addItem(560, 200);
    	c.getItems().addItem(9075, 400);
    	c.getItems().addItem(557, 1000);
    	c.sendMessage("You've purchased 1000 vengeance casts!");
    		} else { 
    	c.sendMessage("You need 1 million coins to buy 1000 vengeance casts!");
    	return;
    			}
    		}
    	}
    }
    Barrage.java

    Code:
    package ab.model.players.packets.commands.all;
    
    import ab.model.players.packets.commands.Command;
    import ab.model.players.Player;
    
    //author Zayuh 2/15/17
    
    public class Barrage implements Command { 
    @Override
    public void execute(Player c, String input) {
    	
    	if (c.inWild() || c.inCamWild()) {
    	c.sendMessage("You can't use this command in the wilderness!");
    		} else {
    	if (c.getItems().playerHasItem(995, 1000000)) {
    	c.getItems().deleteItem(995, 1000000);
    	c.getItems().addItem(565, 400);
    	c.getItems().addItem(560, 800);
    	c.getItems().addItem(555, 1200);
    	c.sendMessage("You've purchased 200 barrage casts!");
    		} else { 
    	c.sendMessage("You need 1 million coins to buy 200 barrage casts!");
    	return;
    				}
    			}
    		}
    	}
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Apr 2016
    Posts
    357
    Thanks given
    65
    Thanks received
    16
    Rep Power
    0
    Very simple to do and i think this might be in snippets also and i think alredy been released. Maybe it will help some noob...
    Reply With Quote  
     

  3. #3  
    need java lessons
    Eclipse's Avatar
    Join Date
    Aug 2012
    Posts
    4,436
    Thanks given
    686
    Thanks received
    898
    Rep Power
    490
    has to have been released 50+ times. nonetheless thanks for trying to contribute i suppose.

    Quote Originally Posted by jerryrocks317 View Post
    i am 14 and have my own laptop im on almost 24/7 currently creating rsps lol so please get off my thread lol
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Dec 2016
    Posts
    87
    Thanks given
    1
    Thanks received
    4
    Rep Power
    59
    Indents on the if statement's should be corrected for better readability.
    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. [PI] [317] Paying someone to add NPC clipping.
    By Im The Plug in forum Help
    Replies: 0
    Last Post: 08-12-2013, 08:02 PM
  2. need help 317 willing to pay!
    By 2006 rs plz in forum Help
    Replies: 2
    Last Post: 05-12-2013, 09:47 PM
  3. 317 PI how to add ::veng and ::barrage
    By Cody289 in forum Tutorials
    Replies: 9
    Last Post: 06-30-2012, 01:23 PM
  4. Replies: 2
    Last Post: 08-23-2011, 08:55 PM
  5. Replies: 2
    Last Post: 07-05-2010, 02:03 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
  •