10-13-2012, 15:51 PM
Hey guys.. Lets me ask something.. I edit script with nicks and ID but when i on script i recive this msg:
ress.lua: No matching overload found, candidates:
User* GetYserByName(custom [class
std::basic_stringstd::char_traits,class std:: allocator
>]const&)
Script:
CharName1 = "Char1"; -- Char Name who must Be Ressed
CharName2 = "Char2"; -- Char Name who must Be Ressed
CharName3 = "Char3"; -- Char Name who must Be Ressed
ResSkillId = 11564; -- Ress Skill ID u want use
------------------------------------------
ResSkill = GetSkills():FindById(ResSkillId);
function WhoToRes(nick)
if(GetUserByName(nick):IsAlikeDeath() == true)and
(ResSkill ~= nil) and
(ResSkill:CanBeUsed()) then
Target(nick);
Sleep(500);
UseSkillRaw(ResSkillId, false, false);
Sleep(500);
ClearTargets();
Sleep(500);
end;
Sleep(500);
end;
repeat
WhoToRes(CharName1);
Sleep(500);
WhoToRes(CharName2);
Sleep(500);
WhoToRes(CharName3);
Sleep(500);
WhoToRes(CharName4);
Sleep(500);
WhoToRes(CharName5);
Sleep(500);
until false;
Someone can tell me what i need to do?
Ty a lot.
Ps: Yes, I used the "search" and found topics related to this subject, but I am a layman in this matter on scripts.
Even so, I edited the way it was being asked. But the error continues.
The script works, the ress work, but not for the message to appear.
Sry for my english xD
ress.lua: No matching overload found, candidates:
User* GetYserByName(custom [class
std::basic_stringstd::char_traits,class std:: allocator
>]const&)
Script:
CharName1 = "Char1"; -- Char Name who must Be Ressed
CharName2 = "Char2"; -- Char Name who must Be Ressed
CharName3 = "Char3"; -- Char Name who must Be Ressed
ResSkillId = 11564; -- Ress Skill ID u want use
------------------------------------------
ResSkill = GetSkills():FindById(ResSkillId);
function WhoToRes(nick)
if(GetUserByName(nick):IsAlikeDeath() == true)and
(ResSkill ~= nil) and
(ResSkill:CanBeUsed()) then
Target(nick);
Sleep(500);
UseSkillRaw(ResSkillId, false, false);
Sleep(500);
ClearTargets();
Sleep(500);
end;
Sleep(500);
end;
repeat
WhoToRes(CharName1);
Sleep(500);
WhoToRes(CharName2);
Sleep(500);
WhoToRes(CharName3);
Sleep(500);
WhoToRes(CharName4);
Sleep(500);
WhoToRes(CharName5);
Sleep(500);
until false;
Someone can tell me what i need to do?
Ty a lot.
Ps: Yes, I used the "search" and found topics related to this subject, but I am a layman in this matter on scripts.
Even so, I edited the way it was being asked. But the error continues.
The script works, the ress work, but not for the message to appear.
Sry for my english xD