Snap Posted May 8, 2012 Group: Members Topic Count: 64 Topics Per Day: 0.01 Content Count: 186 Reputation: 0 Joined: 04/07/12 Last Seen: May 18, 2012 Share Posted May 8, 2012 Can anyone give me a script for the following? Request # 1 Every Refine it gains 2% Resist to Demi Human Request #2 If Upper Gear + Lower Gear + Mid Gear Equipt = Special Bonus +5 Alltstats and allows to use bash skill Thanks! Quote Link to comment Share on other sites More sharing options...
deathscythe13 Posted May 8, 2012 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 118 Reputation: 7 Joined: 01/25/12 Last Seen: February 11, 2023 Share Posted May 8, 2012 if(getrefine()) { bonus2 bSubRace,RC_DemiHuman,2*getrefine(); } Quote Link to comment Share on other sites More sharing options...
Mechomorph XD Posted May 8, 2012 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 71 Reputation: 1 Joined: 03/06/12 Last Seen: January 22, 2021 Share Posted May 8, 2012 Else Choice Request # 1 : Resist Human Upto 20% bonus2 bSubRace,RC_DemiHuman,getrefine()*2; Request # 2 if(isequipped(Item_ID) && isequipped(Item_ID) && isequipped(Item_ID)) { bonus bAllStats,5; } Quote Link to comment Share on other sites More sharing options...
Lilith Posted May 8, 2012 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 407 Reputation: 159 Joined: 11/18/11 Last Seen: November 15, 2014 Share Posted May 8, 2012 Request # 2 if(isequipped(Item_ID) && isequipped(Item_ID) && isequipped(Item_ID)) { bonus bAllStats,5; } if(isequipped(Item_ID) && isequipped(Item_ID) && isequipped(Item_ID)) { bonus bAllStats,5; skill "SM_BASH",(skill_lvl); } Quote Link to comment Share on other sites More sharing options...
QQfoolsorellina Posted May 8, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 587 Reputation: 105 Joined: 11/19/11 Last Seen: July 7, 2019 Share Posted May 8, 2012 (edited) if(getequipid(1)>0 && getequipid(9)>0 && getequipid(10)>0){......} I think to use getequipid would be better Edited May 8, 2012 by QQfoolsorellina Quote Link to comment Share on other sites More sharing options...
Lilith Posted May 8, 2012 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 407 Reputation: 159 Joined: 11/18/11 Last Seen: November 15, 2014 Share Posted May 8, 2012 if(getequipid(1)>0 && getequipid(9)>0 && getequipid(10)>0){......} I think to use getequipid would be better I think this would be better too o.O *isequipped(<id>{,<id>{,<id>{,<id>}}}) This function will return 1 if the invoking character has all of the item IDs given equipped (if card IDs are passed, then it checks if the cards are inserted into slots in the equipment they are currently wearing). Theoretically there is no limit to the number of items that may be tested for at the same time. If even one of the items given is not equipped, 0 will be returned. // (Poring,Santa Poring,Poporing,Marin) if (isequipped(4001,4005,4033,4196)) mes "Wow! You're wearing a full complement of possible poring cards!"; // (Poring) if (isequipped(4001)) mes "A poring card is useful, don't you think?"; The function was meant for item scripts to support the cards released by Gravity in February 2005, but it will work just fine in normal NPC scripts. if(isequipped(<id1>,<id2>,<id3>) { bonus bAllStats,5; skill "SM_BASH",(<skill_lvl>); } Quote Link to comment Share on other sites More sharing options...
Snap Posted May 8, 2012 Group: Members Topic Count: 64 Topics Per Day: 0.01 Content Count: 186 Reputation: 0 Joined: 04/07/12 Last Seen: May 18, 2012 Author Share Posted May 8, 2012 Okay about the request number. First i got a 10% Demi Human Resists. As i enhance it It will add 2% Example : +1 Cap ( 10% + 2% Refine Bonus = 12% Demihuman) Quote Link to comment Share on other sites More sharing options...
Lilith Posted May 8, 2012 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 407 Reputation: 159 Joined: 11/18/11 Last Seen: November 15, 2014 Share Posted May 8, 2012 bonus2 bSubRace,RC_DemiHuman,10+(getrefine()*2); Quote Link to comment Share on other sites More sharing options...
Snap Posted May 10, 2012 Group: Members Topic Count: 64 Topics Per Day: 0.01 Content Count: 186 Reputation: 0 Joined: 04/07/12 Last Seen: May 18, 2012 Author Share Posted May 10, 2012 Thanks guys! Quote Link to comment Share on other sites More sharing options...
Question
Snap
Can anyone give me a script for the following?
Request # 1
Every Refine it gains 2% Resist to Demi Human
Request #2
If Upper Gear + Lower Gear + Mid Gear Equipt = Special Bonus +5 Alltstats and allows to use bash skill
Thanks!
Link to comment
Share on other sites
8 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.