HI, once again i need ur help :(
Posted: 2008-06-11 02:53:19
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)
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!
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: Select all
sub main()
var i=0
var j=2
DIM ani2[2]
ani2[0]='0x0026FCB7'
ani2[1]='0x0020E041'
while true
uo.useskill("Animal Taming",ani2[i])
Repeat
wait(100)
Until not UO.InJournal("it seems to accepts you") and not UO.InJournal("you faild to tame the animal") #the word on my server r different but i thought it was better to translate it so you can understand ^^'
if uo.injournal("accepts")then
uo.say("all release")
i=i+1
endif
if uo.injournal("faild")then
i=i-1 #i tryed many time even using a uo.print("something") but the script does not make any action when i write "faild" in game
endif
wend
end sub
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!