Register for your free account! | Forgot your password?

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

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

Advertisement



[Help] Need Help at a NPC code

Discussion on [Help] Need Help at a NPC code within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
_MaryJuana's Avatar
 
elite*gold: 66
Join Date: Feb 2008
Posts: 947
Received Thanks: 495
[Help] Need Help at a NPC code

hello,

i made a daily quest at my private server and i wanted to know if its possible to set it up that the quest only can be made 3 times each day. Does anyone know how to code that? would be nice to get some answers and the second thing is that i want to make a npc which gives new players a "special pack" which they can only claim one time.

ps. im working with version 5017

ty anyways
_MaryJuana is offline  
Old 06/17/2010, 17:14   #2
 
elite*gold: 0
Join Date: May 2010
Posts: 630
Received Thanks: 130
give me an example on a npc, then ill make the special packet thing.
I just dont remember the sendpakcet thing.
.Summer is offline  
Old 06/17/2010, 17:28   #3
 
_MaryJuana's Avatar
 
elite*gold: 66
Join Date: Feb 2008
Posts: 947
Received Thanks: 495
here: xD

Code:
                        if (CurrentNPC == 9004)
                        {
                            SendPacket(General.MyPackets.NPCSay("Hello. Do you want to be a part of our Conquer Event?! Just go outside TwinCity and fight against Pheasants. They will drop White, Red, and Pink Roses. Come back if you got the Roses and i will make 99Roses for Lily!"));
                            SendPacket(General.MyPackets.NPCLink("OK. cool", 1));
                            SendPacket(General.MyPackets.NPCLink("Nope", 2));
                            SendPacket(General.MyPackets.NPCSetFace(30));
                            SendPacket(General.MyPackets.NPCFinish());
                        }
Code:
                        if (CurrentNPC == 9004)
                        {
                            if (Control == 1)
                            {
                                if (MyChar.InventoryContains(723453, 1))
                                if (MyChar.InventoryContains(723454, 1))
                                if (MyChar.InventoryContains(723455, 1))
                                        {
                                            MyChar.RemoveItem(MyChar.ItemNext(723453));
                                            MyChar.RemoveItem(MyChar.ItemNext(723454));
                                            MyChar.RemoveItem(MyChar.ItemNext(723455));
                                            MyChar.AddItem("723459-0-0-0-0-0", 0, (uint)General.Rand.Next(36457836));
                                            SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs));
                                        }
                                        else
                                        {
                                            SendPacket(General.MyPackets.NPCSay("Sorry, I think you forgot something!."));
                                            SendPacket(General.MyPackets.NPCLink("Ohh I see.", 255));
                                            SendPacket(General.MyPackets.NPCSetFace(30));
                                            SendPacket(General.MyPackets.NPCFinish());
                                        }
                            }
                        }
_MaryJuana is offline  
Old 06/17/2010, 17:34   #4
 
elite*gold: 0
Join Date: May 2010
Posts: 630
Received Thanks: 130
nevermind about.
use this as reference to it
.Summer is offline  
Old 06/17/2010, 17:52   #5
 
_MaryJuana's Avatar
 
elite*gold: 66
Join Date: Feb 2008
Posts: 947
Received Thanks: 495
i try it now but the word DataBase is wrong =/
_MaryJuana is offline  
Old 06/17/2010, 18:03   #6
 
elite*gold: 0
Join Date: May 2010
Posts: 630
Received Thanks: 130
make sure to check if you use internaldatabase, externaldatabase or database
.Summer is offline  
Old 06/17/2010, 18:08   #7
 
_MaryJuana's Avatar
 
elite*gold: 66
Join Date: Feb 2008
Posts: 947
Received Thanks: 495
i can use internet and external database but which one should i use lol?xD
_MaryJuana is offline  
Old 06/17/2010, 18:25   #8
 
elite*gold: 0
Join Date: May 2010
Posts: 630
Received Thanks: 130
change DataBase to what you use.
just check any other database uses in source.
do they use Internal, External etc.

ex. the code use DataBase.
Other codes in ur source use ExternalDataBase.
Change DataBase to ExternalDataBase
.Summer is offline  
Reply


Similar Threads Similar Threads
B> DriftCity CBS Code | S> War Rock Code / Bounty Bay Code etc.
10/05/2010 - Trading - 1 Replies
Hi, wie schon im Titel beschrieben. In der CBS vom November gab es Bonusodes für mehrere Spiele. Ich benötige DriftCity Codes. Kann sonst für alle anderen Spiele die Codes biten, einige auch doppelt. Hier eine Liste der Spiele und Bonusaktionen: - (2x) War Rock - (2x) War of Titans - (2x) World of Warcraft - (1x) Warhammer Online - (1x) Bounty Bay online
Gebe Vip Hack Suche Storm Code oder 5k Dinar Code
07/25/2010 - WarRock Trading - 4 Replies
blubb
WTB: Japanischer/Chinesicher Guild Wars Trial-Code und EoTn Code
02/08/2010 - Guild Wars Trading - 5 Replies
Hallo, Wie schon oben in der beschreibung steht suche ich Japanischer/Chinesicher Trial-Code + EoTn oder die einzelnen Codes! Ich würde in Platin/Ektos/ZkeYs zahlen (allerdings nur mit Treuhandhändler), man weiss ja nie was einem Verkauft wird :P. Bitte so schnell wie möglich melden, wen einer es haben sollte.



All times are GMT +2. The time now is 23:06.


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.