Skip to content

Adding Delay To Return Code

Featured Replies

Hi there,

 

This code, kicking everyone to next village after killing boss no time for pick drops. i want delay for kick, how can add delay to this code please help. Thanks

 

Edit: All the items are dropping inventory directly, why this bosses dropping ground? How can i change it ? ( done )

 zone = GrandBossManager.getInstance().getZone(27244,-7026,-1974)
     zone.oustAllPlayers()
   return

Edited by delamis

  • Author

There is a cinfug AutoLootRaid

Okay i find that, it's done. Just delay question is left. 

 

Thanks

The question is, why this auto kick is there. Should not. Anyway, you can use threadpool to delay it.

  • Author

Because when ppls done with area, bosses there is nothing for them. So its sending near village, thats bad ? What you mean with threadpool excuse me, didnt understand

Yes, it's bad. Normally there should be spawned a cube npc, which teleport you out or simply use soe.. Search for ThreadPool usage.

  • Author

i cant make a npc like u say, i will check the guides for threadpool thanks.

  • Author

im not a programmer like you or others. im doin this as hobby. So maybe it's easy for you but believe me really hard for me. Whatever, thanks again.

  • Author

Seek for ThreadPool, or ThreadPoolManager. There are a lot of examples.

 

Okay, thanks

Create an account or sign in to comment

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.