Jump to content
  • 0

Item usage delay but only for specific job/s?


johnbond

Question


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  457
  • Reputation:   11
  • Joined:  02/17/13
  • Last Seen:  

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!

 

 

 

 

Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

try this

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

// 607,..........,{ callfunc( "Sample",607,2,4060 ); percentheal 100,100; },{},{}
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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_
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  457
  • Reputation:   11
  • Joined:  02/17/13
  • Last Seen:  

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!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  457
  • Reputation:   11
  • Joined:  02/17/13
  • Last Seen:  

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!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  457
  • Reputation:   11
  • Joined:  02/17/13
  • Last Seen:  

Anyone? :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   0
  • Joined:  09/21/13
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  509
  • Reputation:   80
  • Joined:  11/20/11
  • Last Seen:  

if there is no script able to do, do it by source modification, more easier than using script

Link to comment
Share on other sites

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.

×
×
  • Create New...