Jump to content
  • 0

How to check item count.


MarkSuck

Question


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.01
  • Content Count:  24
  • Reputation:   3
  • Joined:  06/28/21
  • Last Seen:  

How to check item count by Script

Thank you advance.

Screenshot_1.png

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

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

On 8/27/2021 at 3:30 PM, MarkSuck said:

How to check item count by Script

1. if you are checking for total of item count in current inventory

getinventorylist;
dispbottom "Your inventory has "+ @inventorylist_count +" items";

2. if you are checking whether the player can hold the upcoming rewards

if (checkweight(512, 100)) {
    getitem 512, 100; 
}
else {
	dispbottom "You cant hold 100x Apple.";
}

 

  • Love 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  176
  • Topics Per Day:  0.15
  • Content Count:  666
  • Reputation:   9
  • Joined:  12/04/20
  • Last Seen:  

Just now, MarkSuck said:

How to check item count by Script

Thank you advance.

Screenshot_1.png

Utility: @AnalyzeItem count item in your server - Utility Script Releases - rAthena

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.01
  • Content Count:  24
  • Reputation:   3
  • Joined:  06/28/21
  • Last Seen:  

14 minutes ago, chadness said:

Thank you.

I mean when npc or open item reward  item store is full it's can't not keep item from them.

how to check by script before open it.

exmple'

 if (90 <= .@weight) {
    mes "----------- [xxxxxx] -----------";
        close;
    }

It's works fine for check weight.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  176
  • Topics Per Day:  0.15
  • Content Count:  666
  • Reputation:   9
  • Joined:  12/04/20
  • Last Seen:  

On 8/27/2021 at 4:00 PM, MarkSuck said:

Thank you.

I mean when npc or open item reward  item store is full it's can't not keep item from them.

how to check by script before open it.

exmple'

 if (90 <= .@weight) {
    mes "----------- [xxxxxx] -----------";
        close;
    }

It's works fine for check weight.

i think you dont need to check for item count because you already have the script for weight check so if ithe item counts will exceed in weight it will already detect it

 

22 hours ago, MarkSuck said:

It's deferent if item count is full 100/100 you can't keep item from any reward.

ow i see got interested to this topic hope someone help you

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.01
  • Content Count:  24
  • Reputation:   3
  • Joined:  06/28/21
  • Last Seen:  

22 hours ago, chadness said:

i think you dont need to check for item count because you already have the script for weight check so if ithe item counts will exceed in weight it will already detect it

It's deferent if item count is full 100/100 you can't keep item from any reward.

 

21 hours ago, chadness said:

ow i see got interested to this topic hope someone help you

Hahahaha i hope so..

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.01
  • Content Count:  24
  • Reputation:   3
  • Joined:  06/28/21
  • Last Seen:  

7 hours ago, Emistry said:

1. if you are checking for total of item count in current inventory

getinventorylist;
dispbottom "Your inventory has "+ @inventorylist_count +" items";

2. if you are checking whether the player can hold the upcoming rewards

if (checkweight(512, 100)) {
    getitem 512, 100; 
}
else {
	dispbottom "You cant hold 100x Apple.";
}

 

Thank you sir.

I try it's not check item count over 100

exmple. if item count > 80 goto .....

is it possible.

Screenshot_1.png

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