Thread: Clicking on Object adds an item from an item list

Results 1 to 4 of 4
  1. #1 Clicking on Object adds an item from an item list 
    Registered Member Harambe_'s Avatar
    Join Date
    Jul 2007
    Posts
    503
    Thanks given
    15
    Thanks received
    22
    Rep Power
    13
    I am trying to add a crystal chest to my server so when you use a crystalkey on it it gives you a random item from an item list. I though of using Npc drops but changing the creategrounditem to something that will add an item to your inv. Can anyone help please



    Code:
    Engine.items.createGroundItem(NpcDrops.getChestDrop(), 1, absX, absY, heightLevel, p.username);
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  2. #2  
    Registered Member
    X Mercy X's Avatar
    Join Date
    May 2009
    Age
    28
    Posts
    1,336
    Thanks given
    3
    Thanks received
    41
    Rep Power
    301
    Engine.playerItems.addItem(p,NpcDrops.getChestDrop (),1);

    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  3. #3  
    Registered Member Harambe_'s Avatar
    Join Date
    Jul 2007
    Posts
    503
    Thanks given
    15
    Thanks received
    22
    Rep Power
    13
    didn't work where its

    Compiling net/com/codeusa/Engine.java
    .\net\com\codeusa\net\packethandler\ObjectOption2. java:83: cannot find symbol
    symbol : variable NpcDrops
    location: class net.com.codeusa.net.packethandler.ObjectOption2
    Engine.playerItems.addItem(p,NpcDrops.getChestDrop (),1);
    ^
    Note: .\net\com\codeusa\clanchat\Room.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    1 error
    Press any key to continue . . .
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  4. #4  
    Registered Member 獻 1 H1t K0不's Avatar
    Join Date
    Nov 2008
    Posts
    408
    Thanks given
    11
    Thanks received
    6
    Rep Power
    55
    import Engine.java....

    Some like this(Needs the destination of where it is located):

    import (here).Engine;
    If you think you're good at quickscoping in Black ops, add GT: TrYxH4Rd QSer on Xbox360.
    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
  •