uo.IgnoreReset() problem

Ask for help

Moderators: Murderator+, Murderator

Post Reply
drowned
Posts: 17
Joined: 2005-03-06 02:57:06

uo.IgnoreReset() problem

Post by drowned »

I made a script like this...

uo.findtype('type')
while not uo.findcount()==0
uo.grab('0','finditem')
uo.ignore('finditem')
uo.findtype('type')
endif
uo.ignorereset()
endsub

But when the sub ends the item is not removed from de ignore list, it still being ignored by the client.

Need help plz.
drowned
Posts: 17
Joined: 2005-03-06 02:57:06

Post by drowned »

When it finishes and grab all itens i try to use grab on them or use massmove and they dont get moved and when i try to do it manually the client crashes!
flake
Expert!
Posts: 746
Joined: 2004-08-11 23:56:17
Location: The Citadel
Contact:

Re: uo.IgnoreReset() problem

Post by flake »

drowned wrote:I made a script like this...

uo.findtype('type')
while not uo.findcount()==0
uo.grab('0','finditem')
uo.ignore('finditem')
uo.findtype('type')
endif
uo.ignorereset()
endsub

But when the sub ends the item is not removed from de ignore list, it still being ignored by the client.

Need help plz.


Whel, first of all - you didn't end your while not uo.findcount()==0 cycle. You should do it with Wend, but instead you wrote endif.
Here is the correct form:

Code: Select all

uo.findtype('type')
while not uo.findcount()==0
uo.grab('0','finditem')
uo.ignore('finditem')
uo.findtype('type')
Wend
uo.ignorereset()
endsub



Also, you should probably use some Wait() after you grab an item.
Whell, it depends on your shard.
drowned
Posts: 17
Joined: 2005-03-06 02:57:06

Post by drowned »

My mistake sorry... but my script have Wend and wait(300) and when the while finishes uo.ignorereset() and send message ('Stop Looting') but the uo.ignorereset() doesnt work.
Edred
Expert!
Posts: 2544
Joined: 2004-04-03 17:36:29
Location: Saint-Petersburg

Post by Edred »

What is "UO.IgnoreReset not work"? UO.Ignore and UO.IgnoreReset work for UO.Findtype ONLY. These commands not affect with UO client. Check your parameters. Maybe you use small pause? Write ',resend' in client.
Post Reply