Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 21:16

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

Advertisement



Make A NPC That Moves Around The Map

Discussion on Make A NPC That Moves Around The Map within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
KingGannon's Avatar
 
elite*gold: 0
Join Date: Oct 2005
Posts: 18
Received Thanks: 2
Question Make A NPC That Moves Around The Map

This is for the Redux source, client v5065.

The idea is to have an NPC that moves every time you talk to the NPC. The best example of that would be the Blue Mouse NPC.

I can handle the dialogues and the item exchanges without any issues just need to get the NPC to move.

I seen other sources but every one of them is not something that can be easily followed.

Correct me if this is wrong:
The basic idea is to locate the NPC in the database and the game client maps and the remove that NPC and then spawn the NPC at the a new map and location. I'm not sure where to start and how to code this into the source properly. I got no template to follow for references.

Any help would be appreciated.
KingGannon is offline  
Old 11/08/2022, 16:07   #2



 
Energetic(H)'s Avatar
 
elite*gold: 11
Join Date: Feb 2016
Posts: 105
Received Thanks: 19
contact me via Discord will help you dont worry
Energetic(H) is offline  
Old 11/08/2022, 18:19   #3
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 7,913
Received Thanks: 3,993
Quote:
Originally Posted by Energetic(H) View Post
contact me via Discord will help you dont worry
Please don't take people off-site. It's better to post solutions here for everyone to see and contribute towards.

Quote:
Originally Posted by KingGannon View Post
This is for the Redux source, client v5065.

The idea is to have an NPC that moves every time you talk to the NPC. The best example of that would be the Blue Mouse NPC.

I can handle the dialogues and the item exchanges without any issues just need to get the NPC to move.

I seen other sources but every one of them is not something that can be easily followed.

Correct me if this is wrong:
The basic idea is to locate the NPC in the database and the game client maps and the remove that NPC and then spawn the NPC at the a new map and location. I'm not sure where to start and how to code this into the source properly. I got no template to follow for references.

Any help would be appreciated.
I think it depends. If you want the NPC to have a dynamic location for just that player, then that can all be done in memory (I don't think you'll really care about the location persisting across restarts unless it's related to a quest). Otherwise, yeah. You'll need to save the new location to the database when you move it. So, what's the scope and purpose of the NPC?
Spirited is offline  
Old 11/09/2022, 00:10   #4



 
Energetic(H)'s Avatar
 
elite*gold: 11
Join Date: Feb 2016
Posts: 105
Received Thanks: 19
Quote:
Originally Posted by Spirited View Post
Please don't take people off-site. It's better to post solutions here for everyone to see and contribute towards.



I think it depends. If you want the NPC to have a dynamic location for just that player, then that can all be done in memory (I don't think you'll really care about the location persisting across restarts unless it's related to a quest). Otherwise, yeah. You'll need to save the new location to the database when you move it. So, what's the scope and purpose of the NPC?
i mean to make it with myself fang to him like anydesk and itold him discord to contact with avocie call to explain what i will do for him for free and help him better and faster way
Energetic(H) is offline  
Old 11/09/2022, 07:40   #5
 
KingGannon's Avatar
 
elite*gold: 0
Join Date: Oct 2005
Posts: 18
Received Thanks: 2
Quote:
Originally Posted by Spirited View Post
Please don't take people off-site. It's better to post solutions here for everyone to see and contribute towards.
I will have to agree with Spirited and post the solutions here for everybody to see and contribute towards. So if anyone who wants to work on the Redux source come across a similar issue they can search up like this. Assuming this thread becomes a solved problem.


Quote:
Originally Posted by Spirited View Post
I think it depends. If you want the NPC to have a dynamic location for just that player, then that can all be done in memory (I don't think you'll really care about the location persisting across restarts unless it's related to a quest). Otherwise, yeah. You'll need to save the new location to the database when you move it. So, what's the scope and purpose of the NPC?
My only concern is a dynamic location I don't believe it's necessary to save the new location into the database when the NPC gets moved.
So far, the only thing I have in mind is an NPC to functions similar to the Blue Mouse NPC. It's mainly quest related where you talk to the NPC and it changes location. If you have an item it performs it's exchange otherwise it will taunt you and move to another map another location.

If you want me to be more specific about the NPC then it's a Blue Mouse + Richard the Thief (I don't know if anyone here even remembers this NPC) for old school Conquer quests.

As for custom NPC it's one that moves across Lab and another that moves across the Adventure Zone Maps. It's more for Taos only quests where they can exchange either Lab or other rare loots for exp (Taos takes ages to level up and most of their level are in TG) and/or WaterTao warps for moving across the Lab 1 to Lab 4 without the need for tokens. As well as the similar idea for moving around the Adventure Zones.
KingGannon is offline  
Old 11/09/2022, 08:10   #6
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 7,913
Received Thanks: 3,993
Quote:
Originally Posted by KingGannon View Post
I will have to agree with Spirited and post the solutions here for everybody to see and contribute towards. So if anyone who wants to work on the Redux source come across a similar issue they can search up like this. Assuming this thread becomes a solved problem.




My only concern is a dynamic location I don't believe it's necessary to save the new location into the database when the NPC gets moved.
So far, the only thing I have in mind is an NPC to functions similar to the Blue Mouse NPC. It's mainly quest related where you talk to the NPC and it changes location. If you have an item it performs it's exchange otherwise it will taunt you and move to another map another location.

If you want me to be more specific about the NPC then it's a Blue Mouse + Richard the Thief (I don't know if anyone here even remembers this NPC) for old school Conquer quests.

As for custom NPC it's one that moves across Lab and another that moves across the Adventure Zone Maps. It's more for Taos only quests where they can exchange either Lab or other rare loots for exp (Taos takes ages to level up and most of their level are in TG) and/or WaterTao warps for moving across the Lab 1 to Lab 4 without the need for tokens. As well as the similar idea for moving around the Adventure Zones.
Yeah, there's definitely no need to save that to the database. I think the majority of your changes are going to be in the Map class; though, I've never taken a close look at Redux's map system before. It's a little restrictive for adding dynamic spawns, but you could add an override collection of object locations to the Map class and have QueryScreen check against that. Then maybe you can add an InsertLocationOverride? Just make sure you remove player specific overrides when they disconnect. Another option could be to just move it for everybody and not worry about adding a new collection.
Spirited is offline  
Reply


Similar Threads Similar Threads
[Release]Neue Map by KiLL MoveS. und snapz
12/22/2013 - Metin2 PServer Guides & Strategies - 40 Replies
Heyho, es ist an der Zeit, dass ich nun auch endlich mal was beitrage. Also release ich eine Map, die in Zusammenarbeit mit KiLL MoveS. entstanden ist! Es ist eine simple 1x1 Map, für welchen Zweck Ihr sie gebraucht ist euch überlassen. KiLL MoveS. hat die height und tile erstellt, ich habe mich um die Minimap und die areadata (Objekte) gekümmert. Ein Video: YouTube - Neue Map by KiLL MoveS & snapz Ich bin noch relativ neu auf dem Gebiet des Map Editing, aber ich hoffe, dass einige...
[Release] 3x3 Map by KiLL MoveS.
09/05/2013 - Metin2 PServer Guides & Strategies - 17 Replies
Hi, da ich so lange keine Maps mehr pub gemacht habe, dachte ich mir, dass es wieder zeit wird ;) Neue Besonderheiten: 3x3 Map Da sehr gefragt, habe ich mich ran gesetzt und auch endlich eine Minimap angefertigt. (PS. SIND MEINE EIGENEN MINIMAP TEXTUREN. HABE SIE SELBST PER PHOTOSHOP ERSTELLT, DA ICH KEINE FERTIGEN NEHMEN WOLLTE. BÄUME SIND AUCH AUF DER MINIMAP EINGEZEICHNET)
[Release] Map by Kill MoveS.
12/15/2010 - Metin2 PServer Guides & Strategies - 17 Replies
Hallo epvp, wird mal wieder Zeit das ne map pub kommt. Hier ein Vid: YouTube - New Map by Kill MoveS. good & evil (Bitte bis zum Ende schauen, nicht gleich Anfang sehen und sagen scheiße) und sry beim Aufnehmen ist der Nebel stärker geworden oO
New Map by Kill MoveS.
12/07/2010 - Metin2 PServer Guides & Strategies - 19 Replies
Ich habe hier ne neue Level-Map gestaltet. Es ist eine art Wüste, deswegen auch nicht all zu viele Objekte drinnen. Aber Wenn ihr genug Mobs drauf tut wird sie sehr schnell voller aussehen. Was hat die map? -Die map hat zu 100% keine Risse. -Die Texturen sind gut platziert worden. -Ein Höhlen Eingang falls ihr da eine Verbindung zum nem Dungeon oder etwas ähnlichem machen wollt. -2x2 Map -Relativ gut abgegrenzt -Sieht sehr natürlich aus



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


Powered by vBulletin®
Copyright ©2000 - 2023, 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 ©2023 elitepvpers All Rights Reserved.