Jump to content

need help with RO ai script


kennycc
 Share

Recommended Posts

ok i know that this part of game don't use Autoitv3 but i was still wondering if i can get some help anyhow. if this is not the right place or can't ask then please delete the post

this is code the code i'm trying to work with

--------------------------------------------------

-- Fast attack Mod 2.0 by Zenia-chan

--------------------------------------------------

-- Your AI will dance while attacking around a

-- center point. attack faster. However, it will

-- be unable to recover HP/SP while attacking,

-- becuase of the movements.

--------------------------------------------------

CenterX = 0

CenterY = 0

--------------------------------------------------

function ModInit()

-- plugin initialization

--------------------------------------------------

StdOnATTACK_ST = OnATTACK_ST

OnATTACK_ST = FastOnATTACK_ST

end

--------------------------------------------------

function FastOnATTACK_ST()

--------------------------------------------------

local ax, ay = GetV( V_POSITION, MyID )

local bx, by = GetV( V_POSITION, MyEnemy )

if (LONG_RANGE_SHOOTER == true) then

CenterX = ax

CenterY = ay

else

if ((ax - bx) >= (ay - by)) then

if (ax >= bx) then

CenterX = bx + 2

else

CenterX = bx - 2

end

CenterY = by

else

if (ay >= by) then

CenterY = by + 2

else

CenterY = by - 2

end

CenterX = bx

end

end

StdOnATTACK_ST ()

Move(MyID, CenterX + 1, CenterY)

Move(MyID, CenterX - 1, CenterY)

StdOnATTACK_ST ()

Move(MyID, CenterX, CenterY + 1)

Move(MyID, CenterX, CenterY - 1)

end

[code=auto:0]

its not written by me nor do i know how to contact him/her to ask for fix.

the problem with this code i like to fix is this part

[code=auto:0] if (LONG_RANGE_SHOOTER == true) then

CenterX = ax

CenterY = ay

[code=auto:0]

it seem that part of the code isn't working at all so i was wonder how to fix that part.

the game is Ragnarok Online and this part of the script is for the AI in the game.

Link to comment
Share on other sites

ummm if you looked up about this game they have script build in for AI. AI use script as you can see the code. and this is not a bot for your information. The AI is for Homunculus that archimist use as pet to attack monster and player. or player who hired mercenary to use as to attack player or monster. so tell me if this will be going to be using as bot or not. when the game itself they let us player use this script to use Homunculus and mercenary easier

Edited by kennycc
Link to comment
Share on other sites

  • Developers

ok i know that this part of game don't use Autoitv3 but i was still wondering if i can get some help anyhow. if this is not the right place or can't ask then please delete the post

Correct, so don't bother posting when you know you shouldn't be posting here.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...