um.. still need.
|
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?
um.. still need.
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.
Server.itemHandler.createGroundItem(c, ITEMIDHERE, npcs[i].absX, npcs[i].absY, 1, c.playerId);
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 . . .
Edit: Fixed problem! Plz close, tyvm
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |