EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::General Support (https://www.eqemulator.org/forums/forumdisplay.php?f=598)
-   -   target npcs (https://www.eqemulator.org/forums/showthread.php?t=26489)

spider661 10-11-2008 11:21 PM

target npcs
 
i want to make a npc so you cant target it but not with the ` or whatever your key binding is to target the nearest npc.. like pets you can target them but the don't target when you ` to target. Its for bots so im guessing there is something i can do to make this work. change something in the npctypes table or even if its something i can doe in the server code just point me to where to look to get started i should be fine from there.. i have not looked yet but i guess it would be somewhere with the summoning code unless thats handled client side?

anyways can this be done?

hayward6 10-12-2008 06:28 AM

I'm not 100% sure I know what you're looking for... You want to create an NPC that can't be targeted? Or you want it to only be targeted when you use a specific key? There should be key binding that allow you to choose the closest enemy, and a key binding to target the closest ally... do those not offer a solution for what you need?

beano311 10-12-2008 01:43 PM

What he means is... He wants to make bots for PCs to use. Because they're bots, they're seen as NPCs on the client, so if you hit ` to target the closest NPC, it might target the bot instead of the intended NPC. So he want's to know how to make the bots look like PCs instead of NPCs. The bots should still be targetable, just not with the ` key.
Hope I got that right.

spider661 10-13-2008 06:03 PM

yep thats right.. jsut like pets can still target so the npcs can hit them you can give them items and that sort but you cant hit your target nearet hotkey and get it targeted.. so when you tab (or whatever your key bind it) you dont target the bot.

Congdar 10-13-2008 10:12 PM

the opcode for targetting seems to all run through the same code. it looks like the mouse click goes through the same code as /target and also the 'nearest' target with ` key. If they were separated out, I could do an IsBot() check and eliminate the bots from the ` target.

spider661 10-13-2008 10:56 PM

there is no other way to do it? how do pets do it?


All times are GMT -4. The time now is 09:46 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.