name table .xml help
name table .xml help
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
- Administrator
- Site Admin
- Posts: 5313
- Joined: Sat Jan 05, 2008 4:21 pm
Re: name table .xml help
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
This is untested, but it should look something like this:
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
Who is online
Users browsing this forum: No registered users and 1 guest