I'm using since 2 weeks the fastLogin functionality and nearly every time I need to do something because it hangs up. The error messages are:
1) within a WP File
Code: Select all
3:24pm - D:/MicroMacro/scripts/rom/functions.lua:2227: bad argument #1 to 'origi
nalkeyboardHold' (number expected, got nil)Code: Select all
onLoad error: D:/MicroMacro/scripts/rom/functions.lua:2227: bad argument #1 to '
originalkeyboardHold' (number expected, got nil)Code: Select all
Keine Fernkampf Fähigkeit im Profil angegeben. Option COMBAT_RANGED_PULL wurde a
usgeschaltet.
onLoad error: undefined player.Class1 in settings.lua4) or it writes that it didn't find the macro on place 1
5) after changing the char the bot is not fighting against the mobs in the changeOptionFriendMob("mob", mob, "Add"). but the char is running and fighting back if necessary.
could someone tell me what to do to get it working more reliable?
the code for the command is
Code: Select all
function all_Users()
AccountNumber = RoMScript("LogID")
CharacterNumber = RoMScript("CHARACTER_SELECT.selectedIndex")
while not (AccountNumber == 55 and CharacterNumber ==8)
do
SetCharList({
{account=1 , chars= {1,2,3,4,5,6,7,8}},
--...
{account=55 , chars= {1,2,3,4,5,6,7,8}},
})
logInfo("test","running with " .. player.Name .. "/" .. RoMScript("GetAccountName()") .. "(" .. CharacterNumber .. "/" .. RoMScript("LogID") .. ") ",true)
player:rest(0.05*60) -- 30sec pause
LoginNextChar()
player = CPlayer.new();
settings.load();
settings.loadProfile(convertProfileName("MyDef"))
AccountNumber = RoMScript("LogID") --AccountName = RoMScript("GetAccountName()")
CharacterNumber = RoMScript("CHARACTER_SELECT.selectedIndex")
end
logInfo("test","running with " .. player.Name .. "/" .. RoMScript("GetAccountName()") .. "(" .. CharacterNumber .. "/" .. RoMScript("LogID") .. ") ",true)
player:rest(0.05*60) -- 30sec pause
end