Jump to content

Question

Posted

if (isequipped(2764)) && (isequipped(2775)){
 specialeffect2 EF_BUBBLE;
 set .@fcast,20;
 if (isequipped(2550)) { //Fisher's_Muffler
  set .@fcast,.@fcast - 2;
 }
 if (isequipped(2443)) { //Fish_Shoes
  set .@fcast,.@fcast - 2;
 }
 if (isequipped(2764)) { //Small_Fishing_Rod
  set .@fcast,.@fcast - 3;
 }
 if (isequipped(2775)) { //Lure
  set .@fcast,.@fcast - 1;
 }

I need an arrary to go in where "2764" is with the following items

2764, 23005,23006,23007

That way, any of those items will work when equipped

8 answers to this question

Recommended Posts

Posted

Well..i guess you can try something like this...

setarray .EquipID,2764, 23005,23006,23007;
for( set .@i,0; .@i < getarraysize( .EquipID ); set .@i,.@i + 1 ){
if( isequipped( .EquipID[.@i] ) set .@Equipped,.@Equipped + 1;
}
specialeffect2 EF_BUBBLE;
set .@fcast,20 - ( 2 * .@Equipped );

in this case...i reduce the Cast time by 2 seconds for every Equipments he wear...

Posted

Emistry, I need just the array for the rods .-.

if (isequipped(2764)) && (isequipped(2775)){

I need it so they can equip any of the array but still need 2775 inorder for it to go

Posted

Emistry, I need just the array for the rods .-.

if (isequipped(2764)) && (isequipped(2775)){

I need it so they can equip any of the array but still need 2775 inorder for it to go

You confused me already, Emistry's script should work just fine O.o you can edit the values if needed...or if not well, please do explain well..

Posted

Okay...This right here vvvv Needs to stay the same; but I need it to look something like

if (isequipped(2764)) && (isequipped(2775)){
 specialeffect2 EF_BUBBLE;
 set .@fcast,20;
 if (isequipped(2550)) { //Fisher's_Muffler
  set .@fcast,.@fcast - 2;
 }
 if (isequipped(2443)) { //Fish_Shoes
  set .@fcast,.@fcast - 2;
 }
 if (isequipped(2764)) { //Small_Fishing_Rod
  set .@fcast,.@fcast - 3;
 }
 if (isequipped(2775)) { //Lure
  set .@fcast,.@fcast - 1;
 }

array[1] 2764, 23005, 23006, 23007

if (isequipped(arrayofrods)) && (isequipped(2775)){

Something like that

Posted

like this?

setarray .EquipID,2764, 23005,23006,23007;
for( set .@i,0; .@i < getarraysize( .EquipID ); set .@i,.@i + 1 )
{
	if( (isequipped(.EquipID[.@i])) && (isequipped(2775)) ) set .@equip_ok,1;
}

if(.@equip_ok == 1)
{
	specialeffect2 EF_BUBBLE;
	set .@fcast,20;

	if (isequipped(2550)) { //Fisher's_Muffler
		set .@fcast,.@fcast - 2;
	}
	if (isequipped(2443)) { //Fish_Shoes
		set .@fcast,.@fcast - 2;
	}
	if (isequipped(2764)) { //Small_Fishing_Rod
		set .@fcast,.@fcast - 3;
	}
	if (isequipped(2775)) { //Lure
		set .@fcast,.@fcast - 1;
	}
end;
}

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