MarkSuck Posted August 27, 2021 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 GM Winter Posted August 27, 2021 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 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 <= [email protected]) { mes "----------- [xxxxxx] -----------"; close; } It's works fine for check weight. Quote Link to comment Share on other sites More sharing options...
0 GM Winter Posted August 27, 2021 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 <= [email protected]) { 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 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 Emistry Posted August 28, 2021 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 MarkSuck Posted August 28, 2021 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...
How to check item count by Script
Thank you advance.
Link to comment
Share on other sites