I'm working on my custom event & I need to be able to check if players have any weapons or shields in their inventory. So something kind of like countitem but instead of just checking for one item, checking for a whole item type (weapons & shields). Here's a snippet of what I have going on.
else { if(getequipweaponlv(4)==0 && getequipweaponlv(3)==0) { next; mes @npc$; mes " "; mes "When you enter the event, don't forget to read the rules and requirements from the ^008000Ceres Event Staff^000000 NPC inside."; close2; warp "turbo_n_1.gat",383,163; npctalk "The player "+ strcharinfo(0) +" has joined the Ceres Track Event!"; end; } else { if(____________________) { next; mes @npc$; mes " "; mes "^CC0000Sorry, You can't have any weapons or shields when entering this event."; mes " "; mes "Go store your weapons and shields and try again.^000000"; close; } } }
I couldn't find what I needed for the life of me... anyone care to help me out?
Question
Succubusty
I'm working on my custom event & I need to be able to check if players have any weapons or shields in their inventory. So something kind of like countitem but instead of just checking for one item, checking for a whole item type (weapons & shields). Here's a snippet of what I have going on.
I couldn't find what I needed for the life of me... anyone care to help me out?
Edited by SuccubustyLink to comment
Share on other sites
3 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.