Jump to content
  • 0

About Item scrip with Class/Job Restriction


Question

Posted (edited)

This is getting me nuts. Please help me. This is my item

 

image.png.c4b257b3f9d310e415b5544846961a07.png

 

This is my original script for it
 

33012,Upgraded_Kakashi_Head_Protector,Upgraded Kakashi Head Protector,4,100000,,1000,,5,,1,0xFFFFFFFE,7,2,256,,0,1,2513,{ bonus bDex,10; bonus bAgi,5; bonus3 bAutoSpell,"AC_DOUBLE",1,30; bonus2 bSubRace,RC_DemiHuman,5; bonus2 bSubRace,RC_Player,5; if(isequipped(37003)) bonus bLongAtkRate,50; },{},{}


Made it to this

33012,Upgraded_Kakashi_Head_Protector,Upgraded Kakashi Head Protector,4,100000,,1000,,5,,1,0xFFFFFFFE,7,2,256,,0,1,2513,{ bonus bDex,10; bonus bAgi,5; bonus3 bAutoSpell,"AC_DOUBLE",1,30; bonus2 bSubRace,RC_DemiHuman,5; bonus2 bSubRace,RC_Player,5; if(BaseClass == Job_Archer && BaseClass == Job_Thief && isequipped(37003)) bonus bLongAktRate,50; },{},{}

But it doesnt work

By the way 37003 is  Gargoyle Wing

Basically what i want is to restrict this item to classes/jobs who uses Bows. As im implying to have additional bow damage to +50%. So it should work only to the whole archer class and to roque, stalker and schadow chaser. Also to minstrel class if they decided to use bows perhaps?

Thanks!

Edited by gidzdlcrz

2 answers to this question

Recommended Posts

  • 0
Posted (edited)

If you want to make it only work when they equip a bow, I think you can try adding getiteminfo(getequipid(EQI_HAND_R),11)==W_BOW
 

Quote

33012,Upgraded_Kakashi_Head_Protector,Upgraded Kakashi Head Protector,4,100000,,1000,,5,,1,0xFFFFFFFE,7,2,256,,0,1,2513,{ bonus bDex,10; bonus bAgi,5; bonus3 bAutoSpell,"AC_DOUBLE",1,30; bonus2 bSubRace,RC_DemiHuman,5; bonus2 bSubRace,RC_Player,5; if (isequipped(37003) && getiteminfo(getequipid(EQI_HAND_R),11)==W_BOW) { bonus bLongAtkRate,50;} },{},{}

 

Edited by Xellyehria
  • Upvote 1
  • 0
Posted
On 2/22/2020 at 4:47 PM, Xellyehria said:

If you want to make it only work when they equip a bow, I think you can try adding getiteminfo(getequipid(EQI_HAND_R),11)==W_BOW
 

 

This is what im looking for! Only to those who uses bows! ♥

can i have it on guns as well? I believe they are too many. So gunslinger can enjoy this as well.

Thanks @Xellyehria

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...