Welcome to the Builder Academy

Question Invis to animals spell - need a bit help

More
06 May 2019 21:01 - 06 May 2019 21:13 #8380 by JTP
Ahh i had to do this:
Code:
#define INVIS_OK(sub, obj) \ ((!AFF_FLAGGED((obj),AFF_INVISIBLE) || AFF_FLAGGED(sub, AFF_DETECT_INVIS)) && \ (!AFF_FLAGGED((obj), AFF_HIDE) || AFF_FLAGGED(sub, AFF_SENSE_LIFE)) && \ (!AFF_FLAGGED((obj), AFF_INVIS_TO_ANIMALS) || (IS_NPC(sub) || !GET_CLASS(sub) == CLASS_NPC_ANIMAL)))


Will that also work ?


Hmm, Maybe not. Or something else is wrong. I made a mouse an animal and aggro.

Cast invis to animals on myself, and loaded the mouse. And it attacked me. Or in what Way does invis work ? Because normal invis Will keep me safe from aggro
Last edit: 06 May 2019 21:13 by JTP.

Please Log in or Create an account to join the conversation.

More
06 May 2019 21:50 - 06 May 2019 21:53 #8381 by thomas
Code:
!GET_CLASS(sub) == CLASS_NPC...
should be
Code:
GET_CLASS(sub) != CLASS_NPC...
Last edit: 06 May 2019 21:53 by thomas.

Please Log in or Create an account to join the conversation.

More
06 May 2019 21:53 - 06 May 2019 22:02 #8382 by JTP
Animals first stopped attacking when i tried this:

(!AFF_FLAGGED((obj), AFF_INVIS_TO_ANIMALS) || (GET_CLASS(sub) != CLASS_NPC_ANIMAL)))
Last edit: 06 May 2019 22:02 by JTP.

Please Log in or Create an account to join the conversation.

More
06 May 2019 22:23 #8383 by JTP
I tried giving the animal detect invis...it didnt see me..


How do i get it to see me with detect invis on ?

Please Log in or Create an account to join the conversation.

More
07 May 2019 21:41 #8386 by thomas
add the check for AFF_FLAGGED(sub, AFF_DETECT_INVIS) in te same way it's used in the first check in INVIS_OK.

Please Log in or Create an account to join the conversation.

More
08 May 2019 11:13 - 08 May 2019 11:17 #8389 by JTP
Let me try that
Last edit: 08 May 2019 11:17 by JTP.

Please Log in or Create an account to join the conversation.

Time to create page: 0.345 seconds