ScriptUO

Official ScriptUO EasyUO Scripts => Script Debug => Topic started by: Grandewd on May 31, 2014, 03:13:04 PM

Title: Regarding Armor Ignore
Post by: Grandewd on May 31, 2014, 03:13:04 PM
How do you guys check to see if you have it on your weapon?
:-[
Title: Re: Regarding Armor Ignore
Post by: dxrom on June 01, 2014, 12:45:26 AM
This is something you should predefine. You should know what weapons are to be used with your character and thus should define how to use them.. For example, I used to use this procedure in stealth (Dunno about EUO)

Code: [Select]
procedure CheckSpecial(Wep:Cardinal; Ability:String; Special:String; Hands:Integer);
begin
  if( Hands = 1 ) then
  begin
    if( GetType(ObjAtLayer(RHandLayer())) = Wep ) then
    begin
      if( (GetActiveAbility<> Ability) AND (GetMana(SELFID)>10) ) then
      begin
        if( Special = 'Primary' ) then
        begin
          UsePrimaryAbility;
        end;
        if( Special = 'Secondary' ) then
        begin
          UseSecondaryAbility;
        end;
        ClientPrint(GetActiveAbility);
        wait(175);
      end;
    end;
  end;
 
  if( Hands = 2 ) then
  begin
    if( GetType(ObjAtLayer(LHandLayer())) = Wep ) then
    begin
      if( (GetActiveAbility<> Ability) AND (GetMana(SELFID)>10) ) then
      begin
        if( Special = 'Primary' ) then
        begin
          UsePrimaryAbility;
        end;
        if( Special = 'Secondary' ) then
        begin
          UseSecondaryAbility;
        end;
        ClientPrint(GetActiveAbility);
        wait(175);
      end;
    end;
  end;
end;

And I call it via this as an example for a composite bow.

Code: [Select]
CheckSpecial($26C2,'Armor Ignore','Primary',2);
It's not the prettiest or even probably close to the best way to do it (You could predefine an entire library of weapons if you wanted and employ it some way.)
Title: Re: Regarding Armor Ignore
Post by: Grandewd on June 01, 2014, 01:35:42 PM
This is no doubt a dumb question, but I have to ask (because I've heard good things about Stealth):
Can EUO and Stealth run concurrently?
Title: Re: Regarding Armor Ignore
Post by: dxrom on June 01, 2014, 01:51:20 PM
This is no doubt a dumb question, but I have to ask (because I've heard good things about Stealth):
Can EUO and Stealth run concurrently?

Why would they need to? When it comes to Stealth, EUO is obsolete.
Title: Re: Regarding Armor Ignore
Post by: Grandewd on June 01, 2014, 01:57:41 PM
This is no doubt a dumb question, but I have to ask (because I've heard good things about Stealth):
Can EUO and Stealth run concurrently?

Why would they need to? When it comes to Stealth, EUO is obsolete.

But it also means I have to learn a new language, and my collection of working scripts worthless....   *Wishes someone would come up with a EUO to Stealth converter*
Title: Re: Regarding Armor Ignore
Post by: gimlet on June 01, 2014, 02:36:51 PM
This is no doubt a dumb question, but I have to ask (because I've heard good things about Stealth):
Can EUO and Stealth run concurrently?

Why would they need to? When it comes to Stealth, EUO is obsolete.

But it also means I have to learn a new language, and my collection of working scripts worthless....   *Wishes someone would come up with a EUO to Steam converter*

I use euo and stealth every time there is a forced patch.
Title: Re: Regarding Armor Ignore
Post by: dxrom on June 01, 2014, 03:11:00 PM
This is no doubt a dumb question, but I have to ask (because I've heard good things about Stealth):
Can EUO and Stealth run concurrently?

Why would they need to? When it comes to Stealth, EUO is obsolete.

But it also means I have to learn a new language, and my collection of working scripts worthless....   *Wishes someone would come up with a EUO to Steam converter*

I use euo and stealth every time there is a forced patch.


You can use stealth to bypass patching a client in order to get logged in to continue scripting with EUO. But that's barely taking advantage of Stealth itself at all :(

That's like telling a junky "We're out of crack, try pcp laced with crack instead."
Title: Re: Regarding Armor Ignore
Post by: Grandewd on June 01, 2014, 03:24:17 PM
This is no doubt a dumb question, but I have to ask (because I've heard good things about Stealth):
Can EUO and Stealth run concurrently?

Why would they need to? When it comes to Stealth, EUO is obsolete.

But it also means I have to learn a new language, and my collection of working scripts worthless....   *Wishes someone would come up with a EUO to Steam converter*

I use euo and stealth every time there is a forced patch.


You can use stealth to bypass patching a client in order to get logged in to continue scripting with EUO. But that's barely taking advantage of Stealth itself at all :(

That's like telling a junky "We're out of crack, try pcp laced with crack instead."

Ok, can you point me to a good Stealth primer?
Title: Re: Regarding Armor Ignore
Post by: dxrom on June 01, 2014, 04:26:52 PM
I'm unsure what you mean by "primer".

However we have a section on Stealth here: http://www.scriptuo.com/index.php?board=145.0

Scripts user's have written that you can check out: http://www.scriptuo.com/index.php?board=146.0

Snippet's of useable code you can look at here: http://www.scriptuo.com/index.php?board=147.0

I have a thread of subs I have made and use in this thread: http://www.scriptuo.com/index.php?topic=11562.0

The Stealth API: http://stealth.od.ua/Doc:Api
Title: Re: Regarding Armor Ignore
Post by: Grandewd on June 01, 2014, 05:36:17 PM
Excellent !
Tyvm  ;)
Title: Re: Regarding Armor Ignore
Post by: Crome969 on June 02, 2014, 12:31:09 AM
Title: Re: Regarding Armor Ignore
Post by: dxrom on June 02, 2014, 12:38:11 AM
Title: Re: Regarding Armor Ignore
Post by: Grandewd on June 02, 2014, 02:07:14 AM
Outstanding, thanks a lot guys...  ;)
It's 3am my time and I'm up way too late... I'll check all that tomorrow.
Thx again!