[Release]5165 code to prohibit Guard attack

02/04/2010 11:07 WHITELIONX#16
I have hit thanks because it will help others out :) It does not help me because I had fixed my problem already I just simply can not change the Guards name at all. Try to use a magic attack on WHSGuardian and you will understand what I mean lol. Any NPC with the name Guard is protected >.<

But the normal NPCs you can still use magic attack on lol. I have tried before with the mesh thing but I like to experiment with changing the meshes around AND the names around but for now the Guards are staying as Conquer guards hehe
02/05/2010 01:59 kamote#17
thanks for hitting the button.

I figured out your problem. In 5165 original source.. GetNPCTarget method was include, with it players may take a particular NPC as there target. So for you to resolve your problem just modify the codes under that method. or you may try this to simple fix.

1. open Skills.cs and search for this code
Quote:
GetNPCTargets(Single);
2. comment that line of code like this (intended only for noob just incase they don't know how to comment a line of code
Quote:
//GetNPCTargets(Single);
02/05/2010 05:20 -Shunsui-#18
Quote:
Originally Posted by WHITELIONX View Post
I have hit thanks because it will help others out :) It does not help me because I had fixed my problem already I just simply can not change the Guards name at all. Try to use a magic attack on WHSGuardian and you will understand what I mean lol. Any NPC with the name Guard is protected >.<

But the normal NPCs you can still use magic attack on lol. I have tried before with the mesh thing but I like to experiment with changing the meshes around AND the names around but for now the Guards are staying as Conquer guards hehe
Check the flags, thats what its mostlikely causing it, since you can attack it its mostlikeyly using the flag just how the Pilar is POLE in gw, check it out not so sure tho.
02/08/2010 02:58 kamote#19
Quote:
Originally Posted by -Shunsui- View Post
Check the flags, thats what its mostlikely causing it, since you can attack it its mostlikeyly using the flag just how the Pilar is POLE in gw, check it out not so sure tho.
what flag?
02/08/2010 12:23 .Ocularis#20
Possibly a shop flag, I thought of doing that.

Rename a shop flag and make a CTF sort of thing, when the flag gets hit it drops an item called "Flag", you return it to your base for a score.

It would be really simple, but then you have problems with the flag dropping or not.
You would have to make the flag, when picked up... lock or bind your gear then make you black name.

Then after the flag drops and is no longer in your inventory return your characters items and pk status to normal.
02/09/2010 03:09 kamote#21
Quote:
Originally Posted by Mentalis View Post
Possibly a shop flag, I thought of doing that.

Rename a shop flag and make a CTF sort of thing, when the flag gets hit it drops an item called "Flag", you return it to your base for a score.

It would be really simple, but then you have problems with the flag dropping or not.
You would have to make the flag, when picked up... lock or bind your gear then make you black name.

Then after the flag drops and is no longer in your inventory return your characters items and pk status to normal.
its sound like a quest... i think that would be out of the topic. but thanks for giving some inputs...
02/15/2010 08:29 killerbee#22
one problem i have is that i cannot hit any mobs, but i can use magic on them. anybody got that problem?
02/15/2010 12:48 kamote#23
Quote:
Originally Posted by killerbee View Post
one problem i have is that i cannot hit any mobs, but i can use magic on them. anybody got that problem?
did u add any other codes aside from my release? i think you are the first who encountered such problem.
02/15/2010 16:30 killerbee#24
Quote:
Originally Posted by kamote View Post
did u add any other codes aside from my release? i think you are the first who encountered such problem.
i dont think ive added any code from ur release. give me some links to your releases. want to check if i did or did not
02/16/2010 08:09 kamote#25
Quote:
Originally Posted by killerbee View Post
i dont think ive added any code from ur release. give me some links to your releases. want to check if i did or did not
its in the first page of this post...
02/16/2010 16:40 killerbee#26
yes, i use all the codes on the first page
02/17/2010 03:44 kamote#27
Quote:
Originally Posted by killerbee View Post
yes, i use all the codes on the first page
when did u use it... i made changes on it... check the steps again...
02/17/2010 04:12 killerbee#28
Quote:
Originally Posted by kamote View Post
when did u use it... i made changes on it... check the steps again...
when i post on post #22
02/17/2010 11:19 kamote#29
Quote:
Originally Posted by killerbee View Post
when i post on post #22
ok i got your problem... you need to add some checking on magic attack too... just like what i did in Skill.cs