madtoyz 2 Posted July 31, 2013 Combine 10 equipments with 1 function. How ? example : All this 10 items (6 equipment and 4 costume items). Need use all this item When player using all this item and the user Hp is lower then 30% will read this function : http://herc.ws/board/topic/1753-add-function-in-item-db2-script/ function script Henshin { set @sr,1; specialeffect2 EF_HEAL; specialeffect2 EF_POTION_BERSERK; unittalk getcharid(3),"Henshin!!"; disguise 1785; percentheal 100,0; sleep2 10000; undisguise; set @sr,0; end;} Quote Share this post Link to post Share on other sites
0 jaBote 438 Posted July 31, 2013 You mean you want that when they all are equipped TOGETHER the function works, try db/{re or pre-re}/item_combo_db.txt (example: renewal one). Quote Share this post Link to post Share on other sites
0 madtoyz 2 Posted July 31, 2013 ya.the renewal one, equip all the 10items then can become HENSHIN. have two way, when HP 30%,player will auto become monster 30second, have 1 skill that can use for HENSHIN anytime they want but after use the skill will have delay 1minute. Quote Share this post Link to post Share on other sites
0 madtoyz 2 Posted August 1, 2013 ya.the renewal one, equip all the 10items then can become HENSHIN. have two way, when HP 30%,player will auto become monster 30second, have 1 skill that can use for HENSHIN anytime they want but after use the skill will have delay 1minute. Correct me if wrong... dbreitem_combo_db.txt 29951:29952:29953:29954:29955:29956:29957:29958:29959:29960,{ autobonus2 "{if(((HP*100/MaxHP*100)/100) >=30 || @sr ) end; callfunc "Switching"; }",10000,10000,BF_WEAPON|BF_MAGIC; },{},{} use all 10 items(combo item) than can Henshin ? right? Then,how to make own skill that player can Henshin anytime ? what should i do ? Quote Share this post Link to post Share on other sites
0 jaBote 438 Posted August 1, 2013 Supposedly, if you change the function that it's called to the proper name (it's Switching right now, not Henshin) it should work. For Henshin anytime you want, I think you should make a skill or so. Quote Share this post Link to post Share on other sites
0 madtoyz 2 Posted August 1, 2013 Supposedly, if you change the function that it's called to the proper name (it's Switching right now, not Henshin) it should work. For Henshin anytime you want, I think you should make a skill or so. Ya,that just for example only. How to add new custome skill ? Quote Share this post Link to post Share on other sites
0 jaBote 438 Posted August 1, 2013 I'm not the one that can help you on that. This requires both source, client and db modifications. I feel that a guide on simple custom skills is missing out there since I miss the source and client sides, I could give you a little help with the db mods but it won't do much alone. Quote Share this post Link to post Share on other sites
0 madtoyz 2 Posted August 1, 2013 ok.problem here already solve..thanks Quote Share this post Link to post Share on other sites
Combine 10 equipments with 1 function.
How ?
example :
All this 10 items (6 equipment and 4 costume items).
Share this post
Link to post
Share on other sites