Welcome To RsLock Forums!
Welcome To RsLock Forums!
Would you like to react to this message? Create an account in a few clicks or log in to continue.


Created By: Luda
 
HomeHomeLatest imagesSearchRegisterLog in

 

 Slayer Helmet Assembly

Go down 
AuthorMessage
Loveandpower




Posts : 24
Reputation : 0
Join date : 2011-10-06

Slayer Helmet Assembly Empty
PostSubject: Slayer Helmet Assembly   Slayer Helmet Assembly EmptyThu Oct 06, 2011 3:33 am

I believe making there be a slayer helmet assembly would be a great addition. It is a unique way of gathering it on any server that I have seen thus far. (besides mine because I thought of the idea and added it to it lol xD)

Here you go I did the work for it a while back Smile

The below code includes

-slayer helmet assembly just like RS.
-requirements are needed to assemble the helmet

I would also suggest to ask the counterparts that create the helmet(s) to be added as drops to various slayer monsters as rare drops from the said monster.

This should be added into UseItem.java

Code:


/**
      full slayer helmet
      **/
         
   if (itemUsed == 15488 && (useWith == 15490 || useWith == 13263) ||
      itemUsed == 15490 && (useWith == 15488 || useWith == 13263) ||
      itemUsed == 15488 && (useWith == 15490 || useWith == 13263) ||
      itemUsed == 13263 && (useWith == 15490 || useWith == 15488 )) {
      if (c.getItems().playerHasItem(15490, 1) && c.getItems().playerHasItem(15488, 1) &&
         c.getItems().playerHasItem(13263, 1)) {
         c.getItems().deleteItem(15490, c.getItems().getItemSlot(15490), 1);
         c.getItems().deleteItem(15488, c.getItems().getItemSlot(15488), 1);
         c.getItems().deleteItem(13263, c.getItems().getItemSlot(13263), 1);
         c.getItems().addItem(15492, 1);
      } else {
         c.sendMessage("You don't have all the parts to make the Full Slayer Helmet.");
         return;
      }
   }

      
      /**
      regular slayer helmet**/
      if (itemUsed == 4164 && (useWith == 4166 || useWith == 4168 || useWith == 4551 || useWith == 8901) ||
    itemUsed == 4166 && (useWith == 4164 || useWith == 4168 || useWith == 4551 || useWith == 8901) ||
    itemUsed == 4168 && (useWith == 4164 || useWith == 4166 || useWith == 4551 || useWith == 8901) ||
    itemUsed == 4551 && (useWith == 4164 || useWith == 4166 || useWith == 4168 || useWith == 8901) ||
    itemUsed == 8901 && (useWith == 4164 || useWith == 4166 || useWith == 4168 || useWith == 4551)) {
    if (c.getItems().playerHasItem(4164, 1) && c.getItems().playerHasItem(4166, 1) &&
        c.getItems().playerHasItem(4168, 1) && c.getItems().playerHasItem(4551, 1) &&
        c.getItems().playerHasItem(8901, 1)) {
        if (c.playerLevel[c.playerCrafting] > 54) {
            if (c.playerLevel[c.playerSlayer] > 34) {
                c.getItems().deleteItem(4164, c.getItems().getItemSlot(4164), 1);
                c.getItems().deleteItem(4166, c.getItems().getItemSlot(4166), 1);
                c.getItems().deleteItem(4168, c.getItems().getItemSlot(4168), 1);
                c.getItems().deleteItem(4551, c.getItems().getItemSlot(4551), 1);
                c.getItems().deleteItem(8901, c.getItems().getItemSlot(8901), 1);
                c.getItems().addItem(13263, 1);
            } else {
                c.sendMessage("You need a Slayer level of 35 or higher to make a Slayer Helmet.");
                return;
            }
        } else {
            c.sendMessage("You need a Crafting level of 55 or higher to make a Slayer Helmet.");
            return;
        }
    } else {
        c.sendMessage("You don't have all the parts to make a Slayer Helmet.");
        return;
    }
}

Back to top Go down
 
Slayer Helmet Assembly
Back to top 
Page 1 of 1
 Similar topics
-
» Slayer Towe Monsters?!

Permissions in this forum:You cannot reply to topics in this forum
 :: Server :: Suggestions-
Jump to: