MarkSuck Posted August 27, 2021 Group: Members Topic Count: 10 Topics Per Day: 0.01 Content Count: 24 Reputation: 3 Joined: 06/28/21 Last Seen: June 8, 2023 Share Posted August 27, 2021 How to check item count by Script Thank you advance. Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted August 28, 2021 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 3 hours ago Share Posted August 28, 2021 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."; } 1 Quote Link to comment Share on other sites More sharing options...
0 Sallycantdance Posted August 27, 2021 Group: Members Topic Count: 224 Topics Per Day: 0.14 Content Count: 796 Reputation: 12 Joined: 12/04/20 Last Seen: 12 hours ago Share Posted August 27, 2021 Just now, MarkSuck said: How to check item count by Script Thank you advance. Utility: @AnalyzeItem count item in your server - Utility Script Releases - rAthena Quote Link to comment Share on other sites More sharing options...
0 MarkSuck Posted August 27, 2021 Group: Members Topic Count: 10 Topics Per Day: 0.01 Content Count: 24 Reputation: 3 Joined: 06/28/21 Last Seen: June 8, 2023 Author Share Posted August 27, 2021 14 minutes ago, chadness said: Utility: @AnalyzeItem count item in your server - Utility Script Releases - rAthena 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. Quote Link to comment Share on other sites More sharing options...
0 Sallycantdance Posted August 27, 2021 Group: Members Topic Count: 224 Topics Per Day: 0.14 Content Count: 796 Reputation: 12 Joined: 12/04/20 Last Seen: 12 hours ago Share Posted August 27, 2021 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 Quote Link to comment Share on other sites More sharing options...
0 MarkSuck Posted August 27, 2021 Group: Members Topic Count: 10 Topics Per Day: 0.01 Content Count: 24 Reputation: 3 Joined: 06/28/21 Last Seen: June 8, 2023 Author Share Posted August 27, 2021 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.. Quote Link to comment Share on other sites More sharing options...
0 MarkSuck Posted August 28, 2021 Group: Members Topic Count: 10 Topics Per Day: 0.01 Content Count: 24 Reputation: 3 Joined: 06/28/21 Last Seen: June 8, 2023 Author Share Posted August 28, 2021 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. Quote Link to comment Share on other sites More sharing options...
Question
MarkSuck
How to check item count by Script
Thank you advance.
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.