Register for your free account! | Forgot your password?

You last visited: Today at 06:15

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Spawn NPC 5165

Discussion on Spawn NPC 5165 within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
ktamer's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 99
Received Thanks: 35
Spawn NPC 5165

I've been working on a quest that upon command sends players to a map where they must kill a "Super" monster. Which drops an item to get a prize. And what I haven't been able to figure out is how to spawn the "Prize NPC" on command then have him go away after the dialog.

Also if possible how would I teleport ALL players in the map to another map? Without asking them.

Any help in the right direction would be appreciated. Thx.
ktamer is offline  
Old 03/18/2010, 02:44   #2
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,379
Adding the npc is simple enough, look at how it's loaded from the database when the server starts and replicate it for this (make sure to update local clients so they can see it)


Then once it's used, remove it from the loaded npcs and update clients again (or else it will still show ingame)


As for teleporting all players, do a foreach loop through all connected clients and then just say if their map == the one you want to tele from, teleport them to specified map/coords (you can always use some random coords or a spread so they aren't all stacked on 1 spot)
pro4never is offline  
Thanks
1 User
Old 03/18/2010, 02:52   #3
 
ktamer's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 99
Received Thanks: 35
I appreciate the assistance on tele the chars. So if there's no way to remove the NPC w/out restarting can I somehow block it out from other characters? I tried using a similar method used by the Lottery but that only limits 1 Client side and I couldn't get it to block out other chars. Maybe I can try locking out the item required by making the monster spawn at the same time the event starts?
ktamer is offline  
Old 03/18/2010, 02:59   #4
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,379
You can do monster spawns at the start of event using a spawn function (you could try converting the one I released for 5095) and yes, you can add/remove npcs from the server without restarting the server in the way I said. There are basically 2 steps to it (assuming lotf does it the same)

The source stores loaded npcs in a dictionary (or some type of data structure) and then spawns them to the server... You can do that with a specific one while it's running, I'd use how they are loaded as an example though. Again I released something similar for coemu but lotf will be quite different. You will still want to update spawns to all local chars or they may not see it when it is spawned.

Same with removal, make sure to update clients or they will still be able to see (and possibly use) the npc after the event ends.
pro4never is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Hi I need 5165 source act like Real Co 5165
09/15/2010 - CO2 Private Server - 4 Replies
I need a A source 5165 that all skills is available specially rb char like nin-nin-nin counterKill and nin-war-nin reflect and more, and also the attack rates should be fair not like +8 set can 1 hit +12 set, and also maybe the client, I need to study to make it in 5200+ source. I love to trade it with my cofarmer account VIP i have use it for 5 days only. PM or contact me in skype :marlyandedsel
Spawn ID?
09/06/2009 - Metin2 Private Server - 7 Replies
hat einer spwan id pls hier rein posten
lab 2 spawn
07/19/2006 - Conquer Online 2 - 2 Replies
i was just wandering where is the best spawn to lvl archer in lab 2 or the best spawn of agile rat
MZ Spawn Map?
04/27/2006 - Conquer Online 2 - 23 Replies
i just wanna no does any1 have a map of where the MetDove spawns in MZ. Thx In Advance



All times are GMT +1. The time now is 06:16.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.