name table .xml help

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Supergala
Posts: 502
Joined: Mon May 17, 2010 3:40 pm
Location: Poland

name table .xml help

#1 Post by Supergala » Thu Jan 04, 2024 9:03 pm

Hi folks, I need a hand. I'm using the name table to send the random stones to the alts for merging and since the automatic log doesn't work I decided to create more accounts that do this service for me. I have a problem here. I tell the players to buy 50 fusions and send 10 for each player, therefore 5 players, but after he has sent the stones to the first name he goes back to the NPC to buy another 50, when instead I would like them to send them all at once .can you help me? Thank you

User avatar
Administrator
Site Admin
Posts: 5313
Joined: Sat Jan 05, 2008 4:21 pm

Re: name table .xml help

#2 Post by Administrator » Fri Jan 05, 2024 9:55 am

You would need to refactor the waypoint 16 code. We can actually simplify it a bit as a result. Simply iterate over the full list in
nameTable
and send the stones.

This is untested, but it should look something like this:

Code: Select all

for counter = 1, #nameTable do
    repeat
        player:target_NPC(110793) -- Mailbox
        yrest(1000)
    until RoMScript("MailFrame:IsVisible()") or os.clock() - t > 5;

    if RoMScript("MailFrame:IsVisible()") then
        UMM_SendByNameOrId(nameTable[counter], 202999, 10);
    else
        print("[WARNING] MailFrame is not visible; could not send items to character at index " .. counter);
    end

    yrest(500);
end

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 0 guests