Move to coord using If then else

02/05/2010 16:57 SaM.ThE.MaN#1
Hi,
i would like to know if this is possible:
Eg:I want to move to 200,200 but there is a person in the way so i donot go there but when he moves i want to go there

EG: If i am at 200,200
then Continue script
Else try and go back to 200,200

is there a way to do the above will be appreciated,

And 2nd one is
Does anyone know how to hook the program with an acc,Put your char name in the box and press attach,if anyone can help be will be appreciated and ofcourse ill press thanx
02/08/2010 09:26 SaM.ThE.MaN#2
bump
02/08/2010 12:11 | Moep |#3
to1. You can make an collision check. Do that by using 2 diffrent variables. So, u start moveto and save the coords in the first variable. After several time, save the coords in the second variable. Then check the first variable against the second variable. If the difference becomes smaller then a choosen value, the char stucks maybe, and u start a routine who let the char move to another position...
02/09/2010 18:22 SaM.ThE.MaN#4
yeah somthing like that,but i wanna know how to code
02/09/2010 19:24 | Moep |#5
I gave u the logical algorithm how to solve your problem, now u must try to implement this in your code.
02/10/2010 08:18 SaM.ThE.MaN#6
but am not a pro in programing,am kinda a begginer,trying to learn here
02/10/2010 15:34 | Moep |#7
Dude, first i dont know wich game. second i dont know how u get your coords. third i dont know how ur moveto working, fourth i dont know your scripting skills and so on....
So, how should i know how i can help you?!..
And by the way, nearly absolutly every problem can be solved with "if...then", its only a thing of element breakdown..
02/16/2010 19:08 ax5#8
Please post your code and name of game so we can help you :):)
02/20/2010 16:54 SaM.ThE.MaN#9
i already know it i think
If coord = 200,200 then
else goto 200,200

do u know how to do it,idk
the name of my game is Conquer online
02/22/2010 07:24 SaM.ThE.MaN#10
Double post,
but bump
02/22/2010 15:24 ax5#11
Please remove 1 post and edit the other one.


Thanks , AX5 :)