View Full Version : Combat Script Help
bambe
06-26-2012, 06:42 PM
Hi was wondering if somebody can help me, im trying to make a fighting script for soulsplit (the rsps) ive had a few attempts (failed) but not sure wether to go for FindColor or FindObj.
Also i really cant work out how to wait to be out of combat befor attacking something else.
Thanks
Based Lord
06-26-2012, 06:59 PM
Check out this guide. It might be a little advanced but I think you should be able to work your self through it
http://villavu.com/forum/showthread.php?t=76005
bambe
06-26-2012, 07:09 PM
I shall give that another go although i have tried it once already and couldn't seem to get it working
Based Lord
06-26-2012, 07:12 PM
I shall give that another go although i have tried it once already and couldn't seem to get it working
If you still can't figure it out you can try looking at my Animation Room Script. I have a few different methods for finding objects.
Also are you using Auto Color Aid? It will make a color finding function for you.
http://villavu.com/forum/showthread.php?t=26944
bambe
06-26-2012, 07:24 PM
i just tried that guide and it finds my NPC very fast but will not click.... although its set up with
Begin
Result := True;
GetMousePos(X, Y);
mouse(x,y,3,3,true);
wait(5000 + random(1000));
It still wont click
Any ideas why?
Based Lord
06-26-2012, 07:26 PM
Can you show me the entire thing?
bambe
06-26-2012, 07:30 PM
I think ive attached it, its just basic at the moment just so i can get it working
Based Lord
06-26-2012, 07:42 PM
If it is not clicking and the mouse is moving to the object it is due to the UpText Failing
You can try WaitUpText('agannoth') or WaitUpTextMulti(['agann','noth','agannoth'],500)
something like the above or you can just get rid of that and change the MMouse to a Mouse(X, Y, 3, 3, True); to do a left click
bambe
06-26-2012, 07:48 PM
yea i just found that, if i put // next to the uptext thing it works fine, although i need something to let it know its still in combat before attacking a new NPC
bambe
06-26-2012, 08:01 PM
Ive just tried all the UpText lines and it just wont work, maybe because its a rsps? I dont know, at least im now a step closer and can actually click the NPC :)
Thanks :)
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.