Page 1 of 1
name table .xml help
Posted: Thu Jan 04, 2024 9:03 pm
by Supergala
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
Re: name table .xml help
Posted: Fri Jan 05, 2024 9:55 am
by Administrator
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