[GH-ISSUE #138] When combining an onyx amulet and a ball of wool i get some pink bell #763

Closed
opened 2026-05-20 10:14:36 +00:00 by Dark98 · 2 comments
Owner

Originally created by @AgilityV2 on GitHub (Nov 6, 2019).
Original GitHub issue: https://github.com/2006-Scape/2006Scape/issues/138

https://gyazo.com/c0eaa4def1020e196e7975ef740ed48a

Originally created by @AgilityV2 on GitHub (Nov 6, 2019). Original GitHub issue: https://github.com/2006-Scape/2006Scape/issues/138 https://gyazo.com/c0eaa4def1020e196e7975ef740ed48a
Author
Owner

@Gptaqbc commented on GitHub (Nov 6, 2019):

We'll have to add the interaction between the two items in this class: UseItem.java

Something like this:

if (itemUsed == 1095 && useWith == 2370 || itemUsed == 2370
&& useWith == 1095 && c.playerLevel[c.playerCrafting] > 43) {// chaps
c.getItemAssistant().deleteItem2(2370, 1);
c.getItemAssistant().deleteItem2(1095, 1);
c.getItemAssistant().addItem(1097, 1);
c.getPlayerAssistant().addSkillXP(42, c.playerCrafting);
} else if (itemUsed == 1095 && useWith == 2370 || itemUsed == 2370 && useWith == 1095 && c.playerLevel[c.playerCrafting] < 44) {
c.getActionSender().sendMessage("You need 44 crafting to make this.");

Can you provide the IDs of both items?

<!-- gh-comment-id:550323388 --> @Gptaqbc commented on GitHub (Nov 6, 2019): We'll have to add the interaction between the two items in this class: UseItem.java Something like this: if (itemUsed == 1095 && useWith == 2370 || itemUsed == 2370 && useWith == 1095 && c.playerLevel[c.playerCrafting] > 43) {// chaps c.getItemAssistant().deleteItem2(2370, 1); c.getItemAssistant().deleteItem2(1095, 1); c.getItemAssistant().addItem(1097, 1); c.getPlayerAssistant().addSkillXP(42, c.playerCrafting); } else if (itemUsed == 1095 && useWith == 2370 || itemUsed == 2370 && useWith == 1095 && c.playerLevel[c.playerCrafting] < 44) { c.getActionSender().sendMessage("You need 44 crafting to make this."); Can you provide the IDs of both items?
Author
Owner

@Dark98 commented on GitHub (Nov 8, 2019):

I'll do this when I get home tonight

<!-- gh-comment-id:551897434 --> @Dark98 commented on GitHub (Nov 8, 2019): I'll do this when I get home tonight
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: 2006-Scape/2006Scape#763