Jump to content
  • 0

Array


Pneuma

Question


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  846
  • Reputation:   137
  • Joined:  02/26/14
  • Last Seen:  

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

Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  846
  • Reputation:   137
  • Joined:  02/26/14
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  392
  • Reputation:   47
  • Joined:  11/18/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  846
  • Reputation:   137
  • Joined:  02/26/14
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  392
  • Reputation:   47
  • Joined:  11/18/11
  • Last Seen:  

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;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  846
  • Reputation:   137
  • Joined:  02/26/14
  • Last Seen:  

Yup :D

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  392
  • Reputation:   47
  • Joined:  11/18/11
  • Last Seen:  

Yup :D

Did you test it already?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  846
  • Reputation:   137
  • Joined:  02/26/14
  • Last Seen:  

Yes I did, though I had to edit yours abit to make it work with mine :D

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