Unequip then Requip the same weapon (with Enchant Poison)

International

Moderator: Moderators

MrIrrelevant
Noob
Noob
Posts: 7
Joined: 20 Jul 2017, 21:17
Noob?: No

Unequip then Requip the same weapon (with Enchant Poison)

#1 Post by MrIrrelevant »

Hello again,
Trying to figure out how to use Enchant Poison all the time, except when fighting monsters that are immune/resistant to it.

So far I have:
useSelf_skill Enchant Poison {
lvl 10,9,8,7,6,5,4,3,2,1
sp > 20%
whenStatusInactive Enchant Poison
notMonsters Mummy, Isis, Requiem, Drainliar, Archer Skeleton, Soldier Skeleton, Maytr
inLockOnly 1
notWhileSitting 1
notInTown 1
disabled 0
}

autoSwitch_default_rightHand Jamadhar
#autoSwitch_default_rightHand Katar [1]
#autoSwitch_default_rightHand Jur [2]
autoSwitch_default_leftHand
autoSwitch_default_arrow

autoSwitch Mummy, Isis, Requiem, Drainliar, Archer Skeleton, Soldier Skeleton, Maytr {
rightHand [NONE]
leftHand
arrow
distance
useWeapon
}

autoSwitch Mummy, Isis, Requiem, Drainliar, Archer Skeleton, Soldier Skeleton, Maytr {
rightHand Jamadhar
# rightHand Katar [1]
# rightHand Jur [2]
leftHand
arrow
distance
useWeapon
}
By this it will use Enchant Poison all the time when it is not active. If however affected by Enchant Poison prior AND has to fight one of those listed monsters that is immune/resistant to it, then I want it to unequip the weapon (NONE) and thus getting rid of Enchant Poison) then requip the same weapon that it just unequipped. However by having two blocks it just unequips the weapon and loops and doesn't requip.

Any suggestions on what to change?

I even tried:
equipAuto {
rightHand Jamadhar
# rightHand Katar [1]
# rightHand Jur [2]
monsters Mummy, Isis, Requiem, Drainliar, Archer Skeleton, Soldier Skeleton, Maytr, Beetle King
whenStatusActive Enchant Poison
}
But this doesn't work at all ^

Or the only way is to have two separate weapons?
Example: Jur for fighting randoms with Enchant Poison, then swap to Katar without Enchant Poison against those immune/resistant or I have listed in the monster blocks.

(Which I know how to do but am not looking for that particular solution and trying to find an answer with just a single weapon.)
Last edited by MrIrrelevant on 05 Aug 2017, 01:54, edited 1 time in total.
c4c1n6kr3m1
The Way Of Human
The Way Of Human
Posts: 150
Joined: 24 Mar 2012, 04:13
Noob?: Yes

Re: Unequip then Requip the same weapon (with Enchant Poison)

#2 Post by c4c1n6kr3m1 »

bring different weapon
switch to it

bot confuse with this
autoSwitch Mummy, Isis, Requiem, Drainliar, Archer Skeleton, Soldier Skeleton, Maytr

you have double autoSwitch with same monster
MrIrrelevant
Noob
Noob
Posts: 7
Joined: 20 Jul 2017, 21:17
Noob?: No

Re: Unequip then Requip the same weapon (with Enchant Poison)

#3 Post by MrIrrelevant »

c4c1n6kr3m1 wrote:bring different weapon
switch to it
Yes, I realize I COULD use another weapon however as stated in the title and very last sentence of my 1st post I am looking for a solution that using the same weapon. And I already know how to use a two-weapon autoswitch configuration already. "Example: Jur for fighting randoms with Enchant Poison, then swap to Katar without Enchant Poison against those immune/resistant or I have listed in the monster blocks."
c4c1n6kr3m1 wrote:bot confuse with this
autoSwitch Mummy, Isis, Requiem, Drainliar, Archer Skeleton, Soldier Skeleton, Maytr

you have double autoSwitch with same monster
Yes, I also know that as I wrote 'However by having two blocks it just unequips the weapon and loops and doesn't requip.' and am looking for a solution, and not to point out the problem already stated. Even if I remove it it doesn't resolve much as it does not requip same weapon and I also tried the autoequip configuation block instead of it but still does not work.

Thanks for the reply though.
hakore
Super Moderators
Super Moderators
Posts: 200
Joined: 16 May 2008, 08:28
Noob?: No

Re: Unequip then Requip the same weapon (with Enchant Poison)

#4 Post by hakore »

Since you need to perform 2 actions (uneq + pause + eq) in one trigger, macro would be required.
Whatever...
MrIrrelevant
Noob
Noob
Posts: 7
Joined: 20 Jul 2017, 21:17
Noob?: No

Re: Unequip then Requip the same weapon (with Enchant Poison)

#5 Post by MrIrrelevant »

hakore wrote:Since you need to perform 2 actions (uneq + pause + eq) in one trigger, macro would be required.
I see, thank you for the reply.
Macro? Hm that is a separate download from Openkore?
hakore
Super Moderators
Super Moderators
Posts: 200
Joined: 16 May 2008, 08:28
Noob?: No

Re: Unequip then Requip the same weapon (with Enchant Poison)

#6 Post by hakore »

It's a plugin, but I think it's already included in your openkore.

Check your plugins folder.

For more info, see macro plugin in the openkore wiki and look around the macro plugin subforum here.
Whatever...