xLeGaTuSx Posted January 23, 2012 Posted January 23, 2012 i need change mana potion stats, please tell me how to make that in the combat they couldn't use mana potion? current stats <etcitem id="728" name="Mana Potion"> <set name="class" value="CONSUMABLE"/> <set name="crystal_type" value="NONE"/> <set name="icon" value="icon.etc_reagent_blue_i00"/> <set name="price" value="2000"/> <set name="reuse_delay" value="15000"/> <set name="stackable" value="true"/> <set name="type" value="POTION"/> <set name="weight" value="180"/> <skills> <skill id="90001" level="1"/> </skills> <cond msgId="1508"> <not> <player olympiad="true"/> </not> </cond> </etcitem> Quote
0 An4rchy Posted January 23, 2012 Posted January 23, 2012 You need to add the proper checks on potions item handler. Quote
0 GunarStillis Posted January 23, 2012 Posted January 23, 2012 its on java,find a code for that and add it..u can't do it on xml Quote
0 Tryskell Posted January 23, 2012 Posted January 23, 2012 You need to add the proper checks on potions item handler. There is normally a mana potion itemhandler in DP side, find it and add the check you need. If you haven't that itemhandler, do as An4rchy said, with a check on itemId aswell (if mana potion id, then if in combat mode). Quote
0 Trance Posted January 23, 2012 Posted January 23, 2012 Something like that: int skillId = skill.getId(); if (activeChar.getPvpFlag() != 0 && skillId == 728) { activeChar.sendMessage("you can't bla bla"); return; } Quote
0 Twixu Posted January 26, 2012 Posted January 26, 2012 go to gameserver/data/stats/skills/90000-90099.xml open with notepad and there you change what you want Quote
0 Trance Posted January 26, 2012 Posted January 26, 2012 go to gameserver/data/stats/skills/90000-90099.xml open with notepad and there you change what you want This has nothing to do with flag, read what he said. Quote
Question
xLeGaTuSx
i need change mana potion stats,
please tell me how to make that in the combat they couldn't use mana potion?
current stats
9 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.
Note: Your post will require moderator approval before it will be visible.