Jump to content
  • 0

Item checking for weapons and shields


kalabasa

Question


  • Group:  Members
  • Topic Count:  123
  • Topics Per Day:  0.05
  • Content Count:  478
  • Reputation:   14
  • Joined:  11/30/17
  • Last Seen:  

I would love to know how could i seperate a weapon and a shield

 I wanted to create a menu that can only Read Shields and Weapons + Both hands on another one

			setarray .@indices[1], EQI_HEAD_TOP, EQI_ARMOR, EQI_HAND_R, EQI_HAND_L,EQI_GARMENT,EQI_SHOES,EQI_ACC_L,EQI_ACC_R;
			for(.@i = 1; .@i<getarraysize(.@indices); ++.@i) {
				if( getequipisequiped( .@indices[.@i] ) ) {
					.@menu$ +=   F_getpositionname(.@indices[.@i]) + "-[" + getequipname(.@indices[.@i]) + "]^000000";
					.@equipped = 1;
				}
				.@menu$ += ":";
			}
			if(!.@equipped){
				
				end;
			}

i want to put this but idk how this is for Shield Only.

getiteminfo( getequipid( EQI_HAND_L ),2 ) != 4 )

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  896
  • Reputation:   117
  • Joined:  05/23/12
  • Last Seen:  

(getiteminfo(getequipid(EQI_HAND_L),ITEMINFO_TYPE) if it returns "armor" it is a shield.

 

Rynbef~

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...