Sign in to follow this  
Followers 0
kennycc

need help with RO ai script

4 posts in this topic

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.

Share this post


Link to post
Share on other sites



They are most likely going to tell you to take a look at this..

http://www.autoitscript.com/forum/index.php?showannouncement=11&f=2

Which I think is pretty annoying :mellow: but I can still understand their point..

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

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.

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0