| Yoko http://forum.yoko.com.ua/ |
|
| HI, once again i need ur help :( http://forum.yoko.com.ua/viewtopic.php?f=17&t=13678 |
Page 1 of 1 |
| Author: | Sumomo [ 2008-06-11 02:53:19 ] |
| Post subject: | HI, once again i need ur help :( |
hi guys! this time i am trying to raise an animal tamer...so i would to write a script that use an array DIM animals[10] animals[0]='0x817433' . . . animals[10]='someIDwhocares>.<' so i can automaticaly switch from an animal to another one if i succesfully tamed the animal or repeat the taming action on the same animal if i miss to tame him!!! i tryed to write it by myself first using for cycle and than while cycle but i am still a noob scripter and i dunno where i miss cause after the first cycle the character does not do any other action (but the script is currently running :/ ) this is what i have done : (i tested it with 2 animals) Code: sub main() i know that i am messing something but i could not realize what is it! i tryed many form of scripts but nothimg worked>_> tnks for everything! |
|
| Author: | Infectous [ 2008-06-11 11:53:48 ] |
| Post subject: | |
a mass if wants to run through all the arrays each time it is ran... example: Code: sub killbird() it looks for them all & tries to attack every one of them if more then one are found lol, which is ok when you wanna kill them all... now that I look at it I could put a return in there proceed to kill... that will be a different lesson run this with nothing around you will get wtf you looking at? wtf you looking at? wtf you looking at? wtf you looking at? wtf you looking at? wtf you looking at? wtf you looking at? wtf you looking at? any way to rethink your taming strategy... if simply to find any and all running around the forest use the above format or the 3rd one here it works with laststatus. Last shard I was on you could tame sheep to GM so I filled a room with 30 sheep and used "uomacro - targetnext"... then I got carried away & though wth may as well shear em while I was afk note this is a 2 parter the second part is set to a hot key for on the run manual taming... not quite what I want it to do but I am always learning too & really don't tame that much so it's not quite finished but it gets the job done Code: sub Taming() hotkey Code: sub tame() note: I use addobject cleaver for my sword type wep to shear the sheep my "=" button is targetnext (in uo ingame options macros key=187) and ,addtype carrots on the ground to eat also this is a newer server so some messages may not apply or may need to be edited for yours sorry for the mess but I think you will get the idea, I don't tame that much anymore so what is done is done till I move to a new server if "function not found" simply search yokoforums for the function ex the walkn & deletejournal good luck & hope it helps |
|
| Author: | Sumomo [ 2008-06-16 15:07:58 ] |
| Post subject: | |
yes tnk you i did a nice script tnks to your advice! tnks again! |
|
| Page 1 of 1 | All times are UTC+02:00 |
| Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |
|