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

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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #13  
Old 02-22-2010, 10:39 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Ok, I added another plugin to the original post in this thread (edited in the code). The new plugin works similar to the quest::wearchange() command, accept this plugin will set the wearchange weapon model(s) and also set the appropriate attack animation and message type as well.

Here is the usage for the new plugin:
Code:
#Usage: plugin::SetWeapons(PrimaryModel, SecondaryModel, EnableRemoving? );
#Example: plugin::SetWeapons(11, 200);
The EnableRemoving? argument is a bool for if you want 0s in primary or secondary to remove the weapon model from that slot. Otherwise, 0s will just prevent any changes for that slot. So, here are a few examples with explainations:

Code:
plugin::SetWeapons(11); # Will set the primary weapon model to 11 but not change what the second weapon model is currently.

plugin::SetWeapons(11, 200); # Will set the primary to 11 and secondary to 200.

plugin::SetWeapons(0, 200); # Will set the secondary to model 200 without changing whatever model might be set in the primary.

plugin::SetWeapons(0, 200, 1); # Will remove the weapon model from the primary and set the secondary to model 200

plugin::SetWeapons(11, 0, 1); # Will set the primary model to 11 and remove any secondary model.
Note that I have not yet tested the new SetWeapons plugin yet, but I am pretty sure it will work as described. I will test it when I get home and edit this post if it has any issues.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
 


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 09:55 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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3