Thread: How do i make a global drop for NPC?

Results 1 to 7 of 7
  1. #1 How do i make a global drop for NPC? 
    Registered Member BryceTheCoder's Avatar
    Join Date
    Aug 2008
    Posts
    740
    Thanks given
    21
    Thanks received
    24
    Rep Power
    27
    I want to make an NPC 100% of the time drop an item but still load stuff of its drop list sooooo i was wondering inside my NPChandler i do something like:


    if (npcs[i].npcType == XXXX) {
    //AddtheItemOnGroundHere
    }


    I just need to know what is the exact code for the addItemOnGround?

    Advertise your RSPS cheap on my website: www.BryceBux.com

    ^ PM me and I will give you a few dollars for FREE on my website for advertisements ^
    Reply With Quote  
     

  2. #2  
    Registered Member BryceTheCoder's Avatar
    Join Date
    Aug 2008
    Posts
    740
    Thanks given
    21
    Thanks received
    24
    Rep Power
    27
    um.. still need.

    Advertise your RSPS cheap on my website: www.BryceBux.com

    ^ PM me and I will give you a few dollars for FREE on my website for advertisements ^
    Reply With Quote  
     

  3. #3  
    Community Veteran


    Arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,950
    Thanks given
    210
    Thanks received
    349
    Rep Power
    1376
    You know that even if you make it drop something on the ground 100% it'll still load any other drop you've set it to do.


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    Reply With Quote  
     

  4. #4  
    Registered Member BryceTheCoder's Avatar
    Join Date
    Aug 2008
    Posts
    740
    Thanks given
    21
    Thanks received
    24
    Rep Power
    27
    Quote Originally Posted by arch337 View Post
    You know that even if you make it drop something on the ground 100% it'll still load any other drop you've set it to do.
    I do know this and its exactly what i need.

    Advertise your RSPS cheap on my website: www.BryceBux.com

    ^ PM me and I will give you a few dollars for FREE on my website for advertisements ^
    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    Feb 2012
    Posts
    616
    Thanks given
    300
    Thanks received
    120
    Rep Power
    0
    Server.itemHandler.createGroundItem(c, ITEMIDHERE, npcs[i].absX, npcs[i].absY, 1, c.playerId);
    Reply With Quote  
     

  6. #6  
    Registered Member BryceTheCoder's Avatar
    Join Date
    Aug 2008
    Posts
    740
    Thanks given
    21
    Thanks received
    24
    Rep Power
    27
    It is not reconizing what c is. Soooo what do u have as ur c? to fix..


    src\server\model\npcs\NPCHandler.java:1550: cannot find symbol
    symbol : variable c
    location: class server.model.npcs.NPCHandler
    Server.itemHandler.createGroundItem(c, 536, npcs[i].absX, npcs[i].absY, 1, c.pla
    yerId);
    ^
    src\server\model\npcs\NPCHandler.java:1550: cannot find symbol
    symbol : variable c
    location: class server.model.npcs.NPCHandler
    Server.itemHandler.createGroundItem(c, 536, npcs[i].absX, npcs[i].absY, 1, c.pla
    yerId);
    ^
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    2 errors
    Press any key to continue . . .

    Advertise your RSPS cheap on my website: www.BryceBux.com

    ^ PM me and I will give you a few dollars for FREE on my website for advertisements ^
    Reply With Quote  
     

  7. #7  
    Registered Member BryceTheCoder's Avatar
    Join Date
    Aug 2008
    Posts
    740
    Thanks given
    21
    Thanks received
    24
    Rep Power
    27
    Edit: Fixed problem! Plz close, tyvm

    Advertise your RSPS cheap on my website: www.BryceBux.com

    ^ PM me and I will give you a few dollars for FREE on my website for advertisements ^
    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: 15
    Last Post: 08-23-2016, 06:43 PM
  2. Replies: 9
    Last Post: 05-28-2011, 03:31 PM
  3. Global Drop Method
    By Greyfield in forum Help
    Replies: 0
    Last Post: 12-16-2009, 02:55 AM
  4. Make a npc drop 2 items...
    By Red1 in forum Tutorials
    Replies: 3
    Last Post: 05-11-2008, 12:36 AM
  5. How to make a global int?
    By Stanyer in forum RS2 Server
    Replies: 9
    Last Post: 01-10-2008, 08:29 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •