Homunculus S Not Attacking - Homunculus Headquarters - WarpPortal Community Forums

Jump to content


Photo
- - - - -

Homunculus S Not Attacking


  • Please log in to reply
9 replies to this topic

#1 SakuraMazaki

SakuraMazaki

    Amateur Blogger

  • Members
  • 210 posts
  • LocationCanada~
  • Playing:Ragnarok Online
  • Server:Chaos

Posted 22 October 2014 - 05:19 AM

The humonculus S only attacks when the owner is attacked or is being commanded to attack, but doesn't attack when it gets attacked. How do I fix this?


  • 0

#2 DrAzzy

DrAzzy

    Really Azzy? Already?

  • VMod Retired
  • 15606 posts
  • LocationNew England
  • Playing:Ragnarok Online
  • Server:Chaos-Clandestine Society

Posted 22 October 2014 - 05:31 AM

What AI are you using?

If using my AI on default settings, it should be attacking, provided it's not low on hp...

Edited by DrAzzy, 22 October 2014 - 05:31 AM.

  • 0

#3 SakuraMazaki

SakuraMazaki

    Amateur Blogger

  • Members
  • 210 posts
  • LocationCanada~
  • Playing:Ragnarok Online
  • Server:Chaos

Posted 23 October 2014 - 03:01 PM

It should be the default ai that ro comes with...


Edited by SakuraMazaki, 23 October 2014 - 03:02 PM.

  • 0

#4 DrAzzy

DrAzzy

    Really Azzy? Already?

  • VMod Retired
  • 15606 posts
  • LocationNew England
  • Playing:Ragnarok Online
  • Server:Chaos-Clandestine Society

Posted 23 October 2014 - 06:21 PM

That's why - under default AI, all homun S are non-aggro.

Install a custom AI.
  • 0

#5 SakuraMazaki

SakuraMazaki

    Amateur Blogger

  • Members
  • 210 posts
  • LocationCanada~
  • Playing:Ragnarok Online
  • Server:Chaos

Posted 24 October 2014 - 02:46 PM

I remember before homunculus s, I was able to change my filir to act like amistr (stop it from attacking everything in sight I think) by altering the ai only a little bit. Is there an easy way to just add in attacking things that attack it?


  • 0

#6 DrAzzy

DrAzzy

    Really Azzy? Already?

  • VMod Retired
  • 15606 posts
  • LocationNew England
  • Playing:Ragnarok Online
  • Server:Chaos-Clandestine Society

Posted 25 October 2014 - 06:04 AM

It can be done buy changing getmyenemy in the default ai.

The default ai is pretty lousy. I don't recommend using it.
  • 0

#7 SakuraMazaki

SakuraMazaki

    Amateur Blogger

  • Members
  • 210 posts
  • LocationCanada~
  • Playing:Ragnarok Online
  • Server:Chaos

Posted 25 October 2014 - 06:40 PM

I don't mind manually using skills, just want it to attack what's on it. There are multiple getmyenemy.

 

object = GetMyEnemy (MyID)
 if (object ~= 0) then       -- ATTACKED_IN
  MyState = CHASE_ST
  MyEnemy = object
  TraceAI ("IDLE_ST -> CHASE_ST : ATTACKED_IN")
  return
 end

 

Looks set to attack already to me. Must be the wrong one? (Been a long while since I poked around with this =x)


  • 0

#8 DrAzzy

DrAzzy

    Really Azzy? Already?

  • VMod Retired
  • 15606 posts
  • LocationNew England
  • Playing:Ragnarok Online
  • Server:Chaos-Clandestine Society

Posted 25 October 2014 - 07:08 PM

Look at the function definition for GetMyEnemy()

function GetMyEnemy (myid)
local result = 0

local type = GetV (V_HOMUNTYPE,myid)
if (type == LIF or type == LIF_H or type == AMISTR or type == AMISTR_H or type == LIF2 or type == LIF_H2 or type == AMISTR2 or type == AMISTR_H2) then
result = GetMyEnemyA (myid)
elseif (type == FILIR or type == FILIR_H or type == VANILMIRTH or type == VANILMIRTH_H or type == FILIR2 or type == FILIR_H2 or type == VANILMIRTH2 or type == VANILMIRTH_H2) then
result = GetMyEnemyB (myid)
end
return result
end



GetMyEnemyB is aggro (Warning: The default AI has no KS protection, GetMyEnemyA is non-aggro. Since neither of conditions for the if statements are fulfilled for a homun S, neither of those are called, so it always returns 0. You'd need to modify this, either expanding the conditions for the if statements, or hardcoding it to always GetMyEnemyA.

Note also that there aren't even constants defined for the homun S type ID's - so you'll need to either use the numbers or define them yourself.

Also - onFollowST() is crap in the default AI as well - it can't keep up with the owner because it doesn't fire the command to follow if the homun is moving, forcing it to pause before it continues following, so it will never be able to keep up, even if it and owner have same movement speed.
  • 0

#9 SakuraMazaki

SakuraMazaki

    Amateur Blogger

  • Members
  • 210 posts
  • LocationCanada~
  • Playing:Ragnarok Online
  • Server:Chaos

Posted 26 October 2014 - 05:55 PM

Well, installed your newest ai. I have it so it doesn't auto attack skill, but can you change the auto use of the buff skills?

 

Also, thank you for clearing things up a bit! :)


Edited by SakuraMazaki, 26 October 2014 - 05:56 PM.

  • 0

#10 DrAzzy

DrAzzy

    Really Azzy? Already?

  • VMod Retired
  • 15606 posts
  • LocationNew England
  • Playing:Ragnarok Online
  • Server:Chaos-Clandestine Society

Posted 26 October 2014 - 06:42 PM

Yup - that's controlled in the Auto Buff options section of the Homunculus Config.

Options are called UseDefensiveBuff and UseOffensiveBuff for pre-S buffs, and they're named for the skill, for homun S buffs.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users