[EasyUO] rearming weapon abilities

If you make a Client-side script you can publish it here for other players to use
Locked
Stranger
Grandmaster Scribe
Posts: 90
Joined: Fri Jan 14, 2011 1:21 pm

[EasyUO] rearming weapon abilities

Post by Stranger »

How can I auto-rearm primary or secondary weapon ability after each use?
And (in perfection) stop rearming if I arm some of the bushido/ninjitsu spells to continue after?
Nunja
Grandmaster Scribe
Posts: 79
Joined: Mon Feb 21, 2011 9:27 pm

Re: [EasyUO] rearming weapon abilities

Post by Nunja »

arm the ability (using event macro) ... see here for example http://www.uoex.net/forum/viewtopic.php?f=25&t=2015
loop:
scan journal for "you perform ability" text (whatever it is for the selected ability)
endloop:
goto top

theres scan journal example in kiana bee harvester which is on the forum somewhere

goodluck
Penny
Legendary Scribe
Posts: 210
Joined: Thu Oct 01, 2009 12:05 pm

Re: [EasyUO] rearming weapon abilities

Post by Penny »

Here's what i did on openEUO to check whether a weapon special is activated or not. Go through each open container until you find the ability icons and check the container colors if either of them is red. Just need to convert the function below to easyUO

Code: Select all

local function specialActivated()
	for i = 0,400 do
		sName,nX,nY,nSX,nSY,nKind,nId,nType,nHP = UO.GetCont(i)
		if not sName then
			break
		elseif nKind == 58692 then
			nCol = UO.GetPix(nX+1,nY+1)
			if nCol == 3217548 then
				return true
			end
		end
	end
	return false
end
Failure is not an option, it's a standard.
Danilo Thann
Elder Scribe
Posts: 102
Joined: Wed Feb 17, 2010 10:52 am

Re: [EasyUO] rearming weapon abilities

Post by Danilo Thann »

No perfection here... the virtue for it is disabled. Sorry to tell you that. The Sampire is dead here.
Criticism is good because it improves upon what came before, and solidifies the strongest of foundations.
Locked