|
|
 |
 |
 |
 |
|
 |
 |
|
 |
 |
|
 |
|
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. |
 |
|
 |

12-27-2006, 06:38 AM
|
Demi-God
|
|
Join Date: Jul 2006
Posts: 1,552
|
|
Sorry for the delayed response. Just got back from my holiday. Let me try and demonstrate what I did to make a level 70 Monster Summoning pet (since I believe previously, they only went up to 60).
First, I created a new NPC with the stats I wanted (all test data, I didn't really tweak it properly):
Code:
INSERT INTO `npc_types` (`id`, `name`, `lastname`, `level`, `race`, `class`, `bodytype`, `hp`, `gender`, `texture`, `helmtexture`, `size`, `hp_regen_rate`, `mana_regen_rate`, `loottable_id`, `merchant_id`, `npc_spells_id`, `npc_faction_id`, `mindmg`, `maxdmg`, `npcspecialattks`, `aggroradius`, `face`, `luclin_hairstyle`, `luclin_haircolor`, `luclin_eyecolor`, `luclin_eyecolor2`, `luclin_beardcolor`, `luclin_beard`, `d_meele_texture1`, `d_meele_texture2`, `runspeed`, `MR`, `CR`, `DR`, `FR`, `PR`, `see_invis`, `qglobal`, `see_invis_undead`, `AC`, `npc_aggro`, `spawn_limit`, `attack_speed`, `findable`, `STR`, `STA`, `DEX`, `AGI`, `_INT`, `WIS`, `CHA`) VALUES (639, 'MonsterSum5', NULL, 70, 0, 1, 24, 4200, 2, 0, 0, 9, 90, 0, 0, 0, 163, 0, 200, 680, '', 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 2, 305, 305, 305, 305, 305, 0, 0, 1, 1200, 0, 0, 0, 0, 305, 305, 305, 305, 305, 305, 305);
Note: I forced 'id' 639 because in the stock database it appears pets are below 1000, and ended at 638.
Then I went to table: pets, and inserted this record at the end:
Code:
INSERT INTO `pets` (`type`, `npcID`, `temp`) VALUES ('MonsterSum5', 639, 0);
This gave me my path from Pets to NPC_types so when I used #makepet [type], the right NPC showed up.
Finally, in game I can now type #makepet MonsterSum5 and get Gebobtik to show up and give me my much needed support. Things to note, the body type of the NPC you are trying to spawn needs to be in the zone_chr.txt file, or in the global_chr.txt so the pet doesn't show up as a human model with bad hair. Also, you might need to mess with Gender once in a while. I am finding many inconsistencies with how things appear simply because they are not #gender 2 or something.
As for adding a pet-summoning spell or effect, that is not something I have tried yet. Messing with spells data scares me. Good luck, and I hope this helps a little.
|
 |
|
 |

12-28-2006, 07:00 AM
|
Sarnak
|
|
Join Date: Nov 2006
Posts: 30
|
|
thanx for the info.
what if i wanted the summoned pet to be the same level of the person making him? would i need to go into the #makepet command and set something up like...
level=player level
|

12-28-2006, 08:51 AM
|
Demi-God
|
|
Join Date: Jul 2006
Posts: 1,552
|
|
Not sure, really... because I do recall that at least at lower levels, sometimes you'd summon a pet that was white to you (same level), sometimes he'd be blue, other times yellow. So that implied some sort of randomness to it. My understanding of the Pets table vs npc_types table, you get what you get, that's it. I should investigate the actual code to see if there is any randomness added after fetching the base data.
But to answer you, I think you'd have to make 1 pet record for each level you wish to summon. I was hoping someone more knowledgable than me would step in by now. 
|

12-28-2006, 10:16 AM
|
Hill Giant
|
|
Join Date: Dec 2006
Posts: 110
|
|
actually just check out the spell list on alla, pretty sure that has a list of the level of pet for each spell.
|

12-28-2006, 03:32 PM
|
Demi-God
|
|
Join Date: Jul 2006
Posts: 1,552
|
|
I think he's wanting a pet per level. Allah's should show what's currently in the table: npc_types, id's 1-999 (1000 starts Qeynos NPCs). All the pets for all the legit levels are in ther now, too. But if you want more, gotta make them yourself. 
|

12-29-2006, 07:04 PM
|
Dragon
|
|
Join Date: Oct 2003
Posts: 511
|
|
Are you guys sure about this? last time I was running my emu server(a long while back) the #makepet command allowed you to make pets based on what information you gave the command.
__________________
How about the power to kill a yak from 200 yards away...WITH MIND BULLETS! thats telekinesis kyle.
|

12-29-2006, 07:29 PM
|
Demi-God
|
|
Join Date: Jul 2006
Posts: 1,552
|
|
Good question. I am not sure of anything, 100%. I just go by what I read on the forums or in game, or what I interpret the C++ code to say.
This is from command.cpp:
Code:
command_add("makepet","[level] [class] [race] [texture] - Make a pet",50,command_makepet)
Which makes your statement correct. But, when you type #makepet in game with no params, the Usage says:
Code:
c->Message(0, "Usage: #makepet pet_type_name (will not survive across zones)");
And I can say with confidence, lately, if I do not enter the exact name from npc_types table for the pet, linked to the Pets table, I get told cannot find a pet of that type. Not really sure what's up with that.
|
Thread Tools |
|
Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 08:33 PM.
|
|
 |
|
 |
|
|
|
 |
|
 |
|
 |