Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 02-23-2009, 10:41 AM
Aeolwind
Fire Beetle
 
Join Date: Nov 2003
Posts: 9
Question Scripting Bzzazzt (EVENT_DEATH)

I'm working on scripting Sky for Project 1999. I have a sample of code for event death spawns on Pegasus isle which I'm cleaning up & fixing. I'm curious as to how you have different spawn codes for 3 mobs with the same name: Bzzazzt.

One spawns 2 mobs, one spawns 3 and one spawns 1.

Is it as simple as making the PL file Bzzazzt000, 001 and 002 and altering each to fit the respective spawns?
Reply With Quote
  #2  
Old 02-23-2009, 11:20 AM
Theeper
Discordant
 
Join Date: May 2004
Posts: 290
Default

Use the NPC's ID number as a file name. One for Bzzazzt might be 71005.pl
Reply With Quote
  #3  
Old 02-23-2009, 11:36 AM
Aeolwind
Fire Beetle
 
Join Date: Nov 2003
Posts: 9
Default

Ahh, so we'll need 3 Bzzazzt's in the DB, one for each spawn and then name the PL's after the spawnID & write the repspective code for each?
Reply With Quote
  #4  
Old 02-26-2009, 01:59 PM
laxative
Hill Giant
 
Join Date: Aug 2008
Location: NorthEast
Posts: 115
Default

Hi There,

Weird, I was working on the same bit of quest pieces. What I did for testing was append _boss to one of the spawns and tried the write the perl for the sequence.

This one is particularly tricky because they each spawn the same 2nd tier and 3rd tier mobs.

My first edit Did not work, The npc spawn with the adjusted name, but they did not follow the edit perl script. I think I might have had to reload.pl or some other GM command maybe?

But I think you are going to run into the same issue I ran into and may need to create the 2nd and 3tier mobs as well so you write the code appropriately.

Laxa
Reply With Quote
  #5  
Old 02-26-2009, 04:41 PM
Aeolwind
Fire Beetle
 
Join Date: Nov 2003
Posts: 9
Default Best way

I guess the best way to do it is copy the Bzz in the data base twice more. Affix each one to a specific spot and name the PL files based on the npctypeid. I haven't been able to mess with this as of yet so I cannot confirm.
Reply With Quote
  #6  
Old 03-02-2009, 11:51 PM
Bristlebane[nj]
Sarnak
 
Join Date: Mar 2009
Location: XXX
Posts: 78
Default

Well not too sure if you have come to the conclusion.
If you have 3 of the same named mob
Use their id for the .pl

so if the mob is 155399 then the 2nd one is 53559 then

155399.pl
53559.pl

This is what I used to do in my other server.
Reply With Quote
  #7  
Old 03-03-2009, 12:10 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Also, a way that I use in some cases that works well for situations like this is to add numbers or pound signs (#) in the name somewhere depending on which version of the NPC it is. Then, you can name the script and include the numbers or pounds and the players will never see them as they won't show up in game.

So, you could name them something like this (I have used this and it does work):
#Bzzazzt
##Bzzazzt
###Bzzazzt

Or something like this (I haven't tried this with numbers, but I think it would work):

Bzzazzt1
Bzzazzt2
Bzzazzt3

Then your scripts will be named after those same names like this:

#Bzzazzt.pl
##Bzzazzt.pl
###Bzzazzt.pl

Or:

Bzzazzt1.pl
Bzzazzt2.pl
Bzzazzt3.pl

If you try the one that uses numbers and it doesn't work, you may be able to get it to work by moving the number in front of the name. Again though, I haven't really tried doing that, but I assume it would work.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!

Last edited by trevius; 03-03-2009 at 08:16 AM..
Reply With Quote
  #8  
Old 03-05-2009, 09:41 AM
Dibalamin
Hill Giant
 
Join Date: Dec 2007
Posts: 182
Default

Aeolwind here

Hey, that is pretty slick, thanks Trev!
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 07:44 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3