Thread: Npc Multi Attacks

Results 1 to 3 of 3
  1. #1 Npc Multi Attacks 
    Registered Member
    Join Date
    Aug 2008
    Posts
    492
    Thanks given
    1
    Thanks received
    8
    Rep Power
    10
    I'm trying to add fight caves onto my server and I started by trying to make Jad I'm using NPCemotes.cfg so how would I go about adding jad does different attacks.

    Devolution based.
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Aug 2008
    Posts
    492
    Thanks given
    1
    Thanks received
    8
    Rep Power
    10
    no one knows? is it possible
    Reply With Quote  
     

  3. #3  
    Registered Member
    ViperSniper's Avatar
    Join Date
    Apr 2007
    Age
    30
    Posts
    2,417
    Thanks given
    367
    Thanks received
    82
    Rep Power
    976
    use misc.random.
    like..
    if(blablaba == npcid){
    int jadStyle = misc.random(4);
    if(jadStyle == 0){
    blabla
    } else if(jadStyle == 1){//Magic
    blabla
    } else {//Range
    blabla
    }
    }
    Range is more common, which is why i did misc.random(4), and not misc.random(3)
    you might even want to make it misc.random(5)
    :indeed:
    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
  •