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
|
kodyt
Joined: 6th Apr 2009
Posts: 2271
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
|
Hollow
Joined: 30th Sep 2010
Posts: 3451
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
|
Flazex
Joined: 10th Mar 2011
Posts: 1336
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
|
kodyt
Joined: 6th Apr 2009
Posts: 2271
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
|
Fuzzy
Joined: 27th Aug 2015
Posts: 15
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
|
kodyt
Joined: 6th Apr 2009
Posts: 2271
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
|
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
|
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
|
Callum
Joined: 16th Oct 2011
Posts: 609
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
| | | | | | | | | | |