autodisarm script released!

Karye

Active Member
Welcome to the community.

I havn't had a chance to run the script yet but I scanned through it and it looks like your on the right track to lavishscript nirvana.

I did notice line 191 looked a bit out of place?:

Code:
CHESTINFOARRAY[${cInfoID}]:SetDisarmed[TRUE]
and you might find it a bit easier to use a Stack (http://www.lavishsoft.com/wiki/index.php/ObjectType:stack) instead of an array. It has the push, peek methods already.

Anyways, it looks good and thanks for the reminder I need to add disarm functionality to eq2bot one of these days :evil:
 

Tyric

Active Member
Thanks Karye for pointing that out... it IS out of place. That line should be cut and placed in between line 181 and 182 for now... I will fix that and update the release as soon as I get a chance.

Ideally, it should be placed in the event handler for the Disarm Text event when the chest is actually confirmed to be disarmed, but I couldn't figure out a way to figure out which chest id the disarm text in the chatwindow corresponds to. Is there a way to actually get the item id that the "You have disarmed an <ornate|small|whatever> chest" text corresponds to that I'm missing?

I did look at the stack and queue objects, but neither really fit what I was trying to do with it, since I do scan all objects in the array and peek only gets the top object in the stack and with queue, peek only gets the first item in the stack.

The only reason I use this stack-like array is to prevent spamming the client with /apply_verbs and make it simulate fast user input somewhat "realistically".

Thanks for the input, and I really appreciate the feedback!
 
Top Bottom