Thread: quick question npc drops

Results 1 to 6 of 6
  1. #1 quick question npc drops 
    Registered Member risgaard's Avatar
    Join Date
    Jul 2013
    Posts
    648
    Thanks given
    12
    Thanks received
    16
    Rep Power
    13
    how will i make it a misc random drop like i want 1 of my npc to drop a item with amount between 1-80
    my grammar. aint pefect. but atleast you understand me

    did i help you ?
    i am not asking for rep but you can atleast say thanks
    Reply With Quote  
     

  2. #2  
    Registered Member risgaard's Avatar
    Join Date
    Jul 2013
    Posts
    648
    Thanks given
    12
    Thanks received
    16
    Rep Power
    13
    cmon someone?
    my grammar. aint pefect. but atleast you understand me

    did i help you ?
    i am not asking for rep but you can atleast say thanks
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Nov 2010
    Posts
    93
    Thanks given
    8
    Thanks received
    0
    Rep Power
    6
    what base server are you using? different ones have different drop systems.
    Reply With Quote  
     

  4. #4  
    Registered Member risgaard's Avatar
    Join Date
    Jul 2013
    Posts
    648
    Thanks given
    12
    Thanks received
    16
    Rep Power
    13
    pi...
    my grammar. aint pefect. but atleast you understand me

    did i help you ?
    i am not asking for rep but you can atleast say thanks
    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    Dec 2011
    Posts
    967
    Thanks given
    234
    Thanks received
    208
    Rep Power
    0
    In NPCHandler, dropItems method

    Just add something like

    Code:
    if (npcs[i].npcType == NPCID) {
    if (Misc.random(80) == 1)
    Server.itemHandler.createGroundItem(c, all the arguments, you can find em in another place where they use this method);
    }
    It's not good if your trying to add a whole drop system, but if you just one monster to drop one thing for 1/80 chance, then that's a simple way.
    Reply With Quote  
     

  6. #6  
    Registered Member risgaard's Avatar
    Join Date
    Jul 2013
    Posts
    648
    Thanks given
    12
    Thanks received
    16
    Rep Power
    13
    Quote Originally Posted by Icandoit View Post
    In NPCHandler, dropItems method

    Just add something like

    Code:
    if (npcs[i].npcType == NPCID) {
    if (Misc.random(80) == 1)
    Server.itemHandler.createGroundItem(c, all the arguments, you can find em in another place where they use this method);
    }
    It's not good if your trying to add a whole drop system, but if you just one monster to drop one thing for 1/80 chance, then that's a simple way.
    bad way to handle it... first of all i will still get my normal drop lile always, and if i use a return for stop my normal drop i will maybe return the rare drop i was supposted to get after like 10 kills because misc random activate aswell, means i will lose the rare drop and maybe end up make it double as rare get rares and i cannot just half the rares drop rate because if i not get the misc it will be to easy to get it and over all it will mess up my system
    my grammar. aint pefect. but atleast you understand me

    did i help you ?
    i am not asking for rep but you can atleast say thanks
    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

Similar Threads

  1. Replies: 3
    Last Post: 09-22-2011, 02:35 AM
  2. quick question about npc walking
    By Lord Stark in forum Help
    Replies: 0
    Last Post: 01-22-2011, 12:11 AM
  3. quick question here about npcs..
    By Lord Stark in forum Help
    Replies: 0
    Last Post: 01-18-2011, 01:38 AM
  4. Quick question about NPC's
    By Smakt in forum Help
    Replies: 0
    Last Post: 11-06-2009, 10:22 PM
  5. Delta NPC Drop question
    By 360236 in forum Help
    Replies: 6
    Last Post: 03-15-2009, 07:02 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •