Lua Error on AI

Jedzkie

The Master of White Spaces
Messages
632
Points
0
Age
33
Location
Philippines
Discord
✪ Jedzkie#0662
IRC Nickname
Jedzkie
Github
Jedzkie
Emulator
Client Version
2016-03-16 RE
when i try to use /merai (custom AI config) this error pops up.. './AI_sakray/USER_AI/Battle.lua:259: attempt to call a table value'

this is the code in line 259:

for i,v in Friends do

this is the full code:



Code:
   -- 3. Check if our friends has enemies.	if object == 0 then		for i,v in Friends do			object = GetEnemyOf(v)		end	end
 
you have to drop the AI into BOTH  folders ,   AI and  AI_sakray

here you go ,fixed 2 other bugs .

tested and it works like a charm now
default_smile.png


http://www.mediafire.com/?axaip2fjkoea31t

 
Last edited by a moderator:
Back
Top