Short and Simple Tut. How to make armour sets open into pieces of that armour
Code:
}
if (itemUsed == 15444 && useWith == 1755 || itemUsed == 1755 && useWith == 15444) { //Veracs
deleteItem(15444, getItemSlot(15444), 1);
addItem(4753, 1);
addItem(4757, 1);
addItem(4759, 1);
addItem(4755, 1);
sendMessage("You opened the box and got a set of Veracs!");
}
Above is the full code I will break it down into steps You'll understand.
1.
Code:
if (itemUsed == 15444 && useWith == 1755 || itemUsed == 1755 && useWith == 15444) { //Veracs
deleteItem(15444, getItemSlot(15444), 1);
Code:
if (itemUsed == 15444 && useWith == 1755
15444 Is the armour set - 1755 Is a Chisel
Code:
itemUsed == 1755 && useWith == 15444) { //Veracs this set is a verac set
2.
Code:
deleteItem(15444, getItemSlot(15444), 1);
This means when you use 15444 it will delete from your inventory
3.
Code:
addItem(4753, 1);
addItem(4757, 1);
addItem(4759, 1);
addItem(4755, 1);
sendMessage("You opened the box and got a set of Veracs!");
}
This means once you have used 15444 it will delete and give 3 items and a message
Change 15444 into any armour set or object
Change 1577 into any object to open the box or object
And the items 4757,4759,4555 into any items you like
And the send message change the message to anything you like but keep the
" And "at the end
Hope my tut helped