Register for your free account! | Forgot your password?

You last visited: Today at 12:33

  • 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 PServer - Discussions / Questions forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 66
Join Date: Feb 2008
Posts: 916
Received Thanks: 482
[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
 
elite*gold: 66
Join Date: Feb 2008
Posts: 916
Received Thanks: 482
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
 
elite*gold: 66
Join Date: Feb 2008
Posts: 916
Received Thanks: 482
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
 
elite*gold: 66
Join Date: Feb 2008
Posts: 916
Received Thanks: 482
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



« [HELP] DB: "Guild.dat" | Selling WebTemplate »

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 +1. The time now is 12:33.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

BTC: 3KeUpz52VCbhmLwuwydqxu6U1xsgbT8YT5
ETH: 0xc6ec801B7563A4376751F33b0573308aDa611E05

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