Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Plugins & Mods

Quests::Plugins & Mods Completed plugins for public use as well as modifications.

Reply
 
Thread Tools Display Modes
  #1  
Old 05-27-2011, 09:38 PM
Robregen
Developer
 
Join Date: May 2011
Posts: 108
Default plugin::DoAnim(2hslash) / (2hblunt) / (2hpierce)

I was fiddling with the doanim plugins and the 2hand anim causes my quest to not work. I took out the "2" in anim.pl so instead of pluginoAnim(2hslash), its pluginoAnim(hslash) and it works like it should. I think having a number in parathesis causes it to glitch or not work. Thought i report this. Thanks for the wonderful plugins overall. =)
Reply With Quote
  #2  
Old 05-27-2011, 10:19 PM
Akkadius's Avatar
Akkadius
Administrator
 
Join Date: Feb 2009
Location: MN
Posts: 2,071
Default

Quote:
Originally Posted by Robregen View Post
I was fiddling with the doanim plugins and the 2hand anim causes my quest to not work. I took out the "2" in anim.pl so instead of pluginoAnim(2hslash), its pluginoAnim(hslash) and it works like it should. I think having a number in parathesis causes it to glitch or not work. Thought i report this. Thanks for the wonderful plugins overall. =)
They work just fine if you quote your strings inside the arguement:
Code:
 
                plugin::DoAnim("2hslash");
		plugin::DoAnim("2hblunt");
		plugin::DoAnim("2hpierce");
Let me know if you need anything else.

8 D

Thanks, ~Akka
Reply With Quote
  #3  
Old 05-27-2011, 10:26 PM
Robregen
Developer
 
Join Date: May 2011
Posts: 108
Default

ah okay, didn't even cross my mind to use the quotes. Thanks for the head up. =)
Reply With Quote
  #4  
Old 05-28-2011, 11:04 AM
ChaosSlayerZ's Avatar
ChaosSlayerZ
Demi-God
 
Join Date: Mar 2009
Location: Umm
Posts: 1,492
Default

I am curious why you need plugin for something simple this at all?

whats wrong with:

quest::doanim(1);
?
Reply With Quote
  #5  
Old 05-28-2011, 12:27 PM
Akkadius's Avatar
Akkadius
Administrator
 
Join Date: Feb 2009
Location: MN
Posts: 2,071
Default

Quote:
Originally Posted by ChaosSlayerZ View Post
I am curious why you need plugin for something simple this at all?

whats wrong with:

quest::doanim(1);
?
Think of it like DNS, it's name resolution so that when you are scripting you don't need to remember an address or a number but rather a naming scheme to a commonly used list of animations
Reply With Quote
  #6  
Old 05-29-2011, 12:09 AM
ChaosSlayerZ's Avatar
ChaosSlayerZ
Demi-God
 
Join Date: Mar 2009
Location: Umm
Posts: 1,492
Default

well true, I was just surprised, cause usually plugins used for some really complex shit that normally takes 5-20 lines of code to do something
Reply With Quote
  #7  
Old 05-29-2011, 12:20 AM
Akkadius's Avatar
Akkadius
Administrator
 
Join Date: Feb 2009
Location: MN
Posts: 2,071
Default

Quote:
Originally Posted by ChaosSlayerZ View Post
well true, I was just surprised, cause usually plugins used for some really complex shit that normally takes 5-20 lines of code to do something
Doesn't always have to be.

Could be as simple as

plugin::SetProx(20, 20);

All reducing redundant and simple code:

Code:
#Akkadius
#Usage plugin::SetProx(X/Y Axis Range, Z Axis Range);
sub SetProx{	
	my $Range = $_[0];
	my $Z = $_[1];
	my $x = plugin::val('$x');
	my $y = plugin::val('$y');
	my $npc = plugin::val('$npc');
	my $z = $npc->GetZ();
	quest::set_proximity($x - $Range, $x + $Range, $y - $Range, $y + $Range, $z - $Z, $z + $Z);
	}
Reply With Quote
  #8  
Old 05-29-2011, 01:45 PM
ChaosSlayerZ's Avatar
ChaosSlayerZ
Demi-God
 
Join Date: Mar 2009
Location: Umm
Posts: 1,492
Default

now that's an awesome plugin! =)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 05:36 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3