Проблема со скрипт на определение злобности !
Posted: 2007-11-28 19:55:00
Вроде все правильно и должно работать, но выдает проста 5 раз
FINDDISTANS=0
item found = 0
И ето возле ББ где куча народу !
Сам скрипт
sub zloba()
Var i
Var color
For i=1 to 5
__uo.ignore('self')
__uo.set('finddistance','i')
__uo.findtype('0x0190','-1','ground')
__if uo.findcount() > 0 then
_____while UO.FindCount() > 0
________if uo.isNPC('finditem') then
___________color=uo.GetNotoriety('finditem')
___________UO.Print( 'Уровень злобноста: ' + str( color ) )
___________wait(1000)
___________uo.ignore('finditem')
_________else
___________UO.Print('призрак')
___________wait(1000)
___________uo.ignore('finditem')
________end if
________wait(2000)
_____wend
_____wait(1000)
__end if
Next
uo.ignorereset()
end sub
И вообсче почемуто проблем с поиском uo.findtype() очень много особенно если искать людей , то ишет то не ищет ,чорт знает что !
FINDDISTANS=0
item found = 0
И ето возле ББ где куча народу !
Сам скрипт
sub zloba()
Var i
Var color
For i=1 to 5
__uo.ignore('self')
__uo.set('finddistance','i')
__uo.findtype('0x0190','-1','ground')
__if uo.findcount() > 0 then
_____while UO.FindCount() > 0
________if uo.isNPC('finditem') then
___________color=uo.GetNotoriety('finditem')
___________UO.Print( 'Уровень злобноста: ' + str( color ) )
___________wait(1000)
___________uo.ignore('finditem')
_________else
___________UO.Print('призрак')
___________wait(1000)
___________uo.ignore('finditem')
________end if
________wait(2000)
_____wend
_____wait(1000)
__end if
Next
uo.ignorereset()
end sub
И вообсче почемуто проблем с поиском uo.findtype() очень много особенно если искать людей , то ишет то не ищет ,чорт знает что !