View Single Post
  #3  
Old 05-13-2011, 10:58 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Here is a fairly simple example of using these 2 plugins together:

Code:
sub EVENT_ITEM_CLICK {

	if (!$client->EntityVariableExists(15) || plugin::GetTimeLeft($client->GetEntityVariable(15), "S") == 0)
	{
		# Do your spell script here
		# ...
		
		# Then set the new end time for the recast delay here
		my $EndTime = plugin::GetEndTime("S5");
		$client->SetEntityVariable(15, $EndTime);
	}
	else
	{
		$client->Message(13, "Spell recast time not yet met.");
	}

}
Basically, in this example, you are just using these plugins to create and enforce a recast delay within an item click script, which otherwise would not have a simple way to set a recast delay on.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote