Page 1 of 1
Custom spawn question.
Posted: Sat Nov 04, 2006 4:55 pm
by jcbrello
Heya all,
I have a easy question for you guys,
If I was to GM spawn, lets say Antharas in a field somewhere.
Then I Custom Adjusted his loot table, Defence, HP and MP ect. to allowl for a small group of people to be able to kill.
Would it in turn mess up the Normal Antharas stats?
or is every mob once spawned, on a individual table reguarless if theres the same mob somewhere else in the game?
I'd like to Spawn a mob , Adjust the Tables, then Delete it once the Event is over.
Is this possible?
Thanks for your time guys.
Posted: Sat Nov 04, 2006 11:09 pm
by Enforcer
If you change stats for Antharas then each instance of him will be altered.
Every mob have a unique ID and spawns are instances of him (clones).
But you can do else.
Choose a different NPC that is not spawned (dunno, let's say ID xxxx as example, just find a existing unspawned mob ) and edit his name= Antharas, idTemplate=29019 (Antharas ID), serverSideName=1.
Then edit all stats as you wish.
Then spawn NPC ID xxxx and you'll have a modded Antharas wile original one is untouched

Posted: Mon Nov 06, 2006 10:33 pm
by jcbrello
Perfect,
Thanks for the responce

Posted: Tue Nov 07, 2006 3:03 pm
by Fulminus
Just as enforcer said, except it's not really necessary to find an existing unspawned NPC. You can also create your own NPC. In this case, you just need to make sure that the id is unique (not used by any other NPCs). Something in the 90k range will do. Then edit all the stats and do the stuff that Enforcer said (idTemplate, name, serversidename). Spawn it and you'll be ready.
Oh...one more thing: People who kill your custom copy of Antharas will not be able to level up soulcrystals or do any quests, etc. Also, if you need your custom antharas to use the skills of Antharas, you'll have to add them, too (basically, copy the npc_skills that are for Antharas's id, duplicate them, and change the npc_id from the skills to the id of your new Antharas npc.
Basically, this will not be "the" Antharas. It will just be some other mob that looks like Antharas. Just like there exist many mobs that look like "Bloody Queen" and many mobs that look like "Porta" but each are totally different from each other in functionality.
Posted: Fri Nov 10, 2006 7:52 pm
by jcbrello
ok, tried it out today,
I made a new NPC,
id = 90500
idTemplate= 29019
name= Nagafen (tried Antharas also)
Serversidename= 1
serversidetitle= 0
class= Monster2.antharas (tried Monster2.nagafen also)
the rest of the stats were copied from the "Real" antharas
when I try to spawn the new dragon in game using the GM Spawn NPC button and ID# 90500, I get this message:
Target not in game.
am I missing something?
Posted: Sat Nov 11, 2006 1:49 am
by Fulminus
If you copied all of the rest from Antharas, then you probably also copied the "L2Boss" npc type, too. Bosses have kind of special handling. Try making him an L2Monster instead.
Posted: Sat Nov 11, 2006 1:58 am
by kadar
ID# 90500 is a usable ID by the client?
Posted: Sat Nov 11, 2006 2:04 am
by Fulminus
kadar, as far as I know, the client doesn't see the npc.id at all. It's only sent info from the npc.idTemplate. Therefore, as long as you use a good idTemplate, you can add any kind of custom ids that you like. Well, at least that was the idea and how the first C5 sql worked (using no longer usable C4 ids with correct C5 ids in idTemplate).
Posted: Sat Nov 11, 2006 4:37 pm
by jcbrello
Ok I have tried L2monster, I have tried ID#s down to 37000.
I changed the template ID# from a 20001 (gremlin) to 29019 (antharas)
and It worked as a Polymorf for the gremlin,
but as for creating the "New" NPC data 90500 it seems to be missing a connection somewhere else,
I still Get Target not in game
I'll keep pluging away at it, and in worse case I'll use Enforcers way seeing it works.
do you know if there is a npc monster thats in the game, and not used that could be used for the Template ID switch till we get this figured out?
Thanks a ton for your help on this guys.
much appreciated.
Posted: Sat Nov 11, 2006 11:34 pm
by Medwise
This works perfectly!!
made a new entry in npc 60500 and used vampire warrior templateid. set server side name and title.
Created a droplist and spawnlist for 60500
now i can make my own mobs from any templateid in game!
gs revision 166
dp revision 2300
Thanks fulminus this is soo much better than trying to find unused npcs!!
Posted: Sun Nov 12, 2006 12:22 am
by jcbrello
Ahhh,
ok now I know how to do it,
but DBTools wont let me make a new row in Spawnlist or droplist .
the last field is empty but it has a * in it and says "Auto" but if I add all the info to that row, it doesnt save.
Im such a noob....
but im learning hehe.
anyone know how to make a new row in DBtools?]
Posted: Mon Nov 13, 2006 8:11 pm
by jcbrello
ok got the Table edit save figured out, everything is saving correctly now.
but i Still get Target not in game,
heres what I did,
I created the NPC table
I created a Drop table for it.
and I created a Spawn table for it.
NPC:
ID = 90500
IDtemplate = 29019
Name = Antharas
serversidename = 1
title =
serversidetitle = 0
class = Monster2.antharas
collicion_radius = 300.00
collision_hight = 300.00
level = 60
sex = Male
type = L2Monster
the rest is direct copy from the real Antharas line for line.
Droplist :
mobID = 90500
itemID = 1466
min = 1
max = 1
sweep = 0
Chance = 20
Spawnlist:
ID = 90500
location = Town of Schuttgart
count = 1
npc_templateID = 90500 (tried 29019 also ) this and the first ID are somwhat confusing to me, not sure what one to use so I have tried both.
locx = 30000
locy = -30000
locz= -3000
randomx = 0
randomy = 0
heading = 42000
respawn_delay = 216000
loc_id = 0
periodOfDay = 0
I reboot the server, and then when I try to spawn him in game I get "Target not in game"
I Know im problably doing something wrong thats pretty simple.
and I feel like a dummy asking for help, but im running out of options trying to figure this out on my own ..
thanks for your patience with me
Posted: Mon Nov 13, 2006 10:22 pm
by Fulminus
Try flipping ServerSideTitle to 1 as well. While it's 0, the client attempts to find that NPC and write a title for it. Since the custom NPC isn't recognized by the client, perhaps it's what is causing your problems...it's only a guess though...
good luck
Posted: Sun Dec 03, 2006 1:25 am
by jcbrello
Sorry been busy couldnt reply till now, but I finally got it to work, now my custom created mobs are working

thanks for the help,