Thread: Npc Questions.

Results 1 to 5 of 5
  1. #1 Npc Questions. 
    Fuck yeah!
    Mergim's Avatar
    Join Date
    May 2009
    Age
    31
    Posts
    2,309
    Thanks given
    218
    Thanks received
    187
    Rep Power
    1619
    How do i Edit a npc attack, defend and death emote?

    How do i make it so wizard's can cast magic?
    Well, i got the Cast magic working, but when it's about gfx, it's not casting it ;S..
    I'll make a video of it if noone understand what i'm saying

    Example; this is how PlayerCastOnNpc works


    I wan't to fix that for npc 2.. So Dark wizard's throws magic at me;P
    Code:
    						} else if (npcs[NPCID].npcType == 172 && plr.ProtMage == true) { //Dark wizard
                                                   npcs[NPCID].animNumber = 711; // mage attack
                                                   plr.specGFX(85);
    hitDiff = 0;
    Npc Spawning.
    How do i make it so a npc spawns after i killed one. Example;
    Let's say i killed a man, i want a goblin to spawn after i kill a man.

    Like mage arena on RS.

    Night;D
    Reply With Quote  
     

  2. #2  
    Seecon
    Guest
    Somewhere in a method or process where the NPC is attacking you just make a statement like if(npcid == darkwizard) startAnimation(cast); startGFX(), etc. You have to personally add it in because it's not there already most likely.
    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    May 2008
    Posts
    2,327
    Thanks given
    55
    Thanks received
    67
    Rep Power
    0
    Npc Spawning.
    How do i make it so a npc spawns after i killed one. Example;
    Let's say i killed a man, i want a goblin to spawn after i kill a man.

    Like mage arena on RS.
    well, in the death method of the npc u kill first

    if(npcid = man) {
    newNPC(goblin);
    }
    Reply With Quote  
     

  4. #4  
    Fuck yeah!
    Mergim's Avatar
    Join Date
    May 2009
    Age
    31
    Posts
    2,309
    Thanks given
    218
    Thanks received
    187
    Rep Power
    1619
    And where's the death method for NPC?
    Reply With Quote  
     

  5. #5  
    Fuck yeah!
    Mergim's Avatar
    Join Date
    May 2009
    Age
    31
    Posts
    2,309
    Thanks given
    218
    Thanks received
    187
    Rep Power
    1619
    Bump.. I still need help =/
    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
  •