Jump to content
Sign in to follow this  
iRepo

RS2HD Real Spirit Shield Creations

Recommended Posts

Difficulty: .25/10
Knowledge: Copy & Paste.
Here you go, hellman:

Step 1: Go into your ItemPacketHandler Class. Search for your itemOnObject void. It should look something like this:
[CODE]private void itemOnObject(final Player player, final Packet packet)[/CODE]

Step 2: Now, put this inside the void:
[CODE]
// Spirit Shields - by Repo
if (UseWith(13748, 2783,itemId, objectId)) { // Using Divine Sigil on an Anvil.
if (player.getSkills().getLevel(5) > 89 && player.getSkills().getLevel(13) > 84) { // If the player's Prayer level is greater than or equal to 90, and the player's Smithing level is greater than or equal to 85.
if (player.getInventory().numberOf(2347) > 0 && player.getInventory().contains(13736)) { // If the player has a Hammer in their Inventory.
if (player.getInventory().contains(13736)) { // If the player has a Blessed Spirit Shield in their Inventory.
player.getInventory().deleteItem(13748, 1); // Delete Divine Sigil.
player.getInventory().deleteItem(13736, 1); // Delete Blessed Spirit Shield.
player.getInventory().addItem(13740, 1); // Add Divine Spirit Shield.
player.getActionSender().sendMessage("You combine the Sigil to the Blessed shield and create a Divine Spirit Shield!");
player.animate(898); // Smithing
} else if (!player.getInventory().contains(13736)) { // If the player doesn't have a Blessed Spirit Shield in their Inventory.
player.getActionSender().sendMessage("You need to have a Blessed Spirit Shield to create this item!"); // Message Sent.
}
} else if (player.getInventory().numberOf(2347) == 0) {// If the player doesn't have a Hammer in their Inventory.
player.getActionSender().sendMessage("You must have a Hammer with you to create this item!"); // Message Sent.
}
} else if (player.getSkills().getLevel(5) < 90 || player.getSkills().getLevel(13) < 85) { // If the player's Prayer level is less than 90, and the player's Smithing level is less than 85.
player.getActionSender().sendMessage("You must have 95 Prayer and 85 Smithing to create this item!");
}
}
if (UseWith(13750, 2783,itemId, objectId)) { // Using Elysian Sigil on an Anvil.
if (player.getSkills().getLevel(5) > 89 && player.getSkills().getLevel(13) > 84) { // If the player's Prayer level is greater than or equal to 90, and the player's Smithing level is greater than or equal to 85.
if (player.getInventory().numberOf(2347) > 0) { // If the player has a Hammer in their Inventory.
if (player.getInventory().contains(13736)) { // If the player has a Blessed Spirit Shield in their Inventory.
player.getInventory().deleteItem(13750, 1); // Delete Elysian Sigil.
player.getInventory().deleteItem(13736, 1); // Delete Blessed Spirit Shield.
player.getInventory().addItem(13742, 1); // Add Elysian Spirit Shield.
player.getActionSender().sendMessage("You combine the Sigil to the Blessed shield and create an Elysian Spirit Shield!");
player.animate(898); // Smithing
} else if (!player.getInventory().contains(13736)) { // If the player doesn't have a Blessed Spirit Shield in their Inventory.
player.getActionSender().sendMessage("You need to have a Blessed Spirit Shield to create this item!"); // Message Sent.
}
} else if (player.getInventory().numberOf(2347) == 0) {// If the player doesn't have a Hammer in their Inventory.
player.getActionSender().sendMessage("You must have a Hammer with you to create this item!"); // Message Sent.
}
} else if (player.getSkills().getLevel(5) < 90 || player.getSkills().getLevel(13) < 85) { // If the player's Prayer level is less than 90, and the player's Smithing level is less than 85.
player.getActionSender().sendMessage("You must have 95 Prayer and 85 Smithing to create this item!");
}
}
if (UseWith(13746, 2783,itemId, objectId)) { // Using Arcane Sigil on an Anvil.
if (player.getSkills().getLevel(5) > 89 && player.getSkills().getLevel(13) > 84) { // If the player's Prayer level is greater than or equal to 90, and the player's Smithing level is greater than or equal to 85.
if (player.getInventory().numberOf(2347) > 0) { // If the player has a Hammer in their Inventory.
if (player.getInventory().contains(13736)) { // If the player has a Blessed Spirit Shield in their Inventory.
player.getInventory().deleteItem(13746, 1); // Delete Arcane Sigil.
player.getInventory().deleteItem(13736, 1); // Delete Blessed Spirit Shield.
player.getInventory().addItem(13738, 1); // Add Arcane Spirit Shield.
player.getActionSender().sendMessage("You combine the Sigil to the Blessed shield and create an Arcane Spirit Shield!");
player.animate(898); // Smithing
} else if (!player.getInventory().contains(13736)) { // If the player doesn't have a Blessed Spirit Shield in their Inventory.
player.getActionSender().sendMessage("You need to have a Blessed Spirit Shield to create this item!"); // Message Sent.
}
} else if (player.getInventory().numberOf(2347) == 0) {// If the player doesn't have a Hammer in their Inventory.
player.getActionSender().sendMessage("You must have a Hammer with you to create this item!"); // Message Sent.
}
} else if (player.getSkills().getLevel(5) < 90 || player.getSkills().getLevel(13) < 85) { // If the player's Prayer level is less than 90, and the player's Smithing level is less than 85.
player.getActionSender().sendMessage("You must have 95 Prayer and 85 Smithing to create this item!");
}
}
if (UseWith(13752, 2783,itemId, objectId)) { // Using Spectral Sigil on an Anvil.
if (player.getSkills().getLevel(5) > 89 && player.getSkills().getLevel(13) > 84) { // If the player's Prayer level is greater than or equal to 90, and the player's Smithing level is greater than or equal to 85.
if (player.getInventory().numberOf(2347) > 0) { // If the player has a Hammer in their Inventory.
if (player.getInventory().contains(13736)) { // If the player has a Blessed Spirit Shield in their Inventory.
player.getInventory().deleteItem(13752, 1); // Delete Spectral Sigil.
player.getInventory().deleteItem(13736, 1); // Delete Blessed Spirit Shield.
player.getInventory().addItem(13744, 1); // Add Spectral Spirit Shield.
player.getActionSender().sendMessage("You combine the Sigil to the Blessed shield and create a Spectral Spirit Shield!");
player.animate(898); // Smithing
} else if (!player.getInventory().contains(13736)) { // If the player doesn't have a Blessed Spirit Shield in their Inventory.
player.getActionSender().sendMessage("You need to have a Blessed Spirit Shield to create this item!"); // Message Sent.
}
} else if (player.getInventory().numberOf(2347) == 0) {// If the player doesn't have a Hammer in their Inventory.
player.getActionSender().sendMessage("You must have a Hammer with you to create this item!"); // Message Sent.
}
} else if (player.getSkills().getLevel(5) < 90 || player.getSkills().getLevel(13) < 85) { // If the player's Prayer level is less than 90, and the player's Smithing level is less than 85.
player.getActionSender().sendMessage("You must have 95 Prayer and 85 Smithing to create this item!");
}
}
[/CODE]

Step 3: You're done. Compile that shit and enjoy.

10% Credits to PVMNaughty - For showing me how to make a Spirit shield in Runescape. Edited by iRepo

Share this post


Link to post
Share on other sites
[quote name='iRepo']Difficulty: .25/10
Knowledge: Copy & Paste.
Here you go, hellman:

Step 1: Go into your ItemPacketHandler Class. Search for your itemOnObject void. It should look something like this:
[CODE]private void itemOnObject(final Player player, final Packet packet)[/CODE]

Step 2: Now, put this inside the void:
[CODE]
// Spirit Shields - by Repo
if (UseWith(13748, 2783,itemId, objectId)) { // Using Divine Sigil on an Anvil.
if (player.getSkills().getLevel(5) > 89 && player.getSkills().getLevel(13) > 84) { // If the player's Prayer level is greater than or equal to 90, and the player's Smithing level is greater than or equal to 85.
if (player.getInventory().numberOf(2347) > 0 && player.getInventory().contains(13736)) { // If the player has a Hammer in their Inventory.
if (player.getInventory().contains(13736)) { // If the player has a Blessed Spirit Shield in their Inventory.
player.getInventory().deleteItem(13748, 1); // Delete Divine Sigil.
player.getInventory().deleteItem(13736, 1); // Delete Blessed Spirit Shield.
player.getInventory().addItem(13740, 1); // Add Divine Spirit Shield.
player.getActionSender().sendMessage("You combine the Sigil to the Blessed shield and create a Divine Spirit Shield!");
player.animate(898); // Smithing
} else if (!player.getInventory().contains(13736)) { // If the player doesn't have a Blessed Spirit Shield in their Inventory.
player.getActionSender().sendMessage("You need to have a Blessed Spirit Shield to create this item!"); // Message Sent.
}
} else if (player.getInventory().numberOf(2347) == 0) {// If the player doesn't have a Hammer in their Inventory.
player.getActionSender().sendMessage("You must have a Hammer with you to create this item!"); // Message Sent.
}
} else if (player.getSkills().getLevel(5) < 90 || player.getSkills().getLevel(13) < 85) { // If the player's Prayer level is less than 90, and the player's Smithing level is less than 85.
player.getActionSender().sendMessage("You must have 95 Prayer and 85 Smithing to create this item!");
}
}
if (UseWith(13750, 2783,itemId, objectId)) { // Using Elysian Sigil on an Anvil.
if (player.getSkills().getLevel(5) > 89 && player.getSkills().getLevel(13) > 84) { // If the player's Prayer level is greater than or equal to 90, and the player's Smithing level is greater than or equal to 85.
if (player.getInventory().numberOf(2347) > 0) { // If the player has a Hammer in their Inventory.
if (player.getInventory().contains(13736)) { // If the player has a Blessed Spirit Shield in their Inventory.
player.getInventory().deleteItem(13750, 1); // Delete Elysian Sigil.
player.getInventory().deleteItem(13736, 1); // Delete Blessed Spirit Shield.
player.getInventory().addItem(13742, 1); // Add Elysian Spirit Shield.
player.getActionSender().sendMessage("You combine the Sigil to the Blessed shield and create an Elysian Spirit Shield!");
player.animate(898); // Smithing
} else if (!player.getInventory().contains(13736)) { // If the player doesn't have a Blessed Spirit Shield in their Inventory.
player.getActionSender().sendMessage("You need to have a Blessed Spirit Shield to create this item!"); // Message Sent.
}
} else if (player.getInventory().numberOf(2347) == 0) {// If the player doesn't have a Hammer in their Inventory.
player.getActionSender().sendMessage("You must have a Hammer with you to create this item!"); // Message Sent.
}
} else if (player.getSkills().getLevel(5) < 90 || player.getSkills().getLevel(13) < 85) { // If the player's Prayer level is less than 90, and the player's Smithing level is less than 85.
player.getActionSender().sendMessage("You must have 95 Prayer and 85 Smithing to create this item!");
}
}
if (UseWith(13746, 2783,itemId, objectId)) { // Using Arcane Sigil on an Anvil.
if (player.getSkills().getLevel(5) > 89 && player.getSkills().getLevel(13) > 84) { // If the player's Prayer level is greater than or equal to 90, and the player's Smithing level is greater than or equal to 85.
if (player.getInventory().numberOf(2347) > 0) { // If the player has a Hammer in their Inventory.
if (player.getInventory().contains(13736)) { // If the player has a Blessed Spirit Shield in their Inventory.
player.getInventory().deleteItem(13746, 1); // Delete Arcane Sigil.
player.getInventory().deleteItem(13736, 1); // Delete Blessed Spirit Shield.
player.getInventory().addItem(13738, 1); // Add Arcane Spirit Shield.
player.getActionSender().sendMessage("You combine the Sigil to the Blessed shield and create an Arcane Spirit Shield!");
player.animate(898); // Smithing
} else if (!player.getInventory().contains(13736)) { // If the player doesn't have a Blessed Spirit Shield in their Inventory.
player.getActionSender().sendMessage("You need to have a Blessed Spirit Shield to create this item!"); // Message Sent.
}
} else if (player.getInventory().numberOf(2347) == 0) {// If the player doesn't have a Hammer in their Inventory.
player.getActionSender().sendMessage("You must have a Hammer with you to create this item!"); // Message Sent.
}
} else if (player.getSkills().getLevel(5) < 90 || player.getSkills().getLevel(13) < 85) { // If the player's Prayer level is less than 90, and the player's Smithing level is less than 85.
player.getActionSender().sendMessage("You must have 95 Prayer and 85 Smithing to create this item!");
}
}
if (UseWith(13752, 2783,itemId, objectId)) { // Using Spectral Sigil on an Anvil.
if (player.getSkills().getLevel(5) > 89 && player.getSkills().getLevel(13) > 84) { // If the player's Prayer level is greater than or equal to 90, and the player's Smithing level is greater than or equal to 85.
if (player.getInventory().numberOf(2347) > 0) { // If the player has a Hammer in their Inventory.
if (player.getInventory().contains(13736)) { // If the player has a Blessed Spirit Shield in their Inventory.
player.getInventory().deleteItem(13752, 1); // Delete Spectral Sigil.
player.getInventory().deleteItem(13736, 1); // Delete Blessed Spirit Shield.
player.getInventory().addItem(13744, 1); // Add Spectral Spirit Shield.
player.getActionSender().sendMessage("You combine the Sigil to the Blessed shield and create a Spectral Spirit Shield!");
player.animate(898); // Smithing
} else if (!player.getInventory().contains(13736)) { // If the player doesn't have a Blessed Spirit Shield in their Inventory.
player.getActionSender().sendMessage("You need to have a Blessed Spirit Shield to create this item!"); // Message Sent.
}
} else if (player.getInventory().numberOf(2347) == 0) {// If the player doesn't have a Hammer in their Inventory.
player.getActionSender().sendMessage("You must have a Hammer with you to create this item!"); // Message Sent.
}
} else if (player.getSkills().getLevel(5) < 90 || player.getSkills().getLevel(13) < 85) { // If the player's Prayer level is less than 90, and the player's Smithing level is less than 85.
player.getActionSender().sendMessage("You must have 95 Prayer and 85 Smithing to create this item!");
}
}
[/CODE]

Step 3: You're done. Compile that shit and enjoy.[/QUOTE]


You re-wrote this just to make that dipshit happy?
Hes going to rage at this one too. just saying

Share this post


Link to post
Share on other sites
[quote name='Wisdom']You re-wrote this just to make that dipshit happy?
Hes going to rage at this one too. just saying[/QUOTE]

I know.. But when someone tells me what I did is shit, I always make it better.

Share this post


Link to post
Share on other sites
Y0U C0ULD H4V3 M4D3 1T B3TT4R!

Just kidding <3 looks good.

Share this post


Link to post
Share on other sites
It's sexy, you're one amazing broski when it comes to this shit, good job mate.

Share this post


Link to post
Share on other sites
Love, <3.

Share this post


Link to post
Share on other sites
Guys, this shit is way too amazing to pass up, this will have your servers looking sexy and professional. ;)

Share this post


Link to post
Share on other sites
Very nice release man i needed this to but didnt think about using them on an anvil i would've
just made it to where you use it directly on the blessed spirit shield
but i like this way a lot more Definatley using this thanks man (:

Edit:: Forgot this wasn't for [PI] So i wont be using but i will look at it and interpreted it to work with Pi eventually still thanks though Edited by iiMack

Share this post


Link to post
Share on other sites
[quote name='Wisdom']You re-wrote this just to make that dipshit happy?
Hes going to rage at this one too. just saying[/QUOTE]

Excuse me?
No, I'm not going to rage at this one, because this one actually works.
I believe if someone's going to release a snippet on how to make something, they should have it working as it does in Runescape.

@iRepo...
PvMNaughty showed you how to make one in rs, did he?
Hmm... Let's quote, shall we?

[quote name='hellman2741']
Player uses spirit shield on altar with holy elixir in invy = blessed spirit shield.
Player uses blessed spirit shield/sigil on anvil with 85 smithing and 95 prayer = spirit shield....[/QUOTE]

Share this post


Link to post
Share on other sites
[quote name='hellman2741']Excuse me?
No, I'm not going to rage at this one, because this one actually works.
I believe if someone's going to release a snippet on how to make something, they should have it working as it does in Runescape.

@iRepo...
PvMNaughty showed you how to make one in rs, did he?
Hmm... Let's quote, shall we?[/QUOTE]
We don't care what you believe, people don't have to meet your standards to post a snippet. Plus... These are private servers, not runescape. Everything doesn't have to be exactly the same. Ignorant asshole.

Share this post


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

×