Custom spawn question.

If something doesn't fit in any other forum then post it here.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
jcbrello
Posts: 59
Joined: Fri Sep 15, 2006 9:27 pm

Custom spawn question.

Post 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.
User avatar
Enforcer
L2j Veteran
L2j Veteran
Posts: 53
Joined: Mon Sep 26, 2005 10:49 pm
Contact:

Post 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 :)
jcbrello
Posts: 59
Joined: Fri Sep 15, 2006 9:27 pm

Post by jcbrello »

Perfect,

Thanks for the responce :)
Fulminus
L2j Veteran
L2j Veteran
Posts: 1554
Joined: Mon Oct 10, 2005 6:49 pm

Post 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.
I'm a joyful, merriful, playful, curious, young, little elf!!! :-)
I'm also a High(tech) Elf, (computer) wiz!
jcbrello
Posts: 59
Joined: Fri Sep 15, 2006 9:27 pm

Post 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?
Fulminus
L2j Veteran
L2j Veteran
Posts: 1554
Joined: Mon Oct 10, 2005 6:49 pm

Post 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.
I'm a joyful, merriful, playful, curious, young, little elf!!! :-)
I'm also a High(tech) Elf, (computer) wiz!
kadar
L2j Veteran
L2j Veteran
Posts: 152
Joined: Sun Apr 10, 2005 1:34 am

Post by kadar »

ID# 90500 is a usable ID by the client?
Fulminus
L2j Veteran
L2j Veteran
Posts: 1554
Joined: Mon Oct 10, 2005 6:49 pm

Post 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).
I'm a joyful, merriful, playful, curious, young, little elf!!! :-)
I'm also a High(tech) Elf, (computer) wiz!
jcbrello
Posts: 59
Joined: Fri Sep 15, 2006 9:27 pm

Post 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.
Medwise
Posts: 12
Joined: Wed Mar 08, 2006 8:23 pm
Location: west usa
Contact:

Post 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!!
jcbrello
Posts: 59
Joined: Fri Sep 15, 2006 9:27 pm

Post 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?]
jcbrello
Posts: 59
Joined: Fri Sep 15, 2006 9:27 pm

Post 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
Fulminus
L2j Veteran
L2j Veteran
Posts: 1554
Joined: Mon Oct 10, 2005 6:49 pm

Post 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
I'm a joyful, merriful, playful, curious, young, little elf!!! :-)
I'm also a High(tech) Elf, (computer) wiz!
jcbrello
Posts: 59
Joined: Fri Sep 15, 2006 9:27 pm

Post 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,
Post Reply