MarkSuck Posted August 27, 2021 Posted August 27, 2021 How to check item count by Script Thank you advance. Quote
0 Emistry Posted August 28, 2021 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
0 Sallycantdance Posted August 27, 2021 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
0 MarkSuck Posted August 27, 2021 Author 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
0 Sallycantdance Posted August 27, 2021 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
0 MarkSuck Posted August 27, 2021 Author 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
0 MarkSuck Posted August 28, 2021 Author 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
Question
MarkSuck
How to check item count by Script
Thank you advance.
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.