By looking at the stuff on r3Lists at RS Wiki:
http://rs3dwiki.the-final.info/index.php?title=JS-Lists
You could replace items in a list by name like this:
item = R3ToJS(list.find("Wednesday"));
if (item)
item.SetName("Holiday");
Deleting from a list is a little puzzling. By looking at oops/r3root.js
I thought this would work:
item.REMOVE(list);
but it didn't (a bug?) and looks like there isn't any remove method
(other than remtail and remhead)
in r3List according to the wiki.
inserting works like this: (item being the item after which new_item is
inserted, check oops/r3root.js)
new_item = new r3Root(R3RA_Name, "Workday");
new_item.INSERT(0, item, list);
-Juha
K-UDA kirjoitti:
> Hello, Juha.
> Thankyou for your reply.
> I was able to update a list
> How do you delete or replace an element of the list?
>> By the way your curve tool script is looking
> impressive. :)
> The curve tool script does not work well yet.
> Best regards,
> K-UDA