Thread: Spirit shield making 718 Tut

Page 1 of 3 123 LastLast
Results 1 to 10 of 22
  1. #1 Spirit shield making 718 Tut 
    Registered Member MaxXi's Avatar
    Join Date
    Jun 2012
    Posts
    767
    Thanks given
    43
    Thanks received
    107
    Rep Power
    12
    Hey ,
    so i saw that other post about spirit shield making or eny other item like combining shards to a godsword that was for 667s so i decided to do this tut for ppl that are using 718's .
    here we go

    First Open Up Your Source Go To
    Code:
    src <com <rs <net <decoders <handlers   and open up InventoryOptionsHandler.java
    Find
    Code:
    else if (contains(1755, Gem.DRAGONSTONE.getUncut(), itemUsed,
    					usedWith))
    				GemCutting.cut(player, Gem.DRAGONSTONE);

    Under It Add
    Code:
     else if (itemUsed.getId() == 13734 && usedWith.getId() == 13754){
                    player.getInventory().deleteItem(13734, 1);
                    player.getInventory().deleteItem(13754, 1);
                    player.getInventory().addItem(13736, 1);
                    player.getPackets().sendGameMessage("You have poured the holy elixir on a spirit shield making it unleash Blessed powers.");
                    }
                    else if (itemUsed.getId() == 13754 && usedWith.getId() == 13734){
                    player.getInventory().deleteItem(13734, 1);
                    player.getInventory().deleteItem(13754, 1);
                    player.getInventory().addItem(13736, 1);
                    player.getPackets().sendGameMessage("You have poured the holy elixir on a spirit shield making it unleash Blessed powers.");
                    }
                    else if (itemUsed.getId() == 13736 && usedWith.getId() == 13748){
                    player.getInventory().deleteItem(13736, 1);
                    player.getInventory().deleteItem(13748, 1);
                    player.getInventory().addItem(13740, 1);
                    player.getPackets().sendGameMessage("You force the sigil upon the blessed spirit shield making it unleash Divine Powers.");
                    }
                    else if (itemUsed.getId() == 13736 && usedWith.getId() == 13750){
                    player.getInventory().deleteItem(13736, 1);
                    player.getInventory().deleteItem(13750, 1);
                    player.getInventory().addItem(13742, 1);
                    player.getPackets().sendGameMessage("You force the sigil upon the blessed spirit shield making it unleash Elysian Powers.");
                    }
                    else if (itemUsed.getId() == 13736 && usedWith.getId() == 13746){
                    player.getInventory().deleteItem(13736, 1);
                    player.getInventory().deleteItem(13746, 1);
                    player.getInventory().addItem(13738, 1);
                    player.getPackets().sendGameMessage("You force the sigil upon the blessed spirit shield making it unleash Arcane Powers.");
                    }
                    else if (itemUsed.getId() == 13746 && usedWith.getId() == 13736){
                    player.getInventory().deleteItem(13736, 1);
                    player.getInventory().deleteItem(13746, 1);
                    player.getInventory().addItem(13738, 1);
                    player.getPackets().sendGameMessage("You force the sigil upon the blessed spirit shield making it unleash Arcane Powers.");
                    }
                    else if (itemUsed.getId() == 13736 && usedWith.getId() == 13752){
                    player.getInventory().deleteItem(13736, 1);
                    player.getInventory().deleteItem(13752, 1);
                    player.getInventory().addItem(13744, 1);
                    player.getPackets().sendGameMessage("You force the sigil upon the blessed spirit shield making it unleash Spectral Powers.");
                    }
                    else if (itemUsed.getId() == 13752 && usedWith.getId() == 13736){
                    player.getInventory().deleteItem(13736, 1);
                    player.getInventory().deleteItem(13752, 1);
                    player.getInventory().addItem(13744, 1);
                    player.getPackets().sendGameMessage("You force the sigil upon the blessed spirit shield making it unleash Spectral Powers.");
                    }
    Compile, Done
    You Could just change the item ids for other items like making a godsword
    Code:
    if (itemUsed.getId() == 11710 || usedWith.getId() == 11712 || usedWith.getId() == 11714) {
                        if (player.getInventory().containsItem(11710, 1)
                                        && player.getInventory().containsItem(11712, 1)
                                        && player.getInventory().containsItem(11714, 1)) {
                                player.getInventory().deleteItem(11710, 1);
                                player.getInventory().deleteItem(11712, 1);
                                player.getInventory().deleteItem(11714, 1);
                                player.getInventory().addItem(11690, 1);
                                player.getPackets().sendGameMessage("You made a godsword blade.");
                        }
                    }
                    if (itemUsed.getId() == 11690 || usedWith.getId() == 11702) {
                        if (player.getInventory().containsItem(11690, 1)
                                        && player.getInventory().containsItem(11702, 1)) {
                                player.getInventory().deleteItem(11690, 1);
                                player.getInventory().deleteItem(11702, 1);
                                player.getInventory().addItem(11694, 1);
                                player.getPackets().sendGameMessage("You attach the hilt to the blade and make an Armadyl godsword.");
                        }
                    }
                    if (itemUsed.getId() == 11690 || usedWith.getId() == 11704) {
                        if (player.getInventory().containsItem(11690, 1)
                                        && player.getInventory().containsItem(11704, 1)) {
                                player.getInventory().deleteItem(11690, 1);
                                player.getInventory().deleteItem(11704, 1);
                                player.getInventory().addItem(11696, 1);
                                player.getPackets().sendGameMessage("You attach the hilt to the blade and make an Bandos godsword.");
                        }
                    }
                    if (itemUsed.getId() == 11690 || usedWith.getId() == 11706) {
                        if (player.getInventory().containsItem(11690, 1)
                                        && player.getInventory().containsItem(11706, 1)) {
                                player.getInventory().deleteItem(11690, 1);
                                player.getInventory().deleteItem(11706, 1);
                                player.getInventory().addItem(11698, 1);
                                player.getPackets().sendGameMessage("You attach the hilt to the blade and make an Saradomin godsword.");
                        }
                     }
                    if (itemUsed.getId() == 11690 || usedWith.getId() == 11708) {
                        if (player.getInventory().containsItem(11690, 1)
                                        && player.getInventory().containsItem(11708, 1)) {
                                player.getInventory().deleteItem(11690, 1);
                                player.getInventory().deleteItem(11708, 1);
                                player.getInventory().addItem(11700, 1);
                                player.getPackets().sendGameMessage("You attach the hilt to the blade and make an Zamorak godsword.");
                        }
                    }
    Done , Ther are better ways to do this.
    Reply With Quote  
     

  2. Thankful users:


  3. #2  
    Registered Member Lord's Avatar
    Join Date
    Jul 2012
    Posts
    588
    Thanks given
    4
    Thanks received
    17
    Rep Power
    12
    Nice work, thanks for contributing.
    Even though been released couple of times lolz.
    Reply With Quote  
     

  4. #3  
    Registered Member Storm Powner's Avatar
    Join Date
    Apr 2012
    Age
    19
    Posts
    469
    Thanks given
    26
    Thanks received
    30
    Rep Power
    11
    good job will use it
    Reply With Quote  
     

  5. #4  
    Registered Member MaxXi's Avatar
    Join Date
    Jun 2012
    Posts
    767
    Thanks given
    43
    Thanks received
    107
    Rep Power
    12
    thanks , oh dident know it had been released
    Reply With Quote  
     

  6. #5  
    Banned

    Join Date
    Dec 2011
    Age
    19
    Posts
    1,331
    Thanks given
    147
    Thanks received
    153
    Rep Power
    0
    Goodjob, I might use but I'll fix it up a little bit.
    Reply With Quote  
     

  7. #6  
    Cash Back Guaranteed!


    Join Date
    Sep 2012
    Age
    19
    Posts
    247
    Thanks given
    36
    Thanks received
    42
    Rep Power
    164
    Alright take this as a lesson this is something that should be stored using an Enumeration


    Code:
    /**
     *
     * @author Dawn_
     *
     */
     
     public enum itemFusion {
    	BLESSED_SPIRIT_SHIELD(13734, 13754, 13736, "You have poured the holy elixir on a spirit shield making it unleash Blessed powers.");
    	
    	private int usedItem, usedItem2, createdItem;
    	private String message;
    	
    	private itemFusion(int usedItem, int usedItem2, int createdItem, Sting message) {
    		this.usedItem = usedItem;
    		this.usedItem2 = usedItem2;
    		this.createdItem = createdItem;
    		this.message = message;
    	}
    	
    	public int getUsedItem() {
    		return usedItem;
    	}
    	
    	public int getUsedItem2() {
    		return usedItem2;
    	}
    	
    	public int getCreatedItem() {
    		return usedItem;
    	}
    	
    	public String getMessage() {
    		return message;
    	}
    	
     }
     
     private void fuseItem() {
    	for (itemFusion item : itemFusion.values()) {
    		if (itemUsed.getId() == item.getUsedItem() && usedWith.getId() == item.getUsedItem2()){
    			player.getInventory().deleteItem(item.getUsedItem(), 1);
    			player.getInventory().deleteItem(item.getUsedItem2(), 1);
    			player.getInventory().addItem(item.getCreatedItem(), 1);
    			player.getPackets().sendGameMessage("" + item.getMessage());
    		}
    	}
     }
    Spoiler for Rune Plus:
    Reply With Quote  
     

  8. #7  
    Banned

    Join Date
    Dec 2011
    Age
    19
    Posts
    1,331
    Thanks given
    147
    Thanks received
    153
    Rep Power
    0
    Quote Originally Posted by Dawn_ View Post
    Alright take this as a lesson this is something that should be stored using an Enumeration


    Code:
    /**
     *
     * @author Dawn_
     *
     */
     
     public enum itemFusion {
    	BLESSED_SPIRIT_SHIELD(13734, 13754, 13736, "You have poured the holy elixir on a spirit shield making it unleash Blessed powers.");
    	
    	private int usedItem, usedItem2, createdItem;
    	private String message;
    	
    	private itemFusion(int usedItem, int usedItem2, int createdItem, Sting message) {
    		this.usedItem = usedItem;
    		this.usedItem2 = usedItem2;
    		this.createdItem = createdItem;
    		this.message = message;
    	}
    	
    	public int getUsedItem() {
    		return usedItem;
    	}
    	
    	public int getUsedItem2() {
    		return usedItem2;
    	}
    	
    	public int getCreatedItem() {
    		return usedItem;
    	}
    	
    	public String getMessage() {
    		return message;
    	}
    	
     }
     
     private void fuseItem() {
    	for (itemFusion item : itemFusion.values()) {
    		if (itemUsed.getId() == item.getUsedItem() && usedWith.getId() == item.getUsedItem2()){
    			player.getInventory().deleteItem(item.getUsedItem(), 1);
    			player.getInventory().deleteItem(item.getUsedItem2(), 1);
    			player.getInventory().addItem(item.getCreatedItem(), 1);
    			player.getPackets().sendGameMessage("" + item.getMessage());
    		}
    	}
     }
    Nice work.
    Reply With Quote  
     

  9. #8  
    Cash Back Guaranteed!


    Join Date
    Sep 2012
    Age
    19
    Posts
    247
    Thanks given
    36
    Thanks received
    42
    Rep Power
    164
    Thanks massive code like the he posted work but it unnecessary this is cleaner and will save you time.
    Spoiler for Rune Plus:
    Reply With Quote  
     

  10. #9  
    Registered Member
    Join Date
    Aug 2011
    Posts
    97
    Thanks given
    66
    Thanks received
    15
    Rep Power
    11
    It's both Matrix, people could just use the other tut...
    Reply With Quote  
     

  11. #10  
    Registered Member
    Join Date
    Nov 2012
    Posts
    59
    Thanks given
    17
    Thanks received
    6
    Rep Power
    11
    the other 1 is for 667s i think
    Reply With Quote  
     

Page 1 of 3 123 LastLast

Thread Information
Users Browsing this Thread

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

Similar Threads

  1. Spirit shield making
    By Monum3ntal in forum Tutorials
    Replies: 22
    Last Post: 11-03-2012, 09:23 AM
  2. [667] Godsword and Spirit Shield Making [667]
    By `Cocaine in forum Snippets
    Replies: 7
    Last Post: 04-08-2012, 12:52 AM
  3. Replies: 22
    Last Post: 07-18-2011, 05:20 AM
  4. Replies: 20
    Last Post: 02-19-2010, 03:27 PM
  5. Help with spirit shield making
    By TaylorRawr in forum Help
    Replies: 5
    Last Post: 12-06-2009, 06:46 AM
Tags for this Thread
hey

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
  •