You will need to write a npc spawn function... There is one for CoEmu in my random treasure hunt quest (both spawning and removal including other checks/random spawn locations) but that was for coemu... still a good example though.
Basically you will need to create a function that has inputs for mesh/id number/name/map/x/y for the npc you want to spawn and then use your npc spawn packet (look at where npcs are being loaded from the database in your source and then use that to find where your actual npc spawn code is.
From what I remember the easiest way to keep track of it would be to create a dictionary or hashtable to store the bluemouse Id/Uid's.. that way they are easier to track how many you have and remove them as needed (cause UID generation is random and that's one of the easy ways to remove the npc)
Then write another one for removal. I think it's just a matter of sending the entity remove packet, removing it from the servers npc dictionary (and bluemouse dictionary if you use that as well) and then update clients that were nearby it when it was removed.
Then just do your normal scripting for the npc and run a little thing on server startup to generate the bluemice where you want them.
Ooh and a random coord system to control where the bluemice can spawn in the mines (I have released that already in both it's own thread (random scrolls) and in my treasure hunt system... again.. coemu though) Or if you want fully random coords just write a random location system using the dmap checker.. those are lots of fun ^^
Mob Spawning 01/02/2016 - Cabal Private Server - 5 Replies Hello communty,
Can one tell me how I can create in the game mobs. wenns goes with the id's
Thanks in advance than in!
MFG: <ZeroCool>
GERMAN:
Hallo kann mir vielleicht einer sagen wie ich im game mob spawne? und hat vielleicht jemand die idīs
Danke als im vorraus."!"
mass spawning 03/20/2010 - Dekaron - 9 Replies what crespo dungeon r yall mass spawning on
a b or c?
im lvl 100 now. not sure which one to go to for the fastest kills/exp.
also when i play on my laptop gamecrashes in the middle of doing the dungeon idk why..
Need Spawning 12/19/2009 - Dekaron - 13 Replies Hi Guys
I Need Spawning Code :confused:
[Help] Spawning NPC Via Command. 08/26/2009 - CO2 Private Server - 10 Replies I've been working at this for a bit and I'm at a loss as to why this wont work. I'm essentially trying to make an event NPC that will appear when I type in "/event on" and then disappear when I type "/event off". At the moment nothing will show up unless the type of NPC is a guild gate (I've tried like 5 or 6 different IDs), and it wont disappear if I type "/event off", however if I leave the area and come back the gate is gone. I'm assuming it has something to do with not storing anything...
Db spawning???? 03/17/2008 - Conquer Online 2 - 2 Replies Hi! I have 117 archer on eagle server, and i want to know , when the db spawns and what places ( min maks, thunder apes, sand elfs etc.) When is the server maintenances and how many hours i need to wait for db spawn on the right place:) Waiting for replies. Thank you.