Jump to content
  • 0

[Doubt] Countitem


Question

Posted

Hi,

 

it's possible to make a pool of item wtih countitem?.

For example,

 

Pool item list:

- Krishna 

-Chakram

-Agent Katar

- Gullitone Katar


 

If the player bring to the npc whatever of item listed above, the npc will give 1x jellopy depending the quantity of the items that the player bring. (Not necessarily the same item, can be different)

 

 

Greetings.-

4 answers to this question

Recommended Posts

  • 0
Posted

Setarray .@item[0],countitem(example),countitem(type 2),(type 3), (type 4);

Then just delete those counts and add jellopy :)

On phone but hope you understand

  • 0
Posted (edited)

Setarray .@item[0],countitem(example),countitem(type 2),(type 3), (type 4);

Then just delete those counts and add jellopy :)

On phone but hope you understand

Thank you i'll try :)

 

@edit

 

i don't know how to do the part of check and delete items >_<.

Edited by fictionx
  • 0
Posted

 

Setarray .@item[0],countitem(example),countitem(type 2),(type 3), (type 4);

Then just delete those counts and add jellopy :)

On phone but hope you understand

Thank you i'll try :)

 

@edit

 

i don't know how to do the part of check and delete items >_<.

 

 

countitem = count total amount of specific item player currently has.

delitem = delete item with specific amount from player's inventory.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...