DairyPresto Posted January 24, 2024 Posted January 24, 2024 Hi Rathena, I need help with item db script. I want my YGGdrasil berry Increase percent when the certain item is equip. Sample this is my normal ygg percent heal. 607,Yggdrasilberry,Yggdrasil Berry,0,1,,50,,,,,0xFFFFFFFF,7,2,,,,,,{ percentheal 20,0; },{},{} If the player has XX item or certain item we say i wear Flapping Angelring ID 5334 the Percent heal of the YGG will be 40%. If the player doesnt have Angelring the ygg heal is default but if the Angelring hat is equip the ygg will be 40% healed. PS : the bAddItemHealRate item bonus is not working on my server thats why im requesting this kind of script or item bonus. Thank you Quote
0 Emistry Posted January 24, 2024 Posted January 24, 2024 percentheal((isequipped(5334) ? 40 : 20), 0); if (isequipped(5334)) { percenthea(40, 0); } else { percentheal(20, 0); } percentheal(20, 0); if (isequipped(5334)) { percenthea(20, 0); } can use isequipped(...) or isequippedcnt(...) or getequippedid(...) or countitem(...) etc 1 Quote
0 xJohn Posted January 24, 2024 Posted January 24, 2024 (edited) 607,Yggdrasilberry,Yggdrasil Berry,0,1,,50,,,,,0xFFFFFFFF,7,2,,,,,,{ percentheal 20,0; if (getequipid(EQI_HEAD_TOP) == 5334) { percentheal 40,0; } },{},{} correcting 607,Yggdrasilberry,Yggdrasil Berry,0,1,,50,,,,,0xFFFFFFFF,7,2,,,,,,{ percentheal 20,0; if (getequipid(EQI_HEAD_TOP) == 5334) { percentheal 20,0; } },{},{} Edited January 24, 2024 by xJohn I made a mistake writing the script Quote
0 botka4aet Posted January 24, 2024 Posted January 24, 2024 1 minute ago, xJohn said: 607,Yggdrasilberry,Yggdrasil Berry,0,1,,50,,,,,0xFFFFFFFF,7,2,,,,,,{ percentheal 20,0; if (getequipid(EQI_HEAD_TOP) == 5334) { percentheal 40,0; } },{},{} It`s 60%, no? First 20% and if with item - bonus 40% Quote
0 DairyPresto Posted February 3, 2024 Author Posted February 3, 2024 On 1/25/2024 at 1:26 AM, Emistry said: percentheal((isequipped(5334) ? 40 : 20), 0); if (isequipped(5334)) { percenthea(40, 0); } else { percentheal(20, 0); } percentheal(20, 0); if (isequipped(5334)) { percenthea(20, 0); } can use isequipped(...) or isequippedcnt(...) or getequippedid(...) or countitem(...) etc Hi @Emistry, I got a little Problem. Is it only working ON Equip? what about on card? 48337,ATKStone_Top4,Runes of Potion Mastery,6,20,,10,,,,,,,,136,,,,,{},{},{} 607,Yggdrasilberry,Yggdrasil Berry,0,1,,50,,,,,0xFFFFFFFF,7,2,,,,,,{ percentheal((isequipped(48337) ? 40 : 15), 0); },{},{} When the Runes of potion equip as a card nothing happens Thanks Quote
Question
DairyPresto
Hi Rathena, I need help with item db script.
I want my YGGdrasil berry Increase percent when the certain item is equip.
Sample this is my normal ygg percent heal.
607,Yggdrasilberry,Yggdrasil Berry,0,1,,50,,,,,0xFFFFFFFF,7,2,,,,,,{ percentheal 20,0; },{},{}
If the player has XX item or certain item we say i wear Flapping Angelring ID 5334 the Percent heal of the YGG will be 40%.
If the player doesnt have Angelring the ygg heal is default but if the Angelring hat is equip the ygg will be 40% healed.
PS : the bAddItemHealRate item bonus is not working on my server thats why im requesting this kind of script or item bonus.
Thank you
4 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.