EOSERV Forum > EOSERV > Stop npcs attacking when in hide
Page: << 1 >>
Stop npcs attacking when in hide
Author Message
Post #198063 Stop npcs attacking when in hide

Anyone know how to make it so npc's cant attack you when you are in hide, but also you can't attack either?

8 years, 32 weeks ago
Post #198065 Re: Stop npcs attacking when in hide

o_o Wtf is hide? 

---
http://www.ctronic.ga
http://www.tsu.co/Deltro
https://www.reverbnation.com/deltro9
8 years, 32 weeks ago
Post #198067 Re: Stop npcs attacking when in hide

Apperently EOSERV r487 already stops npcs from attacking you due to this piece of code:

if (character->IsHideNpc() || !character->CanInteractCombat())

        continue;


You can also stop hidden players from attacking npcs by adding this at the top of NPC::Damage:

if (from->hidden)

        return;


@Kodyt: Dude you've joined in 2009, how can you not know what $hide is.

8 years, 32 weeks ago
Post #198070 Re: Stop npcs attacking when in hide
kodyt posted: (24th Sep 2015, 06:30 am)

o_o Wtf is hide? 


$hide is the admin command that turns you invisible to everyone.
---
You're all fags.
8 years, 32 weeks ago
Post #198075 Re: Stop npcs attacking when in hide

Omfg. LOL 

For some reason I was thinking ... no scratch that I wasn't thinking. 

I for real had some kind of skill idea in my head like a sneaking skill... Fuck me. haha. 

---
http://www.ctronic.ga
http://www.tsu.co/Deltro
https://www.reverbnation.com/deltro9
8 years, 32 weeks ago
Post #198081 Re: Stop npcs attacking when in hide
kodyt posted: (24th Sep 2015, 04:21 pm)

Omfg. LOL 

For some reason I was thinking ... no scratch that I wasn't thinking. 

I for real had some kind of skill idea in my head like a sneaking skill... Fuck me. haha. 


dont worry man i thought he meant like hiding behind a tree or some shit xD
8 years, 32 weeks ago
Post #198082 Re: Stop npcs attacking when in hide
Fuzzy posted: (25th Sep 2015, 01:19 am)

kodyt posted: (24th Sep 2015, 04:21 pm)

Omfg. LOL 

For some reason I was thinking ... no scratch that I wasn't thinking. 

I for real had some kind of skill idea in my head like a sneaking skill... Fuck me. haha. 


dont worry man i thought he meant like hiding behind a tree or some shit xD

I was, I guess.. Kinda hoping he had some new skill made up to hide that would be great for rogue classes/ninjas lmfao. Fml I'm done for the week.
---
http://www.ctronic.ga
http://www.tsu.co/Deltro
https://www.reverbnation.com/deltro9
8 years, 32 weeks ago
Post #198096 Re: Stop npcs attacking when in hide
kodyt posted: (24th Sep 2015, 06:30 am)

o_o Wtf is hide? 


lewl
8 years, 32 weeks ago
Post #198100 Re: Stop npcs attacking when in hide
Hollows posted: (24th Sep 2015, 06:51 am)

Apperently EOSERV r487 already stops npcs from attacking you due to this piece of code:

if (character->IsHideNpc() || !character->CanInteractCombat())

        continue;


You can also stop hidden players from attacking npcs by adding this at the top of NPC::Damage:

if (from->hidden)

        return;


@Kodyt: Dude you've joined in 2009, how can you not know what $hide is.


My rev im working with and has all my code, doesn't have this. Do you have a copy of the entire code i could maybe add into mine?
8 years, 32 weeks ago
Post #198106 Re: Stop npcs attacking when in hide
disaster posted: (26th Sep 2015, 01:36 am)

Hollows posted: (24th Sep 2015, 06:51 am)

Apperently EOSERV r487 already stops npcs from attacking you due to this piece of code:

if (character->IsHideNpc() || !character->CanInteractCombat())

        continue;


You can also stop hidden players from attacking npcs by adding this at the top of NPC::Damage:

if (from->hidden)

        return;


@Kodyt: Dude you've joined in 2009, how can you not know what $hide is.


My rev im working with and has all my code, doesn't have this. Do you have a copy of the entire code i could maybe add into mine?

If you click the number up the top right where it says top rev it shows all the recent updates from Rev to rev. You can click on them and see the code added as well, so all you'd have to do is go back to your Rev and work your way up to date
8 years, 32 weeks ago
Page: << 1 >>

EOSERV Forum > EOSERV > Stop npcs attacking when in hide