Skip to content

Instance class...

Featured Replies

Someone can tell me what's wrong in this class? 
https://pastebin.com/5MF94GSg

  • Author

The problem it's: I have npc which player should speak with it to leave instance. When player speak with npc ( ENDING_NPC) he get reward and penalty item. But when i hit button from npc, i get this error.https://prnt.sc/mKN0gktugJcO

55 minutes ago, 0flee said:

The problem it's: I have npc which player should speak with it to leave instance. When player speak with npc ( ENDING_NPC) he get reward and penalty item. But when i hit button from npc, i get this error.https://prnt.sc/mKN0gktugJcO

Line 363 is empty in your paste above 😂

Anyway most likely npe comes from

  InstanceWorld world = InstanceManager.getInstance().getPlayerWorld(player)

You will have to debug why it's null

  • Author

i don't know what i can do now, how i can fix that. I don't know how to debug it.

Fixed. Thank's to @An4rchy

Edited by 0flee

  • Zake locked this topic
10 hours ago, 0flee said:

i don't know what i can do now, how i can fix that. I don't know how to debug it.

Fixed. Thank's to @An4rchy

ok, locked.

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.