Jump to content
  • 0

[Doubt] Countitem


fictionx

Question


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  122
  • Reputation:   17
  • Joined:  12/10/12
  • Last Seen:  

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.-

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  122
  • Reputation:   17
  • Joined:  12/10/12
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  122
  • Reputation:   17
  • Joined:  12/10/12
  • Last Seen:  

up

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

 

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.

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.

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...