Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Database/World Building

Development::Database/World Building World Building forum, dedicated to the EQEmu MySQL Database. Post partial/complete databases for spawns, items, etc.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #7  
Old 09-19-2015, 03:00 PM
Trackye
Sarnak
 
Join Date: Feb 2008
Posts: 87
Default

AdrianD - Thank you for the response I was not aware of the Raid_target field nor for some reason did I see it when I looked at the database.

In the end I ended up running my sqls which surprisingly ran pretty much as is. Then i ended up running the last query a few more times to catch stragglers who had an extremely large amount of hp to begin with.

It is good to know and consider the ## factor though and I will keep that in mind I appreciate your assistance again as well Kingly.


as for the Adding a Weapon to an NPC to hold it seems I am at a loss there and will attempt to just add them into the database im guessing a simple query would work

as in to update the spawn based on id and d_melee_texture or something.

hopefully i get some time to lookinto that later it just seemed that that there isnt a simple command to be able to type #HOLDTHIS "itemid" seems much more straight forward. Im wondering If i could add one to the database by creating a new GM command that would run a query into the db by selecting the clients target as the ID and the input "14383"(Innoruuk's curse for example) and then put it in the db.

I suppose though you may have to use the texture id such as 152 for IC or something instead.

I was attempting to get #npcedit priweapon (id) or #npcedit priweapon (modelid) to work but they return no error but do nothing.

Guess its time to start looking:P


Edited instead of double posting.


Looking in the command.cpp files i find this.
Code:
c->Message(0, "#npcedit weapon - Sets an NPC's primary and secondary weapon model"); 

	if (strcasecmp(sep->arg[1], "weapon") == 0) {
        c->Message(15,"NPCID %u will have item graphic %i set to his primary and item graphic %i set to his secondary on repop.",   npcTypeID, atoi(sep->arg[2]), atoi(sep->arg[3]));
		std::string query = StringFormat("UPDATE npc_types SET d_melee_texture1 = %i, d_melee_texture2 = %i WHERE id = %i",  atoi(sep->arg[2]), atoi(sep->arg[3]), npcTypeID);
		database.QueryDatabase(query);
		return;
	}
When my DB is done sourcing back into Mysql(Sql dump and cmd line sourcing is taking like 2 hours!!) I am gonna give that a shot. It looks like from that command you can only set BOTH at once. Or maybe actually requires NPCID(Target) Modelid1 Modelid2 format for Dual wield. But we will see:P

Last edited by Trackye; 09-19-2015 at 03:11 PM.. Reason: Formatting...
Reply With Quote
 

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 06:04 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