[SOLVED] Need help in my function...

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
kutalmismete
Posts: 25
Joined: Thu May 26, 2016 6:26 am

[SOLVED] Need help in my function...

#1 Post by kutalmismete » Sun Oct 30, 2016 10:13 am

Code: Select all

function setRaidPos(num)
	for i = 1, 36 do 
		name = GetPartyMemberName(i)
		if name == player.Name then
			RoMScript("MoveRaidMember(i, num)")
			break;
		end
	end
end
I can't understand why it doesn't work. Also when I trying to check that on waypoint's onLoad phase, it saying (number expected, got nil) or Error sending command to IGF. and kinda errors etc. How can I use variables on MoveRaidMember ?

EDIT: Sigh... Like everytime I found syntax via other function lua files.

Code: Select all

function setRaidPos(num)
	for i = 1, 36 do 
		name = RoMScript("UnitName('raid"..i.."')")
		if name == player.Name then
			RoMScript("MoveRaidMember('"..i.."'	, '"..num.."')")
			break;
		end
	end
end
Now It is working.

Post Reply

Who is online

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