you mean mob.cpp, and yes i had tried this also, i found several dozen ways to enable pvp, my problem is that the client seems to block attack requests from innate skills if the targets name is not a certain color. my code has proven to have issues also as every 15th of so person to zone in somehow skips the code and is not pvp enabled for whatever reason, or at random people will not see other people in the zone to have a red name and thus they are prevented from useing archery and other innate attacks.
i put my code where i did due to previous attempts of attaching to to zone change requests which yielded no results as the name change color packet or whatever is sent to the client to make it change colors was recieved during zoneing so pvp was enabled however the name change is not. im still trying to work out a better way of doing this but currently have none. but im 99% sure the client has some "IsAttackAllowed" function of its own to check the color of the targets name, so there are more options than red as we know from pvp servers on live however im still working out a way to reliably send the color change request and prevent random clients from being skipped or not seeing it, then ill work on determining the name colors which are allowed to attack for the client unless the devs maybe have a list somewhere already, or if i find it in the guildwars code.
|