PDA

View Full Version : get player faction


spider661
06-29-2008, 03:30 AM
i want to put up a proximity around a npc and then when a player enters it check if its hostile to the player then get the faction id of itself if that faction id = 19471 (hostile) and if the player is not kos then report them for ghosting in a log and shout it to the zone. and tell the player they have been reported would me nice also.

im sure something like this could be done using quest objects but i cant for the life of me figure it out.. i figure i could put this quest on the default.pl file that way all npcs that don't have a quest are running it and then checking players near them. at lest till there is a fix in the server code to check for ghosting. i would say the proximity did not have to be to big but big enough to catch someone walking by.

trevius
06-29-2008, 04:19 AM
Having all of your NPCs set to use proximities would probably be a major resource hog on your server and would most likely cause alot of stability issues.

I have never used ghosting, but I thought it worked by the player attacking a mob but tricking the mob into thinking he/she was outside of the NPCs attack range. I had never heard that it has something to do with factions. And even if it does, once you attack an NPC, it doesn't matter what faction you have, it will hit you back.

If someone is an expert on ghosting, I wouldn't mind a better understanding on it so a solution could possibly come about.

spider661
06-29-2008, 05:06 AM
ghosting is when a player using mq2 uses the nokos command what it does is makes them not kos so they can walk though an area without getting attacked.

im not actually sure how it works but im sure you can find the uncompilable source for the crack and read the code.. i think it comes default with mq2.

anyways most players seem to use it to warp to target and not get attacked by that target then back up turn it of and attack.. or just pull without getting agro from others.. also it lets them turn on the bankatnpc crack and bank without getting attacked.

i did try it out and with no kos on and warping to a npc i could not see my player that was ghosted.. so it either changes your factions or just makes it so the npcs cant see you. like gm hide maybe..

spider661
06-29-2008, 05:18 AM
here is some code i found on the nokos plugin if it helps

click here (http://www.taultunleashed.com/phpBB2/about21366_Plugin.html)