Register for your free account! | Forgot your password?

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

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

Advertisement



Does someone knows how to code NPCs in ConquerServer_v2??

Discussion on Does someone knows how to code NPCs in ConquerServer_v2?? within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
mujake's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 494
Received Thanks: 54
Unhappy Does someone knows how to code NPCs in ConquerServer_v2??

i downloaded conquerserver_v2 and i set it up,but i want to learn to code NPC in it and i need an example for it .Can someone help me?
mujake is offline  
Old 06/08/2011, 22:59   #2
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,162
Noone knows how to code NPCs, we've been working on it for almost 14 years now. Will let you know when we finally figure out how to do.

No, seriously. If you want something done, learn how to do it yourself. There are (I think?) plenty of examples in the source itself, use them as references, or look at other sources available and use those as references.
_Emme_ is offline  
Thanks
2 Users
Old 06/08/2011, 23:14   #3

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
You must be blind or something if you can't find the scripts for NPCs to use as an example.
Here's one:
Code:
' By: Wolf
' Npc: 10050
' Name: Conductress

Imports System
Imports ConquerScriptLinker

Partial Public Class NpcEngine
    Public Shared Sub Teleport(ByRef dlg As String(), ByVal cmd As String)
        If Player.Money >= 100 Then
            Player.Money -= 100
            Command(cmd)
        Else
            ReDim dlg(1)
            dlg(0) = "TEXT You do not have 100 silvers, get rich bitch."
            dlg(1) = "OPTION-1 Well, fuck you, I'll walk."
        End If
    End Sub
    Public Shared Sub Conductress_MA()
        Dim dlg As String() = Nothing
        Select Case OptionID
            Case 0
                ReDim dlg(2)
                dlg(0) = "TEXT Would you like to leave the market?"
                dlg(1) = "OPTION1 Yes"
                dlg(2) = "OPTION-1 No thanks"
            Case 1
                Command("@mm " & Player.LastMapID.ToString() & " " & Player.LastX.ToString() & " " & Player.LastY.ToString())
        End Select
        If Not dlg Is Nothing Then
            Dialog(dlg)
        End If
    End Sub
    Public Shared Sub Conductress_TC()
        Dim dlg As String() = Nothing
        Select Case OptionID
            Case 0
                ReDim dlg(6)
                dlg(0) = "TEXT Where are you heading for? I can teleport you for the price of 100 silver."
                dlg(1) = "OPTION1 Phoenix Castle"
                dlg(2) = "OPTION2 Desert City"
                dlg(3) = "OPTION3 Ape Mountain"
                dlg(4) = "OPTION4 Bird Island"
                dlg(5) = "OPTION5 Mine Cave"
                dlg(6) = "OPTION6 Market"

            Case 1
                Teleport(dlg, "@mm 1002 958 555")
            Case 2
                Teleport(dlg, "@mm 1002 069 473")
            Case 3
                Teleport(dlg, "@mm 1002 555 957")
            Case 4
                Teleport(dlg, "@mm 1002 232 190")
            Case 5
                Teleport(dlg, "@mm 1002 053 399")
            Case 6
                Teleport(dlg, "@mm 1036 213 195")
        End Select

        If Not dlg Is Nothing Then
            Dialog(dlg)
        End If
    End Sub
End Class
Kiyono is offline  
Thanks
2 Users
Old 06/08/2011, 23:59   #4
 
Bаne's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 2,334
Received Thanks: 1,777
I have been studying C# for 4 weeks and still have'nt looked at CO2's source.....mabey you should think about it...
Bаne is offline  
Old 06/09/2011, 06:37   #5
 
mujake's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 494
Received Thanks: 54
Kiyono, after the i posted the thread i-ve found the npcs,and i've read the reply from other people on that thread and i deleted the 100062.vb the NPC that was stopping all the others.thx don't be hard on me cuz i've only used C# on Conquer-Sx and is a big difference between sources.
mujake is offline  
Old 06/09/2011, 09:37   #6
 
mujake's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 494
Received Thanks: 54
any ideea whay i get disconected when i try to use XP skills ?
mujake is offline  
Old 06/09/2011, 10:07   #7
 
elite*gold: 0
Join Date: May 2011
Posts: 1,769
Received Thanks: 756
Quote:
Originally Posted by mujake View Post
any ideea whay i get disconected when i try to use XP skills ?
They aren't coded I think. Not sure.
BaussHacker is offline  
Reply


Similar Threads Similar Threads
[ConquerServer_v2] 5515+ Updated!
10/22/2019 - CO2 PServer Guides & Releases - 416 Replies
Upgraded ConquerServer_v2 to work with the latest Co Patch. This is just the original source code updated to work with the latest TQ client. Which means you will have to code new functions/packets in yourself. There are more packets that need to be updated, so feel free to post them in here and I will update the source. Update 1: -New itemtype.dat extractor (to extract the latest items) -New Shop.dat (works with New/Monk Items) -You can create a Monk (Skills not working yet) -Fixed...
[Help] Explaining npc code in oldcodb (npc.txt) + how to delete npcs
02/05/2012 - CO2 Private Server - 5 Replies
Can anyone help explain to me the code in npc.txt in OLDCODB These are how some of the codes appear: 4 40 1 0 1002 412 366 423 2706 1 0 1002 412 361 44 87 3 0 1036 182 180 185 1086 16 0 1036 230 173 184 1086 16 0 1036 230 177
help ConquerServer_v2 - Hybrids Source .
02/10/2011 - CO2 Private Server - 5 Replies
i want link of ConquerServer_v2 - Hybrids Source 32bit .
[RELEASE]How to code an decent npc with NPCs.txt entry
01/01/2011 - CO2 PServer Guides & Releases - 16 Replies
Ok well I though I would release the basic NPCDialog and how to make an npc with the entry in NPC.txt so here we go Ok so every npc will start of with a #Region npcname and were it says npcname you can change to what ever you want it to be so, next you will have this case 123456: you can change the 123456 with a random number 1-6 digits but we will come back to that so we have this #Region npcname //The name of NPC case 123456: // case number {



All times are GMT +1. The time now is 22:00.


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.