I created a voiced command doing something,and I want to allow it work when the player has in his inv just 1 weapon... I tried this but * , it can't work.. May getCount() works only for etcitem and not for armors - weapons
Here...*
if(activeChar.getInventory().getItemByItemId(Weapon_ID).getCount() > 1)
{
activeChar.sendMessage("works only with 1 weapon");
return false;
}
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
DISCORD :
https://discord.com/users/325653525793210378
utchiha_market
telegram :
https://t.me/utchiha_market
SELLIX STORE :
https://utchihamkt.mysellix.io/
Join our server for more products :
https://discord.gg/uthciha-services
https://campsite.bio/utchihaamkt
Question
Spidey*
Hello everyone..
I created a voiced command doing something,and I want to allow it work when the player has in his inv just 1 weapon... I tried this but * , it can't work.. May getCount() works only for etcitem and not for armors - weapons
Here...*
Anybody could help?, thank you in 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.
Note: Your post will require moderator approval before it will be visible.