Jump to content
  • 0

How to make npc check your inv


AkaDumanisT

Question

3 answers to this question

Recommended Posts

  • 0

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

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...