Thread: How can i get a boss to drop whats in the json?

Results 1 to 6 of 6
  1. #1 How can i get a boss to drop whats in the json? 
    Registered Member BakonBitz's Avatar
    Join Date
    Dec 2015
    Posts
    122
    Thanks given
    21
    Thanks received
    7
    Rep Power
    16
    Hey guys, i found out that my Zulrah is not droping item(s) that are in the Zulrah.json....
    i get this error when ever killed:
    Code:
    Feb 09, 2016 10:34:19 AM server.core.World handleError
    SEVERE: An error occurred in an executor service! The server will be halted immediately.
    java.lang.NullPointerException
    	at server.model.npcs.Zulrah.cleanUp(Zulrah.java:404)
    	at server.model.npcs.Zulrah.handleDrops(Zulrah.java:400)
    	at server.model.npcs.NPCHandler.dropItems(NPCHandler.java:1462)
    	at server.model.npcs.NPCHandler.process(NPCHandler.java:1204)
    	at server.Server$1.execute(Server.java:158)
    	at server.core.GameEngine$1.run(GameEngine.java:47)
    	at server.core.GameEngine$5.run(GameEngine.java:112)
    	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    	at java.util.concurrent.FutureTask.run(Unknown Source)
    	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source)
    	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    	at java.lang.Thread.run(Unknown Source)
    This is in my Zulrah.java that handels drops,
    Code:
    public static void handleDrops(Client player) {
    			Random r = new Random();
    			int teleportAmt = r.nextInt(5);		
    			int uniqueList[] = {12922, 12932, 12927, 6571};
    			int unique = Misc.random(328);
    			int unique2 = Misc.random(328);
    			if (unique == 1)
    				Server.itemHandler.createGroundItem(player, uniqueList[Misc.random(uniqueList.length) + 1], player.absX, player.absY, 1, player.getId());
    			if (unique2 == 1)
    				Server.itemHandler.createGroundItem(player, uniqueList[Misc.random(uniqueList.length) + 1], player.absX, player.absY, 1, player.getId());
    			Server.itemHandler.createGroundItem(player, 12934, player.absX, player.absY, Misc.random(200) + 100, player.getId());
    			Server.itemHandler.createGroundItem(player, 12938, player.absX, player.absY, teleportAmt, player.getId());
    			cleanUp(player);
    			handlePetChance(player);
    		}
    		private static void cleanUp(Client player) {
    			player.zulrah.absX = 0;
    			player.zulrah.absY = 0;
    			player.zulrah.respawns = false;
    			player.zulrah.isDead = true;
    			player.zulrah.updateRequired = true;
    			destructClouds(player);
    			destructMinions(player);
    			System.out.println("Zulrah clean-up complete.");
    		}
    This is in NPCHandler
    Code:
    				}
    				if (npcs[i].npcId == 2042 || npcs[i].npcId == 2043 || npcs[i].npcId == 2044) {
    
    						Zulrah.handleDrops(c);
    				} else {
    					Server.itemHandler.createGroundItem(c, loot.getItemID(), npcs[i].absX, npcs[i].absY,
    							Misc.random(loot.getMinAmount(), loot.getMaxAmount()), c.playerId);
    				}
    
    			}
    		}
    If anyone can guide/helpme to make it point to Zulrah.json i would greatly appreactacte it..... Skype: BakonBitz502 for a small reward to
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Dec 2015
    Posts
    240
    Thanks given
    66
    Thanks received
    42
    Rep Power
    0
    drops are handled in npcdrops are they not? What base are you using? If anything pm me your skype and I can fix it for you
    Reply With Quote  
     

  3. #3  
    Owner of Dawntained

    Mgt Madness's Avatar
    Join Date
    Oct 2011
    Age
    28
    Posts
    3,380
    Thanks given
    1,429
    Thanks received
    958
    Rep Power
    2168
    Attached image
    Reply With Quote  
     

  4. #4  
    The One And Only

    01053's Avatar
    Join Date
    Apr 2011
    Age
    28
    Posts
    2,887
    Thanks given
    417
    Thanks received
    885
    Rep Power
    856
    Try
    Code:
    player.zulrah.absX = -1;
    			player.zulrah.absY = -1;
    Instead of:

    Code:
    player.zulrah.absX = 0;
    			player.zulrah.absY = 0;


    Reply With Quote  
     

  5. #5  
    Registered Member BakonBitz's Avatar
    Join Date
    Dec 2015
    Posts
    122
    Thanks given
    21
    Thanks received
    7
    Rep Power
    16
    Quote Originally Posted by Deadman Rsps View Post
    drops are handled in npcdrops are they not? What base are you using? If anything pm me your skype and I can fix it for you

    Pm'd you

    Quote Originally Posted by 01053 View Post
    Try
    Code:
    player.zulrah.absX = -1;
    			player.zulrah.absY = -1;
    Instead of:

    Code:
    player.zulrah.absX = 0;
    			player.zulrah.absY = 0;
    Still same thing :/
    Reply With Quote  
     

  6. #6  
    Registered Member BakonBitz's Avatar
    Join Date
    Dec 2015
    Posts
    122
    Thanks given
    21
    Thanks received
    7
    Rep Power
    16
    Bump
    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. how can i get this specific xp drop?
    By Guru. in forum Help
    Replies: 2
    Last Post: 11-10-2015, 10:09 PM
  2. Replies: 12
    Last Post: 10-04-2010, 02:53 AM
  3. how can i get z554 client to load ?
    By josem73111 in forum Help
    Replies: 3
    Last Post: 07-30-2010, 07:16 PM
  4. How Can I get my NPC to farcast? REPPP
    By arr0wtohell in forum Help
    Replies: 4
    Last Post: 03-17-2010, 04:20 AM
  5. How Can I get my NPC to farcast? REPPP
    By arr0wtohell in forum Help
    Replies: 0
    Last Post: 03-17-2010, 01:44 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
  •