Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Bug Reports

Development::Bug Reports Post detailed bug reports and what you would like to see next in the emu here.

Reply
 
Thread Tools Display Modes
  #1  
Old 07-22-2009, 07:58 PM
eqwarrior
Sarnak
 
Join Date: Jul 2009
Location: United States
Posts: 40
Post #npcspawn create / add

Sometimes I would like to make a copy of a NPC from one zone and put it in another zone, which I do with #npcspawn create / add which creates an entirely new NPC ID with same name and stats. Two fields that I notice don't carry over is the lastname and the qglobal fields. This drove me nuts before trying to figure why my global wasn't working in another zone that had the same NPC and same quest code. Just a minor note, might be helpful to include those two fields when doing a create / add
Reply With Quote
  #2  
Old 07-22-2009, 11:59 PM
AndMetal
Developer
 
Join Date: Mar 2007
Location: Ohio
Posts: 648
Default

I doubt I'll get to this anytime soon, but here's the query we need to change:

zone/npc.cpp
Code:
if (!RunQuery(query, MakeAnyLenString(&query, "INSERT INTO npc_types (name, level, race, class, hp, gender, texture, helmtexture, size, loottable_id, merchant_id, face, runspeed) values(\"%s\",%i,%i,%i,%i,%i,%i,%i,%f,%i,%i,%i,%f)", tmpstr, spawn->GetLevel(), spawn->GetRace(), spawn->GetClass(), spawn->GetMaxHP(), spawn->GetGender(), spawn->GetTexture(), spawn->GetHelmTexture(), spawn->GetSize(), spawn->GetLoottableID(), spawn->MerchantType, 0, spawn->GetRunspeed()), errbuf, 0, 0, &npc_type_id))
__________________
GM-Impossible of 'A work in progress'
A non-legit PEQ DB server
How to create your own non-legit server

My Contributions to the Wiki
Reply With Quote
  #3  
Old 07-23-2009, 11:06 AM
eqwarrior
Sarnak
 
Join Date: Jul 2009
Location: United States
Posts: 40
Default

I figured it'd be simple like that. No rush, but hopefully added in the future would be helpful. Thanks much!
Reply With Quote
  #4  
Old 07-23-2009, 02:43 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

I might try to get that fixed soon, since I have been wanting to get it to save features as well. Now that we have full control over setting NPC features in game after spawning, we might as well be able to save them when creating NPCs. Since both fixes are in the same place, they might as well be done at the same time.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #5  
Old 07-23-2009, 06:24 PM
eqwarrior
Sarnak
 
Join Date: Jul 2009
Location: United States
Posts: 40
Default

Quote:
Originally Posted by trevius View Post
I might try to get that fixed soon, since I have been wanting to get it to save features as well. Now that we have full control over setting NPC features in game after spawning, we might as well be able to save them when creating NPCs. Since both fixes are in the same place, they might as well be done at the same time.
You da man!
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 06:16 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