Quote Originally Posted by Seligeari View Post
Hello.

I wrote some condition instruction but its not working. My question is why?

PHP Code:
        local kongra Self.GetCreatureKills(Kongra)
        
local ape Self.GetCreatureKills(Sibang)
        
local merlkin Self.GetCreatureKills(Merlkin)
        
local all math.max(kongra ape merlkin)
    
        if 
counttask >= 3 then 
            Walker
.GoTo("GoToHunt")
            
end
            
        
if all >= 300 then
            Self
.ResetCreatureKills(Kongra)
            
Self.ResetCreatureKills(Sibang)
            
Self.ResetCreatureKills(Merlkin)
            
Walker.GoTo("Task")    
            
end
            
        
if all <= 300 then
            Walker
.Goto("GoToHunt")
        
end 
counttask is set for 0 and it adds 1 everytime when hes at grizzly.
Code:
Self.GetCreatureKills(Kongra) -> Self.GetCreatureKills("Kongra")