Zzbrandon Posted November 22, 2012 Author Share Posted November 22, 2012 Solved thank you Greendude Link to comment Share on other sites More sharing options...
Greendude120 Posted November 22, 2012 Share Posted November 22, 2012 attacker and victim is usually used in pvp.in CanNpcAttackPlayer, there is only the player (index) and the npc.try replacing 'attacker' with 'index' everywhere in that code. (i see it atleast twice) Link to comment Share on other sites More sharing options...
Ertzel Posted November 22, 2012 Share Posted November 22, 2012 I'm very confused by this. You say its from a tutorial, can you link us to that tutorial so we have something to look at?Also, your looking in the sub for if a NPC can attack a player but hen your checking if the NPC has the same weapon as the player?Then, why would you send a message to the Player saying they don't have the proper equipment when it's the NPC engaging them (CanNPCAttackPlayer) not the player engaging the NPC (CanPlayerAttackNPC)Although I don't have vb6 open to check, in CanNPCAttackPlayer the player variable should be index, not attacker as they are the one being targeted by the NPC. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now