Антимакрос для FWUO

Ask for scripts here

Moderators: Murderator+, Murderator

Post Reply
Stilazz
Posts: 6
Joined: 2013-07-30 19:52:11

Антимакрос для FWUO

Post by Stilazz »

Нету ни у кого случайно рабочего антимакроса для форготтен ворлд, или может кто знает как исправить ошибку в старом?

Code: Select all

sub aams() 
var gumpid=0 
var buttonid=0 
var buttontext 
var i=18,j,rand 

dim reindex[8] 
reindex[0]=11 
reindex[1]=12 
reindex[2]=13 
reindex[3]=10 
reindex[4]=16 
reindex[5]=14 
reindex[6]=17 
reindex[7]=15 

for j=1 to 2 
rand=uo.random(10)*100 
wait(100) 
wait(500+rand) 
if uo.LastGump('text',4)<>"0" then 
i=19 
endif 
GumpID =val(Mid(uo.LastGump('command',i),16,4)) 
ButtonID=reindex[GumpID-2225] 
ButtonText=uo.LastGump('command', ButtonID) 
uo.LClick(Val(Mid(ButtonText,7,3)),Val(Mid(ButtonText,11,3))) 
next 
wait(500) 
endsub 

sub AntiMacro() 
while not uo.Dead() 
if not uo.LastGump('replyed') then 
if uo.LastGump('text', 0) == 'Antimacros System' then 
aams() 
end if 
endif 
wait(500) 
wend 

end sub 

собственно в этой строке загвоздка.
ButtonID=reindex[GumpID-2225]


пытался я долго вникнуть во все эти гамповские причуды, но видимо не судьба.
Post Reply