Register for your free account! | Forgot your password?

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

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

Advertisement



P Server "NPC base code/shops/drop items" for who asked me 2 do it

Discussion on P Server "NPC base code/shops/drop items" for who asked me 2 do it within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old 06/24/2008, 18:55   #976
 
adz06676's Avatar
 
elite*gold: 0
Join Date: Oct 2007
Posts: 450
Received Thanks: 68
Quote:
Originally Posted by tjhancock101 View Post
wtf, i cant find tht in teh whole chat.cs, also can sumoen help me, i edited in new commands and packets into my chat.cs, i build and save, it look like th enew commands, but in teh server only the old commands work, i dont get it, i restarted server and everything
You have to add it to the char.cs ughh i'll talk u through it here is the gm command code:
Quote:
if (TheClient.Status == 8)
{

if (Splitter[0] == "/effect")
{
string effectname = Splitter[1];
WorldHandler.Effect(TheClient.MyChar, effectname);
}
that would make the command /effect only available to gms.
adz06676 is offline  
Thanks
6 Users
Old 06/24/2008, 20:01   #977
 
GRASSHOPPA's Avatar
 
elite*gold: 0
Join Date: Jun 2008
Posts: 113
Received Thanks: 19
anybody know of a way to make npcs delay or something?
like they only work at a certain time of the day

all i need to know is some basic info and i can probly do trial and error till i get it workin =/
GRASSHOPPA is offline  
Old 06/24/2008, 20:31   #978
 
tony_987's Avatar
 
elite*gold: 0
Join Date: Nov 2007
Posts: 150
Received Thanks: 5
dirtydozen@ your working on exp on your server?
tony_987 is offline  
Old 06/24/2008, 21:00   #979
 
stephanyd's Avatar
 
elite*gold: 0
Join Date: Jun 2007
Posts: 390
Received Thanks: 92
I tried to make my OldGeneralYang to give 1 hour double exp but won't work... Can some1 tell me how?
Attached Images
File Type: jpg OldGeneralYang.jpg (98.8 KB, 27 views)
stephanyd is offline  
Old 06/24/2008, 21:12   #980
 
elite*gold: 0
Join Date: Jun 2008
Posts: 42
Received Thanks: 2
- Hey,Anyone know how add npc for making guild,and the guild war,please


- Thanks so much sam.
Yuhawn is offline  
Old 06/24/2008, 21:17   #981
 
adz06676's Avatar
 
elite*gold: 0
Join Date: Oct 2007
Posts: 450
Received Thanks: 68
Quote:
Originally Posted by tony_987 View Post
dirtydozen@ your working on exp on your server?
Yeh removed lvling from monsters cuz i'm not liking the lag and i've added lvling from pking just needs a few fixes.

Quote:
Originally Posted by stephanyd View Post
I tried to make my OldGeneralYang to give 1 hour double exp but won't work... Can some1 tell me how?
We will need to see the coding behind exp,x2 in ur npcdialog.cs
adz06676 is offline  
Old 06/24/2008, 21:36   #982
 
elite*gold: 0
Join Date: Feb 2008
Posts: 668
Received Thanks: 160
Quote:
Originally Posted by adz06676 View Post
You have to add it to the char.cs ughh i'll talk u through it here is the gm command code:


that would make the command /effect only available to gms.
You may also know how to send all people an message? Something like this :

Code:
WorldHandler.SendAll(ThePackets.Sendmsg(TheClient.MessageID, "System" and all things here
But that doesn't work, May u know how to fix it?
YukiXian is offline  
Old 06/24/2008, 21:39   #983
 
stephanyd's Avatar
 
elite*gold: 0
Join Date: Jun 2007
Posts: 390
Received Thanks: 92
Is my coding for OldGeneral ok?...I'm a noob in coding
Attached Images
File Type: jpg Double exp add.jpg (134.4 KB, 29 views)
File Type: jpg OldGeneralYang.jpg (98.8 KB, 18 views)
stephanyd is offline  
Old 06/24/2008, 21:44   #984
 
adz06676's Avatar
 
elite*gold: 0
Join Date: Oct 2007
Posts: 450
Received Thanks: 68
Quote:
Originally Posted by YukiXian View Post
You may also know how to send all people an message? Something like this :

Code:
WorldHandler.SendAll(ThePackets.Sendmsg(TheClient.MessageID, "System" and all things here


But that doesn't work, May u know how to fix it?
Havn't tried and worldhandler.sendall isnt a chat / message type, it would teleport every char to the location of your choice.

Quote:
Originally Posted by stephanyd View Post
Is my coding for OldGeneral ok?...I'm a noob in coding
I havnt tried doing exp since i removed it and edited it on mine but, the UID shoudlnt be 30 it should be 19 also mychar.exp.x2 is wrong remove the .x2 then the rest is up to you whether that will work i don't know
adz06676 is offline  
Old 06/24/2008, 22:09   #985
 
elite*gold: 0
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 154
LOL, Adz, i was trying that thing for GM commands for ever, and i kept using TheClient.Status == "8" >_<, i was about to just be like.. if(TheClient.MyChar.CharName.Contains("[GM]")
{....
But, ***... i need to learn more about coding >.<
tao4229 is offline  
Old 06/24/2008, 22:21   #986
 
adz06676's Avatar
 
elite*gold: 0
Join Date: Oct 2007
Posts: 450
Received Thanks: 68
Quote:
Originally Posted by tao4229 View Post
LOL, Adz, i was trying that thing for GM commands for ever, and i kept using TheClient.Status == "8" >_<, i was about to just be like.. if(TheClient.MyChar.CharName.Contains("[GM]")
{....
But, ***... i need to learn more about coding >.<
Lol i started like that although i'm still a nub compared to sam
adz06676 is offline  
Old 06/24/2008, 22:42   #987
 
Huseby's Avatar
 
elite*gold: 106
Join Date: Oct 2006
Posts: 6,047
Received Thanks: 1,165
Quote:
Originally Posted by stephanyd View Post
I tried to make my OldGeneralYang to give 1 hour double exp but won't work... Can some1 tell me how?
ehh dubble exp most maby be coded first?

@dirydozen
You got one dc as i noticed and that was 110 promo and that delited all your current gear, so if u had lottery first youv get screwd. look at Tangoras source, his inve works :P
Huseby is offline  
Old 06/24/2008, 22:47   #988
 
elite*gold: 0
Join Date: Feb 2008
Posts: 668
Received Thanks: 160
Quote:
Quote:
Originally Posted by YukiXian View Post
You may also know how to send all people an message? Something like this :

Code:
WorldHandler.SendAll(ThePackets.Sendmsg(TheClient.MessageID, "System" and all things here
But that doesn't work, May u know how to fix it?
Quote:
Originally Posted by adz06676 View Post
Havn't tried and worldhandler.sendall isnt a chat / message type, it would teleport every char to the location of your choice.



I havnt tried doing exp since i removed it and edited it on mine but, the UID shoudlnt be 30 it should be 19 also mychar.exp.x2 is wrong remove the .x2 then the rest is up to you whether that will work i don't know

@ adz06676, Well, .. If its wrong, Could you tell me what the Right one is ?

Other Question : ( To anyone who know about NPCs )
I don't understand the NPC's Cuz look this , :

Quote:
[NpcType2]
Name=Barber
SimpleObjID=266
StandByMotion=999266100
BlazeMotion=999266102
RestMotion=999266101
Effect=none
ASB=5
ADB=6
FixDir=0
U can find that in the npc.ini ( Located in the Qonquer Online Client )
So, Thats the barber, but were in that i can see the barber ID ?

Here is the line in the NPCs.txt

Quote:
12;10002;412;376;26;2;0;1002
( Located in the Source\Bin\Debug Folder )
I don't see anything is the same form there, So... How can i add an NPC based on the npc.ini ?
YukiXian is offline  
Old 06/24/2008, 22:50   #989
 
stephanyd's Avatar
 
elite*gold: 0
Join Date: Jun 2007
Posts: 390
Received Thanks: 92
Quote:
Originally Posted by huseby View Post
ehh dubble exp most maby be coded first?
I'm trying to code it... i did what adz said but no icon appear on upper left corner... If some1 know wich file i have to work exactly and the code to enter it would be nice
stephanyd is offline  
Old 06/24/2008, 22:58   #990
 
bobtin777's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 232
Received Thanks: 18
Would a timer be like this
Code:
                        TheClient.SendPacket(ThePackets.Vital2((long)TheClient.MyChar.UID, TheClient.MyChar.CurHP));
                        TheClient.MyChar.CanFillHp = false;
                        TheClient.MyChar.HPTimer.Start();
                    }
                    else
                        TheClient.SendPacket(ThePackets.SendMsg(TheClient.MessageId,"SYSTEM",TheClient.MyChar.CharName,"You have to wait 1 minute before you can fill your hp with comamnd again.",2000));
                }
bobtin777 is offline  
Reply


Similar Threads Similar Threads
Verkaufe: Guild Wars "Platin", "Ectos, "Items" mehr...
09/12/2008 - Guild Wars Trading - 0 Replies
Hallo, ich biete gegen Euro viele schöne dinge für das Spiel Guild Wars an. Bitte meldet euch dann bei mir per PM was genau ihr haben möchtet und wieviel von den jeweiligen Virtuellen Gegenständen. Die Übergabe kann wie folgt ab laufen. Ich erstelle extra für euch die Ebay Auktion mit der gewünschten menge der jeweiligen Virtuellen Guild Wars gegenstände. Wenn ihr kein Ebay habt und euch auch kein Account anlegen möchtet kann die Übergabe auch ausserhalb Ebays statt finden hierzu erhaltet...



All times are GMT +1. The time now is 10:23.


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