Register for your free account! | Forgot your password?

You last visited: Today at 11:24

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

Advertisement



[LOTF] Custome NPC

Discussion on [LOTF] Custome NPC within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
L1nk1n*P4rK's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 303
Received Thanks: 39
[LOTF] Custome NPC

Hello Guy's.Here is a new script for you!
What Is Do?
Is ask you a question and you will need to answer.


First Step:
Search For if (CurrentNPC == 7500)

And ABOVE it add:
Code:
if (CurrentNPC == 2011) //PoleNPC
                            {
                                SendPacket(General.MyPackets.NPCSay("Hello.I'm Labici Danut (ZuZu) and I talk to you via this NPC."));
                                SendPacket(General.MyPackets.NPCSay("I want to rate this server to the next category."));
                                SendPacket(General.MyPackets.NPCSay("If you are new in ShadowCO please rate it later (after 2 days)."));
                                SendPacket(General.MyPackets.NPCLink("Codes", 1));
                                SendPacket(General.MyPackets.NPCLink("Drop", 2));
                                SendPacket(General.MyPackets.NPCLink("Quests", 3));
                                SendPacket(General.MyPackets.NPCSetFace(30));
                                SendPacket(General.MyPackets.NPCFinish());
                            }
Second Step:
Search Again if (CurrentNPC == 7500)
And ABOVE add

Code:
 if (CurrentNPC == 2011) //PoleNPC - Drops
                            {
                                if (Control == 2)
                                {
                                    itemtosee = "";
                                    SendPacket(General.MyPackets.NPCSay("Please Rate my Drops!"));
                                    SendPacket(General.MyPackets.NPCSay("What are Drops? Are all the items droped by monsters.Please answer true!"));
                                    SendPacket(General.MyPackets.NPCSay("So if you have 5/6 days in ShadowCo please rate my Drops from 1 to 10"));
                                    SendPacket(General.MyPackets.NPCLink2("Rate:", 6));
                                    SendPacket(General.MyPackets.NPCSetFace(0));
                                    SendPacket(General.MyPackets.NPCFinish());
                                }
                                if (Control == 6)
                                {

                                    for (int i = 14; i < 14 + Data[13]; i++)
                                    {
                                        itemtosee += Convert.ToChar(Data[i]);
                                    }

                                    SendPacket(General.MyPackets.NPCSay("Are you sure you want to give '" + itemtosee + "'?"));
                                    SendPacket(General.MyPackets.NPCLink("Yes.", 7));
                                    SendPacket(General.MyPackets.NPCLink("No.", 2));
                                    SendPacket(General.MyPackets.NPCLink("Cancel.", 255));
                                    SendPacket(General.MyPackets.NPCSetFace(0));
                                    SendPacket(General.MyPackets.NPCFinish());
                                }
                                if (Control == 7)
                                {
                                    System.IO.StreamWriter ts = new System.IO.StreamWriter("./Extras/RateDrops.txt", true);
                                    ts.WriteLine(itemtosee + " - Submitted by: " + MyChar.Name + " at: " + DateTime.Now);
                                    ts.Flush();

                                    SendPacket(General.MyPackets.NPCSay("You have rated succesfull!"));
                                    SendPacket(General.MyPackets.NPCLink("Cool.", 255));
                                    SendPacket(General.MyPackets.NPCSetFace(0));
                                    SendPacket(General.MyPackets.NPCFinish());
                                }
                            }
                            if (CurrentNPC == 2011) //PoleNPC - Quests
                            {
                                if (Control == 3)
                                {
                                    itemtosee = "";
                                    SendPacket(General.MyPackets.NPCSay("Please Rate my Quest's!"));
                                    SendPacket(General.MyPackets.NPCSay("What are Quest's? Are all the misions taked from NPC's."));
                                    SendPacket(General.MyPackets.NPCSay("So if you have 5/6 days in ShadowCo please rate my Codes from 1 to 10"));
                                    SendPacket(General.MyPackets.NPCLink2("Rate:", 8));
                                    SendPacket(General.MyPackets.NPCSetFace(0));
                                    SendPacket(General.MyPackets.NPCFinish());
                                }
                                if (Control == 8)
                                {

                                    for (int i = 14; i < 14 + Data[13]; i++)
                                    {
                                        itemtosee += Convert.ToChar(Data[i]);
                                    }

                                    SendPacket(General.MyPackets.NPCSay("Are you sure you want to give '" + itemtosee + "'?"));
                                    SendPacket(General.MyPackets.NPCLink("Yes.", 9));
                                    SendPacket(General.MyPackets.NPCLink("No.", 3));
                                    SendPacket(General.MyPackets.NPCLink("Cancel.", 255));
                                    SendPacket(General.MyPackets.NPCSetFace(0));
                                    SendPacket(General.MyPackets.NPCFinish());
                                }
                                if (Control == 9)
                                {
                                    System.IO.StreamWriter ts = new System.IO.StreamWriter("./Extras/RateQuests.txt", true);
                                    ts.WriteLine(itemtosee + " - Submitted by: " + MyChar.Name + " at: " + DateTime.Now);
                                    ts.Flush();

                                    SendPacket(General.MyPackets.NPCSay("You have rated succesfull!"));
                                    SendPacket(General.MyPackets.NPCLink("Cool.", 255));
                                    SendPacket(General.MyPackets.NPCSetFace(0));
                                    SendPacket(General.MyPackets.NPCFinish());
                                }
                            }
Last Step:
Go In You Server Folder And Add:
1.Folder Called Extras
2.And Now In Extras Add RateCodes.txt,RateQuests.txt and RateDropes.
L1nk1n*P4rK is offline  
Old 03/28/2009, 14:45   #2
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
Funny how you took the NPCLINK2 part from KinshiKO, how lame, cant even create your own scripts for your own NPC.
/Failure on a high level
_Emme_ is offline  
Old 03/28/2009, 14:49   #3
 
elite*gold: 0
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 154
NpcLink2()?
That's for input rather than output text options.
tao4229 is offline  
Old 03/28/2009, 17:45   #4
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
Quote:
itemtosee = "";

for (int i = 14; i < 14 + Data[13]; i++)
{
itemtosee += Convert.ToChar(Data[i]);
}

System.IO.StreamWriter ts = new System.IO.StreamWriter("./Extras/RateQuests.txt", true);
ts.WriteLine(itemtosee + " - Submitted by: " + MyChar.Name + " at: " + DateTime.Now);
ts.Flush();
An exact copy from KinshiCO, actually Kinshi's NPC that allows you to buy a great amount of different items and you can suggest what more that should be added in the shop (Atleast what I remember of)
_Emme_ is offline  
Old 03/28/2009, 19:04   #5
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 912
Why don't people implement the new NPC chat in their server?
Justin (I think) made it; makes it so NPC chat is in one place, rather than two.
I'm pretty sure it was in the source I released.
kinshi88 is offline  
Old 03/29/2009, 19:08   #6
 
L1nk1n*P4rK's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 303
Received Thanks: 39
Yes Was.
And I have much Respect To you and Emme but you dont need to flame about this.
I just was to "revive" LOTF.

The NPC Actions are picked up from your Custome Shop.


My 150th Post
L1nk1n*P4rK is offline  
Reply


Similar Threads Similar Threads
[HELP] Compile error with LOTF(i know LOTF sucks but just help)
06/19/2009 - CO2 Private Server - 3 Replies
It says: Loaded 254 portals. Loaded 1027 NPCs. Loaded 37 mobs. Loaded 11147 items. Loaded 172 mob spawns. System.ArgumentOutOfRangeException: 'minValue' cannot be greater then mxValue. Parameter name : minValue at System.Random.Next<Int32 minValue, Int32 maxValue> at COServer_Project.Mobs.SpawnAllMobs<> in C:\Documents and Settings\Admin\My Documents\COServerProject1\COServerProject\Entitie s.cs:line 207
[Help Request] Custome upgrade glow
05/13/2009 - Dekaron Private Server - 3 Replies
Hey guys, I'm not asking anyone to hand me what I need. Just maybe some insight on what could possibly be wrong. I'm trying to create a new glow effect for my weapons. I added in +10 for my server and wanted something to look a little different. I already editted the levelup/eff_upgrade dds files to the color I want. I editted the effectscene and effectdata files as well, just not sure if I put in what I needed, because obviously something is wrong. If anyone has any ideas on what I can...
[Release] Custome NPC's
12/21/2008 - CO2 PServer Guides & Releases - 16 Replies
Hello Noob's! Do you want to have a NPC what can read your name and say something like: "Hello ZuZu Wanna..." Than just follow my guide are you will learn very fast! The Secret Script Is This ......."Text" + MyChar.Name + "Text"); Now Lets Make an NPC: if (CurrentNPC == XXXX) {
Ascent Server Custome Adds/Infos
03/01/2008 - WoW Private Server - 9 Replies
Hier sind nen paar Sachen aus meiner früheren Zeit als Admin, aber da ich sie nicht mehr brauche, stelle ich sie euch zur Verfügung. 99 % created by Chrome! (except 2 1/2 boss scripts^^) Dateien auf deutsch!! Files in german!! Just german + english readme ;) Deutsch:



All times are GMT +2. The time now is 11:24.


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