Jump to content
  • 0

Item usage delay but only for specific job/s?


Question

Posted

Is it possible to put a kind of "usage delay" on Yggdrasil Berries and Seeds but ONLY when used by Rune Knights? Other jobs will have normal usage.

 

607,Yggdrasilberry,Yggdrasil Berry,0,5000,,300,,,,,0xFFFFFFFF,7,2,,,,,,{ percentheal 100,100; },{},{}
608,Seed_Of_Yggdrasil,Yggdrasil Seed,0,5000,,300,,,,,0xFFFFFFFF,7,2,,,,,,{ percentheal 50,50; },{},{}

 

I know there is a db/item_delay.txt setting but this will affect the item for all jobs. I only want to have the RK have this delay on ygg usage.

 

Maybe somekind of item script to add on them? Or modify my SRC?

 

Anyone has an idea how to do it?

 

Any help would be greatly appreciated.

 

Thank you guys!

 

 

 

 

7 answers to this question

Recommended Posts

Posted

you can try this

http://upaste.me/r/3a5183

 

you can consider to use "temporary" variable if your delay is short ...

change all

ITEMDELAY_

to

@ITEMDELAY_

 

Thanks for your reply Emistry!

 

I want to use delays for only the Rune Knights alone not for every job. Will this do it?

 

Also I want to have delays of 2 secs for the Rune Knights.

 

Thank you!

Posted

try this

http://upaste.me/r/1efb51

// 607,..........,{ callfunc( "Sample",607,2,4060 ); percentheal 100,100; },{},{}

 

Thanks!

 

But there are like several kinds of Rune Knights:

 

(const.txt)

Job_Rune_Knight    4054

Job_Rune_Knight_T    4060

Job_Rune_Knight2    4080

Job_Rune_Knight_T2    4081

Job_Baby_Rune    4096

Job_Baby_Rune2    4109

 

How do I include all these types of RK? (Just to be sure)

 

Thank you my friend!

Posted (edited)

Anyone? :)

Why you don't make a custom item,

and then make it if that class are Rune Knights = heal 100%.

It's more simple and more practical...

 

but oh well, try this...

 

function	script	Sample	{
	set .@item_id,getarg(0);
	set .@delay,getarg(1);
	set .@current_delay,getd( "ITEMDELAY_"+.@item_id );
	set .@gettimetick,gettimetick(1);
	
	if( .@current_delay > .@gettimetick && Class != Job_Rune_Knight && Class != Job_Rune_Knight_T && 
	     Class != Job_Rune_Knight_T && Class != Job_Rune_Knight2 && 
	     Class != Job_Baby_Rune && Job_Baby_Rune2 != Job_Baby_Rune ){
		dispbottom "Item Delay for "+( .@current_delay - .@gettimetick )+" seconds.";
		end;
	}else{
		delitem .@item_id,1;
		setd( "ITEMDELAY_"+.@item_id ),( .@gettimetick + .@delay );
	}
	return;
}
Edited by jigsam

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...