Jump to content
  • 0
Sign in to follow this  
markblank05

how to tell if equipped weapon is two handed?

Question

hi, i'm trying to make my custom enchanter and come across a bug, the problem is my script same menu for shield when equipping two handed weapon, how to get if equip item is two handed or one handed. thanks

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

hi, i'm trying to make my custom enchanter and come across a bug, the problem is my script same menu for shield when equipping two handed weapon, how to get if equip item is two handed or one handed. thanks

if(getiteminfo(getequipid(EQI_HAND_R),11)==2 || getiteminfo(getequipid(EQI_HAND_R),11)==3) { put your script here }

 

test it

Share this post


Link to post
Share on other sites
  • 0

 

hi, i'm trying to make my custom enchanter and come across a bug, the problem is my script same menu for shield when equipping two handed weapon, how to get if equip item is two handed or one handed. thanks

if(getiteminfo(getequipid(EQI_HAND_R),11)==2 || getiteminfo(getequipid(EQI_HAND_R),11)==3) { put your script here }

 

test it

 

can you explain what is 11, 2 and 3? or give me the link. thanks

Share this post


Link to post
Share on other sites
  • 0

 

 

hi, i'm trying to make my custom enchanter and come across a bug, the problem is my script same menu for shield when equipping two handed weapon, how to get if equip item is two handed or one handed. thanks

if(getiteminfo(getequipid(EQI_HAND_R),11)==2 || getiteminfo(getequipid(EQI_HAND_R),11)==3) { put your script here }

 

test it

 

can you explain what is 11, 2 and 3? or give me the link. thanks

 

i get the idea in Sword Guardian Card

 

{
Id: 4427
AegisName: "Sword_Guardian_Card"
Name: "Sword Guardian Card"
Type: 6
Buy: 20
Weight: 10
Loc: 2
Script: <"
if(getiteminfo(getequipid(EQI_HAND_R),11)==2||getiteminfo(getequipid(EQI_HAND_R),11)==3) {
bonus bHit,5;
bonus bCritical,5;
bonus2 bSkillAtk,62,25;
}
 
">
},
 
 
Critical Rate + 5, HIT + 5

Increases Bowling Bash damage with an one hand or two handed sword by 25%.

 
just put it in your npc script

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.