Engine.playerItems.addItem(p,NpcDrops.getChestDrop (),1);
|
|
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);
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 . . .
import Engine.java....
Some like this(Needs the destination of where it is located):
import (here).Engine;
| « Skills Level But stay at 16/99 | [562] Item Equipping » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |