Hi. I have tried to make 'infinite poison bottle' item,
but I have no idea to solve problem about skill required item : How to make skill "Enchant Deadly Poison" consume ONLY ONE OF 'POISON BOTTLE' OR MY CUSTOM ITEM 'INFINITE POISON BOTTLE', not both?
So I just tried another way : Skill "Research New Poison"
First go to Item_db.txt and add script below in any item
Question
eppc0330
Hi. I have tried to make 'infinite poison bottle' item,
but I have no idea to solve problem about skill required item : How to make skill "Enchant Deadly Poison" consume ONLY ONE OF 'POISON BOTTLE' OR MY CUSTOM ITEM 'INFINITE POISON BOTTLE', not both?
So I just tried another way : Skill "Research New Poison"
First go to Item_db.txt and add script below in any item
{ if(getskilllv("GC_RESEARCHNEWPOISON") >= 10){ skill "GC_RESEARCHNEWPOISON",11; } },{},{ sc_end SC_EDP; }
Next, Status.cpp, find
if( sd )// [Ind] - iROwiki says each level increases its duration by 3 seconds tick += pc_checkskill(sd,GC_RESEARCHNEWPOISON)*3000;
or
if (sd) { uint16 poison_level = pc_checkskill(sd, GC_RESEARCHNEWPOISON); if (poison_level > 0) { tick += 30000; // Base of 30 seconds tick += poison_level * 15 * 1000; // Additional 15 seconds per level } }
Then change to
if (sd) { uint16 poison_level = pc_checkskill(sd, GC_RESEARCHNEWPOISON); if ((poison_level > 0) && (10 >= poison_level)) { tick += 30000; // Base of 30 seconds tick += poison_level * 15 * 1000; // Additional 15 seconds per level } else if (poison_level > 10) { tick += -60001; } }
So I could make skill last permanently, during equiping my custom item with item script above
I still can't solve about skill requiring item...
Edited by eppc0330Please teach me if anyone knows better, more simple way
0 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.