Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::General Support

Support::General Support Post all topics here having to do with errors while trying to connect to an EQEMu server but not about the setup/running of the Server itself.

Reply
 
Thread Tools Display Modes
  #1  
Old 06-18-2008, 02:52 AM
spider661
Discordant
 
Join Date: Oct 2005
Location: michigain
Posts: 260
Default

to do it that way would all the players need the spell file since its being clicked from an item or can that be done server side only?
Reply With Quote
  #2  
Old 06-18-2008, 02:54 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

My banker item works perfectly fine server side only, but players will see the spell name as "Free Spell" instead of "Summon Banker" if they don't have my custom spell file. Minor reason to require a custom spell file, but I add it in mine since I have quite a few other reasons to have a custom file.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #3  
Old 06-18-2008, 02:59 AM
spider661
Discordant
 
Join Date: Oct 2005
Location: michigain
Posts: 260
Default

ok cool ill play around with it and let you know how it turned out. thanks for the help and your right it was your server so thanks for the ideal also
Reply With Quote
  #4  
Old 06-18-2008, 03:17 AM
spider661
Discordant
 
Join Date: Oct 2005
Location: michigain
Posts: 260
Default

hmm sitting here thinking about it and trying to figure out how to trigger it i started thinking of using the EVENT_SPAWN but would that trigger as the player that spawned the "pet" or would it trigger by the npc spawning?

im thinking the "pet" will spawn give an item to the player then depop.

but im finding myself having a hard time thinking of how to find the player to give the item to.

and how would i make the pet invisible and untargetable? is there a special attack field i have to put in or a model that don't have a graphic?
Reply With Quote
  #5  
Old 06-18-2008, 05:59 AM
spider661
Discordant
 
Join Date: Oct 2005
Location: michigain
Posts: 260
Default

well i gave it a try and i cant get it to fire the events so i tried setting a proximity around it for enter and exit to see if it triggered when it was summoned but its itehr not working or i don't know how the event works becuase im getting noting only thing that works is hailing it and it just say the line it should say when hailed no event triggering other then the say.

here is the code i got named it the same as the npc in the zone im testing in.
spawning with the #npctypespawn command

Code:
sub EVENT_SAY
{
if ($text =~/Hail/i)
 {
quest::say ("Hello $name. im testing.");
quest::set_proximity(0,5,0,5,0,5);
 }
}

sub EVENT_SPAWN 
{ 
quest::set_proximity(0,5,0,5,0,5); 
} 

sub EVENT_ENTER 
{ 
quest::summonitem("1388"); 
quest::say ("entering proximity");
}
Reply With Quote
  #6  
Old 06-18-2008, 08:23 PM
spider661
Discordant
 
Join Date: Oct 2005
Location: michigain
Posts: 260
Default

is there an way to get a pc on spawning the npc maybe even something like get the closest one. the code i posted did not work like i though it would and i have been working all day trying to figure it out and nota yet
Reply With Quote
  #7  
Old 06-19-2008, 12:37 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

When making the pet, set the race to 240 and the bodytype to 11 and that should make it invisible with no name and untargetable. You can also set it to untrackable too if you wanted.

And, so you know, you cannot set a proximity or make changes to it without resetting the zone. Just doing a #reloadquest won't do it. The best way is to zone out and back in or out and do a #zoneshutdown and back in. That is probably why your proximity wasn't working.

And for the actual quest, you would probably be better off using Quest Objects from this wiki page:

http://www.eqemulator.net/wiki/wikka...a=QuestObjects

I don't use quest objects often yet, but maybe something close to this would be a way to start it:

Code:
sub EVENT_SPAWN {
$owner = $mob->GetOwnerID();
quest::settarget(entity,$owner);
}
But, if all you are wanting to do is have a clicky that summons an item, you can do that easily by editing a spell server-side. Just use the Ailia/Bleh spell editor and look at one of the mage summon item spells to see what you need to set to get it working. Then, you can use another free spell for the clickie. You can even set it to summon a whole bag full of items if you want
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
Reply

Thread Tools
Display Modes

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 11:38 PM.


 

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