williamII Posted January 21, 2013 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 343 Reputation: 15 Joined: 11/21/11 Last Seen: 2 hours ago Share Posted January 21, 2013 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." Quote Link to comment Share on other sites More sharing options...
screen Posted January 21, 2013 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 4 Reputation: 0 Joined: 10/27/12 Last Seen: March 9, 2014 Share Posted January 21, 2013 · Hidden by Emistry, January 23, 2013 - Non-Topic Related Contents... Hidden by Emistry, January 23, 2013 - Non-Topic Related Contents... +10!!! *.* Link to comment
Capuche Posted January 22, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted January 22, 2013 (edited) 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 January 22, 2013 by Capuche Quote Link to comment Share on other sites More sharing options...
williamII Posted January 23, 2013 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 343 Reputation: 15 Joined: 11/21/11 Last Seen: 2 hours ago Author Share Posted January 23, 2013 ohh thx now test Quote Link to comment Share on other sites More sharing options...
Question
williamII
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.