Jump to content
  • 0

How to make npc check your inv


Question

3 answers to this question

Recommended Posts

  • 0
Posted

myself->OwnItemCount(CSharedCreatureData*, int itemid)

 

returns Int with ammount in player inventory.

 

Dynamic html is generated with AI by fhtml- but is limited to AI.obj variables obviously.

Requires a handler with a FHTML0 object - like menu_selected

 

Declare a variable like this where you want the dynamic text\number.

 

Death Lord Hallate                      (<?var?>/1)

 

 

myself->FHTML_SetFileName(fhtml0,"test_html.htm");

myself->FHTML_SetInt(fhtml0,"var",5);

myself->ShowFHTML(talker,fhtml0);

 

 

Would change <?var?> to 5 as per FHTML_SetInt

  • 0
Posted

String s = activeChar.getInventory().getItemByItemId(itemId) == null ? "0/1" : "1/1";

 

this is the boolean version of ur request

  • 0
Posted

String s = activeChar.getInventory().getItemByItemId(itemId) == null ? "0/1" : "1/1";

 

this is the boolean version of ur request

Maybe in l2j but this is l2off section buddy.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock