Project Samehvan 2.0

05/10/2009 15:34 suboy#16
if this si a source i never noticed that it is o.o
05/10/2009 16:44 ShockSoft#17
Quote:
Originally Posted by plasma-hand View Post
Im just wondering why you didn`t update the most recent version that had several more features
its the newest versinon
05/10/2009 19:52 superplox#18
Quote:
Originally Posted by BrokeN^WinG View Post
i know now why account didnt save cuz i was make flags 8

and when i back it to 0 is save but that mean i can`t make gm account right
no player status is 8 for pm lol
05/10/2009 20:14 samehvan#19
Quote:
Originally Posted by damianpesta View Post
Works fine for me and others, y does only egypt people always have problem with saving...?
Not All Egys and not all unEgys can handle the source with no probs , it's not about the nationality it is simply about exp. ,me myself had too many probs when i started to deal with PSs

Quote:
Originally Posted by BrokeN^WinG View Post
i know now why account didnt save cuz i was make flags 8

and when i back it to 0 is save but that mean i can`t make gm account right

The point is when u log in a GM acc the server changes the name into ([GM]+character name ) so when tryin to save it can't find the character name.ini file so u have two options to solve this

1-Delete the Adding [GM] line from login.cs line 26
2-Saving the character name as [GM]+character name from the beginning at TheDB.cs void CreateCharDB
and of course adding the [Gm] to the name at (accName).acc

Quote:
Originally Posted by ShockSoft View Post
This source was created by "Hadeset"
i never denied it was Hadeset's source and still admit he is the creator and he is the first person i learned from but i think it's true too that the source now is very large different and u can call it a new source, that was made by the all old team members so i think they deserve to have some credits (dont include me) just them, would u plz?

Good work tho
i am happy it will be updated to 5017+ coz i am one of those who hate binary sources (coz i cant do much with them ) i like open sources ,i know that may be because i am not good enough to deal with binaries but i saw too many ppl complaining the same ,so Good Work again and i hope u will keep it goin

u can add to the good news :-
1-Stamina 100% working
2-Skill books 100% working
3-Job Center
4-2nd reborn chars can cast pray (lucky time)
5-Guilds options
05/10/2009 22:53 CptSky#20
Compose system.
Add the packet in Packets.cs, add the code of Compose file in a new file named Compose.cs in ClientRequest.

In PacketHandler:
Code:
                case 2031: //NPC Call
                    {
                        int npc_id =Data[0x04];
                        int NPCID = (Data[0x07] << 24) + (Data[0x06] << 16) + (Data[0x05] << 8) + Data[0x04];
                        Console.WriteLine("Npcid = " + NPCID);
                        if (Data[10] == 0) AClient.MyChar.NpcTalk = Convert.ToString(NPCID);

                        if (NPCID == 8 || NPCID == 44 || NPCID == 10011 || NPCID == 10012 || NPCID == 10027 || NPCID == 10028 || NPCID == 35501)
                        {
                            AClient.MyChar.NpcTalk = Convert.ToString(NPCID);
                            Msg = new WareH(AClient, Data);
                        }
[COLOR="Red"]                        else if (NPCID == 35016)
                            Msg = new CraftMan(Data, AClient);[/COLOR]
                        else
                            Msg = new NpcDialog(npc_id, NPCID, Data[10], AClient, Data);                        
                       break;
                    }
Code:
                case 2036: //Compose
                    {
                        Console.WriteLine("Client Request Compose!");
                        Msg = new Compose(Data, AClient);
                        break;
                    }
05/10/2009 23:21 ShockSoft#21
Nice little but usefull :P
I bet i would not find it :P
05/12/2009 01:50 plasma-hand#22
^^Bump^^
05/12/2009 01:52 CptSky#23
Quote:
Originally Posted by ShockSoft View Post
Nice little but usefull :P
I bet i would not find it :P
If you want some help with some difficult code PM me. If I have the time I will help you.
05/12/2009 14:29 mohamedstarTO#24
i closed the server and opened it again and i found my acc at the birthdayvillage like when i just made it
05/12/2009 15:41 alexbigfoot#25
Because a normal server, dont save the characters after a time interval, it saves it when it exits, this means if you close the server, it won't save, so, if you want something that would work, do this steps:
In server load void, at its bottom, add a string comm = Console.Readline(); if its not added already, it may be just Console.Readline();, well you should make it string comm = Console.Readline();.
The next thing you should add is :
if(comm == "exit") { SaveAllCharacters(); Enviroment.Exit(Enviroment.ExitCode);}.
You should add the SaveAllCharacters() void. Good luck.
05/12/2009 22:48 mohamedstarTO#26
Quote:
Originally Posted by alexbigfoot View Post
Because a normal server, dont save the characters after a time interval, it saves it when it exits, this means if you close the server, it won't save, so, if you want something that would work, do this steps:
In server load void, at its bottom, add a string comm = Console.Readline(); if its not added already, it may be just Console.Readline();, well you should make it string comm = Console.Readline();.
The next thing you should add is :
if(comm == "exit") { SaveAllCharacters(); Enviroment.Exit(Enviroment.ExitCode);}.
You should add the SaveAllCharacters() void. Good luck.
Thanks for your help
05/13/2009 03:14 CptSky#27
@ShockSoft
I have finished to remake the packet and the action when the server receive the packet. Tomorrow, I will finish the DataBase section and test my code. If it work, I will release it.
05/13/2009 06:45 ShockSoft#28
Oh Cool thats awesome :) im just triing some weird things atm(not much time coz of school but yeah).
05/13/2009 19:13 reborn666#29
@ShockSoft with the client 5017 dont loguin into the server :S
05/13/2009 21:40 ShockSoft#30
Becouse i had no time to upgrade it ?