![]() |
Targeted NPC Dies, set everyone on the maps target to 0 - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17) +---- Thread: Targeted NPC Dies, set everyone on the maps target to 0 (/showthread.php?tid=1589) |
Targeted NPC Dies, set everyone on the maps target to 0 - Coke - 01-03-2008 This is either a huge job or a little one, I've played around with packets and things for a couple of hours and no luck >_> Any of you guys? Re: Targeted NPC Dies, set everyone on the maps target to 0 - Ramsey - 01-03-2008 Well this is the code the resets the target after killing an NPC: Code: ' Check if target is npc that died and if so set target to 0 Maybe you forgot to add this since you did modify it: Code: If Player(Attacker).Target = MapNpcNum Then Just a thought though. Re: Targeted NPC Dies, set everyone on the maps target to 0 - Coke - 01-03-2008 Ramsey Wrote:Well this is the code the resets the target after killing an NPC: This is all server side, the client knows nothing while this is happening. Underneath Player(Attacker).TargetType = 0 a packet is called that tells the attacker his Target is 0 and his TargetType = 0, this allows the client to know when it has something targeted, so it knows when to blt a target onto it. The issue is, this is only sent to the attacker, so if someone else has that npc targeted their client goes skitz. Funny how it only happens outside of the IDE though >.> Re: Targeted NPC Dies, set everyone on the maps target to 0 - Coke - 02-03-2008 Sorted, thanks Dugor! Re: Targeted NPC Dies, set everyone on the maps target to 0 - Jacob - 02-03-2008 Glad I could help out. |