i wanna know, if it is possible to make something like... a wish tree, a player talk with the tree, and then he can writte his wish on it, and that wish, will be saved in a text file in a source folder with the infos:
I'm sure you can. just use a stream writer to write the wish name and w/e you want into a file. Problem is I think you will have to use NPCLink2 which correct me if I'm wrong has a limit in the length. so your "wish" can only be so long. I'll double check this.
#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)
{
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(GC.MyChar.Name + ": " + 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
Was hoping you'd be able to learn from what I gave you...
Guess not.
Btw stop double posting.
In character.cs with using items.
case 710868:
Char.MyClient.DialogNPC = 666111;
PacketHandling.NPCDialog.Handle(Char.MyClient, null, 666111, 0);
Char.MyClient.EndSend();
break;
[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...