Jump to content
  • 0

Equip script help!


williamII

Question


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  343
  • Reputation:   15
  • Joined:  11/21/11
  • Last Seen:  

Hi-

please i need help with one equip script, i don't have idea how make the code

if the item is equipped with a set and total refine of set is equality than 23 give atk + 1%

and If refined to +7 o more adds Increased attack speed (delay after the attack, 2% reduction)

thx for help. this is a description of item i like use a same description for custom items.

Sorry for miy bad english.

------------------------------------------------------------------------------------------------------------------------

"Increased attack speed (delay after the attack, 1% reduction).",

"If refined to +7 o more adds Increased attack speed (delay after the attack, 2% reduction).",

" [^32CD32+ Shadow Physical Set^000000]",

"If the amount of the entire set of refine is superior to a quantity increases your ATK.",

"If the amount is 23 or more, increase ATK + 1%.",

" [^32CD32Shadow Physical Set^000000]",

"Shadow Physical Weapon, Shadow Physical Earring and Shadow Physical Pendant."

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  10/27/12
  • Last Seen:  

Posted · Hidden by Emistry, January 23, 2013 - Non-Topic Related Contents...
Hidden by Emistry, January 23, 2013 - Non-Topic Related Contents...

+10!!! *.*

Link to comment

  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   616
  • Joined:  07/05/12
  • Last Seen:  

function	script	F_bonus_Blabla	{

for( set .@j, 0; .@j < getargcount(); set .@j, .@j + 1 ) {
	if( !isequipped( getarg( .@j ) ) ) return 0;
	set .@temp[ .@j ], getarg( .@j );
}

getinventorylist;

for( set .@i, 0; .@i < @inventorylist_count; set .@i, .@i + 1 )
	if( @inventorylist_equip[ .@i ] )
		for( set .@j, 0; .@j < getarraysize( .@temp ); set .@j, .@j + 1 )
			if( @inventorylist_id[ .@i ] == .@temp[ .@j ] ) {
				deletearray .@temp[ .@j ], 1;
				set .@ref, .@ref + @inventorylist_refine[ .@i ];
				break; }

if( getarraysize( .@temp ) || .@ref < 23 )
	return 0;
return 1;
}

Example :

1151,Slayer,Slayer,4,15000,,1300,90,,1,2,0x00004082,7,2,34,2,18,1,3,{ if( callfunc("F_bonus_Blabla",1151,2404) ) bonus bAtkRate,1; if(getrefine()>=7) bonus bAspd,2; },{},{}

Refine+7 >> Increase attack speed +2%

If player is equipped item ID 1151 (current weapon) and item ID 2404, increase ATK + 1%

Edited by Capuche
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  343
  • Reputation:   15
  • Joined:  11/21/11
  • Last Seen:  

ohh thx now test

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