Jump to content
  • 0

some eqps cant wear with particular eqp


JassMax

Question


  • Group:  Members
  • Topic Count:  65
  • Topics Per Day:  0.02
  • Content Count:  235
  • Reputation:   0
  • Joined:  05/03/13
  • Last Seen:  

hi i need item script 

i made 2 kind of set holy and shadow... example holy set has armor, shuz, garment...but u cant wear it if u already equipped shadow shield.
so want to make if shadow shield get wear, all holy eqs will get remove from equipment if they already were equipped.

i wanna add item code in item_db with shadow set and holy set.. they cant wear holy and shadow item at same time..

Thanks in Advance 

 

Holy eqs codes = 30501,30502,30503,30504

 

shadow eqs codes = 30505,30506,30507,30508

its armor, garment, shuz, and sheild

Edited by JassMax
Link to comment
Share on other sites

16 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

Holy eqs codes = 30501,30502,30503,30504

shadow eqs codes = 30505,30506,30507,30508

its armor, garment, shuz, and sheild

30501,Holy_Armor, .....,{ bonus ... },{ if ( getequipid(EQI_GARMENT) == 30506 ) unequip EQI_GARMENT; if ( getequipid(EQI_SHOES) == 30507 ) unequip EQI_SHOES; if ( getequipid(EQI_HAND_L) == 30508 ) unequip EQI_HAND_L; },{}
30502,Holy_Garment, ...,{ bonus ... },{ if ( getequipid(EQI_ARMOR) == 30505 ) unequip EQI_ARMOR; if ( getequipid(EQI_SHOES) == 30507 ) unequip EQI_SHOES; if ( getequipid(EQI_HAND_L) == 30508 ) unequip EQI_HAND_L; },{}
30503,Holy_Shoes, .....,{ bonus ... },{ if ( getequipid(EQI_ARMOR) == 30505 ) unequip EQI_ARMOR; if ( getequipid(EQI_GARMENT) == 30506 ) unequip EQI_GARMENT; if ( getequipid(EQI_HAND_L) == 30508 ) unequip EQI_HAND_L; },{}
30504,Holy_Shield, ....,{ bonus ... },{ if ( getequipid(EQI_ARMOR) == 30505 ) unequip EQI_ARMOR; if ( getequipid(EQI_GARMENT) == 30506 ) unequip EQI_GARMENT; if ( getequipid(EQI_SHOES) == 30507 ) unequip EQI_SHOES; },{}

30505,Shadow_Armor, ...,{ bonus ... },{ if ( getequipid(EQI_GARMENT) == 30502 ) unequip EQI_GARMENT; if ( getequipid(EQI_SHOES) == 30503 ) unequip EQI_SHOES; if ( getequipid(EQI_HAND_L) == 30504 ) unequip EQI_HAND_L; },{}
30506,Shadow_Garment, .,{ bonus ... },{ if ( getequipid(EQI_ARMOR) == 30501 ) unequip EQI_ARMOR; if ( getequipid(EQI_SHOES) == 30503 ) unequip EQI_SHOES; if ( getequipid(EQI_HAND_L) == 30504 ) unequip EQI_HAND_L; },{}
30507,Shadow_Shoes, ...,{ bonus ... },{ if ( getequipid(EQI_ARMOR) == 30501 ) unequip EQI_ARMOR; if ( getequipid(EQI_GARMENT) == 30502 ) unequip EQI_GARMENT; if ( getequipid(EQI_HAND_L) == 30504 ) unequip EQI_HAND_L; },{}
30508,Shadow_Shield, ..,{ bonus ... },{ if ( getequipid(EQI_ARMOR) == 30501 ) unequip EQI_ARMOR; if ( getequipid(EQI_GARMENT) == 30502 ) unequip EQI_GARMENT; if ( getequipid(EQI_SHOES) == 30503 ) unequip EQI_SHOES; },{}
EDIT:

forgot to say I got a PM asked to solve this <.<

EDIT2:

fixed EQI_HAND_R into EQI_HAND_L

Edited by AnnieRuru
  • Upvote 2
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

On the second pair of {} add this: 

{ if(isequipped(IDofEachItemCombination)) nude;

let me know if it work o:

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  65
  • Topics Per Day:  0.02
  • Content Count:  235
  • Reputation:   0
  • Joined:  05/03/13
  • Last Seen:  

On the second pair of {} add this: 

{ if(isequipped(IDofEachItemCombination)) nude;

let me know if it work o:

I don't get this.

i want to make 1st option if holy eqs were equipped then u cant wear shadow shield with holy eqs or 2nd Option want to make if u wear shadow shield. the holy set get unequipped automatically.. just like that...

just only for the holy set and shadow set..

thats why i given item code there . that u can set code in script.

but this looks like if i wear a thing it will be unequipped none holy set and shadow set  

just want to make it work with holy set and shadow set.. not any other equipment

i hope u understand what i mean..

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

allright just give which ids cant be equiped together and i will try to o:!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  65
  • Topics Per Day:  0.02
  • Content Count:  235
  • Reputation:   0
  • Joined:  05/03/13
  • Last Seen:  

allright just give which ids cant be equiped together and i will try to o:!

this id  = 30501,30502,30503,30504 cant wear with these   30505,30506,30507,30508

if i only got example i will do it all

most important thing  this shield 30508 cant wear with this 30501,30502,30503, 

and this shield 30504 cant wear with 30505,30506,30507

Edited by JassMax
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

allright

put this on your shield item

 

{}.{ if(isequipped(30501)) nudeif(isequipped(30502)) nudeif(isequipped(30503)) nude},{}

 

notice it's on the second pair of {} ) OnEquipScript

 

it should work, try it, if doesn't work give me the complete line please so i cant make sure o:

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  65
  • Topics Per Day:  0.02
  • Content Count:  235
  • Reputation:   0
  • Joined:  05/03/13
  • Last Seen:  

allright

put this on your shield item

 

{}.{ if(isequipped(30501)) nudeif(isequipped(30502)) nudeif(isequipped(30503)) nude},{}

 

notice it's on the second pair of {} ) OnEquipScript

 

it should work, try it, if doesn't work give me the complete line please so i cant make sure o:

thanks your script is working

like i was wearing holy set and when i 

wear shadow shield all holy set get unequipped but in script nude thing make all eqs unequipped even accessories and headgears  

this is not what i want...nude thing should not be in script is there any other way to make this work?

you know what i mean?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

yeah i udnerstand, you only want to unequip those specific items, i'm sorry i only know that way D:

 

however, iff the players know that using those items along will unequipthem all they shouldn't use it D:

 

maybe with source modification it can be done as you wish to

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  65
  • Topics Per Day:  0.02
  • Content Count:  235
  • Reputation:   0
  • Joined:  05/03/13
  • Last Seen:  

yeah i udnerstand, you only want to unequip those specific items, i'm sorry i only know that way D:

 

however, iff the players know that using those items along will unequipthem all they shouldn't use it D:

 

maybe with source modification it can be done as you wish to

thanks man for reply.. u helped me at least got some idea ... about this

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

yeah no problem, keep this unsolved so someone maybe can answer for exactly what you want

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  65
  • Topics Per Day:  0.02
  • Content Count:  235
  • Reputation:   0
  • Joined:  05/03/13
  • Last Seen:  

yep.. im hoping

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  65
  • Topics Per Day:  0.02
  • Content Count:  235
  • Reputation:   0
  • Joined:  05/03/13
  • Last Seen:  

Thanks Annie.
i was hoping that u will help me.:D
this is what i want,, working fine..
thanks again..
 

EDIT:

forgot to say I got a PM asked to solve this <.<

 

I don't get u.

 


i think there is mistake
 

if ( getequipid(EQI_HAND_R) 

i think Right hand is for weapon and shield get in Left hand
 

if i change that in to

 

if ( getequipid(EQI_HAND_L) 

gonna work ?

gotta try

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

Thanks Annie.

i was hoping that u will help me. :D

this is what i want,, working fine..

thanks again..

 

EDIT:

forgot to say I got a PM asked to solve this <.<

 

I don't get u.

 

wasn't me D: 

 

thanks too Annie! learning ~

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

i think there is mistake

 

if ( getequipid(EQI_HAND_R) 
i think Right hand is for weapon and shield get in Left hand

 

if i change that in to

 

if ( getequipid(EQI_HAND_L) 
gonna work ?

gotta try

yeah my mistake

thx for pointing out

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  65
  • Topics Per Day:  0.02
  • Content Count:  235
  • Reputation:   0
  • Joined:  05/03/13
  • Last Seen:  

Problem solved Thanks guys

Annie is awesome.. /no1 

and thanks to Kido too...


I'm sorry that i posted my topic in wrong section.. this was my script request..xD
 


yeah my mistake
thx for pointing out

 

no problem xD

Edited by JassMax
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

didn't realized until now lol, it's the second time i don't see the section D: well huh glad to know it's solved :)

 

someone move this please o:?

 

spam please >:3!!

AcmvkAa.png

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...