Equiping mobs with showing items
Ok i have placed some mobs in zones that I made up and I was just wonder how i can modify the look of them using the eqemu admin tool... I would like make the enemy weild the sword he drops for loot... im just wondering how i can do this plz reply thanks.
|
I think that setting the "Equip" value to 1 in the loot table is -supposed- to do this - however it doesn't work ATM.
This would be a really nice feature, especially for guards etc. (with my DB addon, guards now carry their sword and shield, but you can't see them) |
You can manually add items in the NPC_TYPE table, but it will not automatically match the loot drop.
d_meele_texture1 and d_meele_texture2 for each hand |
Thanks for that info, Lurker - I had no idea what the d_meele_texture values actually did, now I can use this to give guards and NPCs (e.g the PoD) visible weapons and shields. I'll code this into EQNPC ASAP - I'll add two new values to eqspawns.txt that contain the model numbers of the two weapon slots.
I'll leave the values blank for humanoid creatures/mobs, e.g orcs, since they should wield whatever weapon (if any) is in their inventory - Edgar's NPC equipping code should do this. |
Quote:
|
The d_meele_texture values don't seem to work - I gave all the Qeynos guards a sword (1) and shield (200), and all the Priests of Discord their staff (29), but they are not visible. (I confirmed the values were set correctly using EQEmuAdmin).
If you create a NPC using #spawn with these numbers, they appear correctly. This is using 0.4.2DR3 from http://cecugfile.net . |
Did you setup equip_item to 1?
|
This is using the d_meele_texture values in npc_types, not equipment in the loot table (I haven't got a compiled binary with this latest code in).
From looking at the 4.2 source code, it appears that the d_meele_texture values should work, they are assigned to the NPC when it is created. However the NPCs remain empty-handed when I enter the world. |
You want a copy of it? If you want it now, I can either email it to you or dcc it to you on the irc server.
|
Thanks, that'd be really useful - my e-mail address is edwardpinniger@bctalk.net .
|
Its sent. I just added procs to npcs too but Ill let you play with that when the cvs you guys can access gets updated :P
|
I'll push it out this afternoon when i get in..
Another server crash last night.. DOH! Power blinked and my UPS didnt kick in. Now grub wont boot correctly, having to manually mount my filesystems till I can figure out what happened... |
Drawde, were you putting 1 or the actual item number in d_meele_texture? It should be the item number.
Granted perhaps moot now, but oh well. |
Thanks very much for sending me the binaries, they work OK and NPCs with items, e.g guards, now equip them. Great work on adding this feature, how hard was it to code?
About d_meele_texture (shouldn't it be melee?), I was using the item's model ID (using the EQEmuAdmin item_visuals.txt as a reference), - e.g 34 for a short sword, 21 for a lute, rather than an actual item number from the DB. I'll try using item numbers instead and see if it works. This feature isn't totally redundant (from my point of view) since I wanted to give NPCs such as guildmasters visible items such as weapons and shields, without having to set up a loot table for them. |
It was not too hard to code. d_meele_texture1 and d_meele_texture2 might be using the item number instead of the item texture. The code for the npc equiping a primary weapon directly from the db is as follows:
Code:
npc->d_meele_texture1=atoi(newid); |
All times are GMT -4. The time now is 11:29 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.