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 :DD
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:
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;
}
|