Jump to content
  • 0

One idea for intinite "Enchant Deadly Poison"


Question

Posted (edited)

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;
				}
			}

 

EDP.png.20680c7b806a2f04d433fa188a407a56.png

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...
Please teach me if anyone knows better, more simple way

Edited by eppc0330

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...