local dura = inventory:getDurability(1);
printf("Head durability:%s\n", dura);
if ( 95 > dura ) then
inventory:useItem("Simple Repair Hammer");
RoMScript("PickupEquipmentItem(1)");
end
local dura = inventory:getDurability(2);
printf("Hands durability:%s\n", dura);
if ( 95 > dura ) then
inventory:useItem("Simple Repair Hammer");
RoMScript("PickupEquipmentItem(2)");
end
I can't see a difference between the two other than slot #. Is "1" not the correct number to use for the head piece?
Command> for i = 0,29 do local hat = CEquipmentItem(i) print(i..": "..hat.Id.." "..hat.Name) end
0: 0 <EMPTY>
1: 225498 Cloth Gloves of the Void
2: 225237 Holy Source Boots
3: 225235 Holy Source Robe
4: 220427 Leggings of Meditation
5: 225799 Labyrinth Cloak of Rebirth
6: 224923 Aker Girdle
7: 225300 Elemental Flame Shoulder Guards
8: 229297 Rufa Necklace
9: 0 <EMPTY>
10: 0 <EMPTY>
11: 229293 Rufa Ring
12: 228580 Icy Indigo Ring
13: 229289 Rufa Earring
14: 228591 Poem of Sealing
15: 212248 Void Long Staff
16: 0 <EMPTY>
17: 0 <EMPTY>
18: 0 <EMPTY>
19: 0 <EMPTY>
20: 0 <EMPTY>
21: 224988 Wings of the Flaming Inferno
That char has holy source hat on, I still say it's a game bug and it never repairs hat (my macro does all slots and hat still isn't repaired), yes it should have been 0 for hat but the fact still remains the hat slot is still bugged in game.
Remember no matter you do in life to always have a little fun while you are at it
Thank you, both. Do you know how I call that function in game to tell me what the slots are? Just throw a "/script" or "/run" in front? Of course not... if it were that easy, I'd not be posting this.
wtsiwtf wrote:
I wrote half of the RoM wiki (functions)
which is pretty much why less than half the functions are explained as I got bored of doing it.
Thats certainly quite an effort and very helpful for newbies like myself...
a polar bear is a rectangular bear after a coordinate transform