Register for your free account! | Forgot your password?

You last visited: Today at 04:34

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

Advertisement



2 Request

Discussion on 2 Request within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
salem rey's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 275
Received Thanks: 43
Question 2 Request

1st request is: When you make a new char i wanna show a dialog box if you want to apply a merchant or not, because in my server it dont have it.

2md request is: a message in my source that if someone will log in, because my source got only game save automatically spamming. i jsut want to see if there is someone is logging in...


please anyone can help me out here i will give a very big thanks..



ps, salem

:hands down:
salem rey is offline  
Old 09/18/2010, 11:58   #2
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,225
Received Thanks: 868
Why dont you work on the problem for a couple of days and im sure you will find the answer
_DreadNought_ is offline  
Old 09/18/2010, 12:09   #3
 
salem rey's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 275
Received Thanks: 43
I dont really the how to fix it, I don't have any clue... I'm clueless please need really help..
salem rey is offline  
Old 09/18/2010, 12:46   #4
 
{ Angelius }'s Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 992
Received Thanks: 1,110
1 set .im not sure how to do it but to make it the easy way you can add an npc at the birth Village to tell players what is the merchant acc and apply for them if they wanted it

2nd
im not sure what source you r working on but i hope this is gonna help you

in GameWorker.cs
Quote:
search for
static void DataHandler(StateObj StO, byte[] Data)

in the end of it you'll find this bit of code

GC.EndSend();

above it add this

Quote:

}
Program.WriteLine(GC.MyChar.Name + " has just logged in .");//change it to whatever you wanna read when a user log in to the game
}
in GameClient.cs
search for
Code:
public void LogOff(bool Remove)

in that public void you'll find an if statement contains something about saving the char  or to check the char contains 
above it add this 
[CODE]
Program.WriteLine("User " + MyChar.Name + " has logged of or disconnected.");
[/CODE]
hope i helped

guess i found a way to get it to work D

go to teleport.cs and search for

Quote:
if (Game.World.CurrentBC.Message != null)
above it add this

Quote:
if (GC.MyChar.Loc.Map == 1010)
GC.AddSend(Packets.AttackPacket(GC.MyChar.EntityID , 0, 0, 0, 0, 40)); // Asks the player on character creation.
GC.AddSend(Packets.GeneralData(GC.MyChar.EntityID, 0, 0, 0, 132, 0));
this way its gonna ask the player to apply for a merchant acc only at the birth village map and once he get out the birth village its done well never ask him again
and to ask the player if he wanna cancel the merchant acc every time he log in do this
go to PachetHandler.cs and look for

Quote:
case 132:
in the end of that case add this
Quote:
}
if (GC.MyChar.Merchant == NewestCOServer.Game.MerchantTypes.Yes)
GC.AddSend(Packets.Status(GC.MyChar.EntityID, Game.Status.Merchant, 255));

break;
}
{ Angelius } is offline  
Thanks
1 User
Old 09/18/2010, 16:23   #5
 
salem rey's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 275
Received Thanks: 43
hehehe i will try thanks anyway...

Sorry for double post but thanks for your help { Angelius }
Member

is works jsut paste it in teleport.cs

it should be like this

if (!GC.LoginDataSent)
{
Program.WriteLine(GC.MyChar.Name + " has just logged in.");
Game.World.Spawns(GC.MyChar, true);
GC.AddSend(Packets.Packet1012Time(GC.MyChar.Entity ID));
GC.AddSend(Packets.GeneralData(GC.MyChar.Loc.Map, GC.MyChar.Loc.Map, GC.MyChar.Loc.X, GC.MyChar.Loc.Y, 0x4a));
GC.AddSend(Packets.GeneralData(GC.MyChar.EntityID, 0xffffffff, GC.MyChar.Loc.X, GC.MyChar.Loc.Y, 0x68));
ushort MapStatus = DMaps.GetMapStatus(GC.MyChar.Loc.Map);
GC.AddSend(Packets.MapStatus(GC.MyChar.Loc.Map, MapStatus));
foreach (Game.Item I in GC.MyChar.Inventory)
GC.AddSend(Packets.AddItem(I, 0));
GC.MyChar.Equips.Send(GC, true);


i think i am double post
salem rey is offline  
Old 09/18/2010, 17:05   #6
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
No... if it's in teleport code obviously it will give you that any time they teleport (use scroll, go through portal... etc)

Search your packet handler for code that deals with logging on and put it there...

As for merchant stuff.. It's an attack packet with various values iirc. Create values in your character files to see if player is merchant or not. If they are not merchant than send them the packet that will pop up the merchant apply box and use the response to set merchant level (merchant, not merchant or applying merchant)
pro4never is offline  
Thanks
1 User
Old 09/18/2010, 17:22   #7
 
{ Angelius }'s Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 992
Received Thanks: 1,110
Quote:
Originally Posted by SALEM REY

is works jsut paste it in teleport.cs

it should be like this

if (!GC.LoginDataSent)
{
Program.WriteLine(GC.MyChar.Name + " has just logged in.");
Game.World.Spawns(GC.MyChar, true);
GC.AddSend(Packets.Packet1012Time(GC.MyChar.Entity ID));
GC.AddSend(Packets.GeneralData(GC.MyChar.Loc.Map, GC.MyChar.Loc.Map, GC.MyChar.Loc.X, GC.MyChar.Loc.Y, 0x4a));
GC.AddSend(Packets.GeneralData(GC.MyChar.EntityID, 0xffffffff, GC.MyChar.Loc.X, GC.MyChar.Loc.Y, 0x68));
ushort MapStatus = DMaps.GetMapStatus(GC.MyChar.Loc.Map);
GC.AddSend(Packets.MapStatus(GC.MyChar.Loc.Map, MapStatus));
foreach (Game.Item I in GC.MyChar.Inventory)
GC.AddSend(Packets.AddItem(I, 0));
GC.MyChar.Equips.Send(GC, true);
Quote:
wrong file that bit of code should go to the gameworker.cs
Quote:
Originally Posted by pro4never

As for merchant stuff.. It's an attack packet with various values iirc. Create values in your character files to see if player is merchant or not. If they are not merchant than send them the packet that will pop up the merchant apply box and use the response to set merchant level (merchant, not merchant or applying merchant)
well lol no body answered her at all so i posted what i know about it

and honstly it works fine for me
and btw salem rey where is my BIG THANKS LOL J/K
{ Angelius } is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[Request] Request all 5165 sources/npc dialog
02/28/2010 - CO2 Private Server - 0 Replies
so i want to do a good source like every1 right ? so i stay some time and i got a idea to take lot of 5165 and take what's not bugged and essentialy :mofo: i will release it :D
[REQUEST] speak freakin english -_- florensi hack [REQUEST]
01/22/2010 - Florensia - 1 Replies
any florensia hacks?
[REQUEST]5165 Client Request Help/ Question
12/18/2009 - CO2 Private Server - 5 Replies
hey yall its me TheLeGend Im Back in CO for a while but i gots a question ok so i have a 5165 Client im editing for a server but the only problem is that stupid-ass popup page that comes up the Conquer Online - Official Site - co.91.com one well i was just wondering how can i edit that site orrr how can i make it not popup anymore??? Thanks so Much, TheLeGend209



All times are GMT +1. The time now is 04:34.


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.