I realized that It doesn't show the name of person who wrote the wish on the file.
Code:
#region wish tree
case 999999: // make sure you change this to the npc you want to use
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("What is your wish?"));
GC.AddSend(Packets.NPCLink2("Type in your wish", 1));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else if (Control == 1)
[COLOR="Magenta"]foreach (DictionaryEntry DE in World.H_Chars)
{
Character Chaar = (Game.Character)DE.Value;[/COLOR]
string wish = ReadString(Data);
if (wish != null)
{
string path = "C:\\OldCODB\\wish.txt";
StreamWriter SW;
if (File.Exists(path))
{
SW = File.AppendText(path);
SW.WriteLine([COLOR="Magenta"]Chaar.Name +[/COLOR] ": " + wish);
//will write -- Name: My wish
SW.Close();
Console.WriteLine("A new wish has been made!");
}
else
{
SW = File.CreateText(path);
SW.WriteLine(wish);
SW.Close();
Console.WriteLine("A new wish has been made!");
}
}
GC.AddSend(Packets.NPCSay("Your Wish has been added into the file"));
GC.AddSend(Packets.NPCLink2("Thanks", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
break;
}
#endregion
I realized that It doesn't show the name of person who wrote the wish on the file.
it doesn't? I'm pretty sure it will. What you're doing right there is cycling through characters, which is unnecessary since you already know that the person that pressed the npc is already gc.mychar.
edit: Okay, I took another look at the code and I think what's gonna happen if you do that is it will write all the names of the people with the same wish in the file x.x Because you didn't add any checks.
I realized that It doesn't show the name of person who wrote the wish on the file.
Did you test to see if it doesn't write the player's name to the file, or are you just guessing? It looks like it should write the player's name to the file. Your code on the other hand, looks like it will write every single player's name in the file with the single player's wish, but I didn't look too closely into it.
Did you test to see if it doesn't write the player's name to the file, or are you just guessing? It looks like it should write the player's name to the file. Your code on the other hand, looks like it will write every single player's name in the file with the single player's wish, but I didn't look too closely into it.
Yep I tested it and all I seen was wishes. There was no names. The first code which is
Code:
foreach (DictionaryEntry DE in World.H_Chars)
{
Character Chaar = (Game.Character)DE.Value;
allows you to use "Chaar" at NPCDialog.cs otherwise you will get errors. I don't really know why but it seems GC.MyChar.Name doesn't work for some reason. But Chaar.Name does. I have tested my code aswell. And it works for me. D=
Edit:
Quote:
Originally Posted by .Arco
Uhm...
SW.WriteLine(GC.MyChar.Name + ": " + wish);
Yes it does?
Well, It might work on you but it doesnt for me. I got ConquerSX's source and it's kinda different than normal one. It might because of that. I dunno D=
[Request] NAGC Skill Tree Uncap? 04/16/2010 - Grand Chase - 7 Replies Title says. Is there any possible hack to uncap the 35 limit to infinity?
Best Wishes from Hungary 07/14/2008 - Say Hello - 2 Replies Hi to ALL ! :D enjoy the life's goods :cool:
Druid Tree form buff without tree Form 11/11/2007 - WoW Exploits, Hacks, Tools & Macros - 5 Replies My buddy and i were screwing around the other day in Mech and we figured out a way to have a working tree form buff for the party but not be in tree form. Which if anyone knows about druids allows them to cast all their other high healing spells. Anyway follow the instructions below its a bit tricky
1. Change your chest item to something else
2. Get into Combat.. Queue your chestpiece to switch back to your original
3. When the fights finishing, Get ready.. The second the...