L2JMobius

Helios Last question

patrykkiel · 3 · 1441

Offline patrykkiel

  • Vassal
  • *
    • Posts: 8
Hi, my last question.

I search code line "activechar.sendpackets" in EnterWorld witch reload all inventory items.

I need it to my scripts.

Example:

Scripts change some value in DB , now scripts need loading / reload all items and changes from db.

Thanks for help.


Online Mobius

  • Distinguished King
  • *****
    • Posts: 16261
There is no system working like that, InventoryUpdate does not load items from database.
You have to make a script checking some database table every X minutes and send item when added, or make sure player is offline.

You can also use telnet to send items, see scripts/handlers/telnethandlers/player/SendMail.java

As far as InventoryUpdate works.
final InventoryUpdate iu = new InventoryUpdate();
iu.addItems(L2ItemInstance list);
player.sendInventoryUpdate(iu);


Offline patrykkiel

  • Vassal
  • *
    • Posts: 8
Oh i understand. Again thank you very much Mobius.