Thread: Magic Problem

Results 1 to 2 of 2
  1. #1 Magic Problem 
    Registered Member
    Join Date
    Dec 2008
    Posts
    84
    Thanks given
    3
    Thanks received
    1
    Rep Power
    1
    I am having trouble wth magic on NPC. Whenever you attack a npc with mage, they don't fight back. It works fine with melee and range though. Any help?

    Base is devo 7
    Reply With Quote  
     

  2. #2  
    Icy Realm Owner
    Icy Whip's Avatar
    Join Date
    May 2007
    Posts
    1,419
    Thanks given
    30
    Thanks received
    35
    Rep Power
    213
    Note it will not be this exact code!

    But in case 72: your npc combat case look for coding similar to this, that declares the npc is going to follow you and attack you pretty much.
    And implement that into your case 131: Magic on npc case

    Should look somewhat similar to this. BUT NOT EXACT SO DONT COPY AND PASTE
    Code:
    			server.npcHandler.npcs[npcIndex].StartKilling = playerId;
    			server.npcHandler.npcs[npcIndex].RandomWalk = false;
    			server.npcHandler.npcs[npcIndex].followingPlayer = true;
    			server.npcHandler.npcs[npcIndex].followPlayer = playerId;
    			server.npcHandler.npcs[npcIndex].IsUnderAttack = true;


    Signature made by Mr. Ervis

    Any questions, MSN me; [email protected]
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •