Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Can anyone tell me if this is right?

Newbie Spellweaver
Joined
May 6, 2007
Messages
18
Reaction score
0
if (CurrentNPC == XXXXXX)
{
SendPacket(General.MyPackets.NPCSay("Hello,Welcome to BlizzardCo,you are no longer a stranger to the world, Can you do me a favor?"));
SendPacket(General.MyPackets.NPCLink("Yes", 1));
SendPacket(General.MyPackets.NPCLink("No", 255));
SendPacket(General.MyPackets.NPCSay("Please dilever this letter to Jade in BirdIsland A.S.A.P"));
SendPacket(General.MyPackets.NPCLink("Okay", 1));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}

if (CurrentNPC == XXXXXX)
{
MyChar.AddItem("721115-0-0-0-0-0", 0, (uint)General.Rand.Next(36457836));
}
}

Please, this is a quest npc, and idk if i am doing right, first time i really made a npc talk, and give things.
 
Newbie Spellweaver
Joined
Aug 21, 2007
Messages
67
Reaction score
0
Put this on region NPC say or something like this.
Code:
if (CurrentNPC == XXXXXX)
{
SendPacket(General.MyPackets.NPCSay("Hello,Welcome to BlizzardCo,you are no longer a stranger to the world, Can you do me a favor?"));
SendPacket(General.MyPackets.NPCLink("Yes", 1));
SendPacket(General.MyPackets.NPCLink("No", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
Then on NPC do region put this:
Code:
if (CurrentNPC == XXXXXX)
{
[SIZE=2][COLOR=#800000][/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=2][COLOR=#800000] (Control == 1)
[/COLOR][/SIZE]{
SendPacket(General.MyPackets.NPCSay("Please dilever this letter to Jade in BirdIsland A.S.A.P"));
SendPacket(General.MyPackets.NPCLink("Okay", 2));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
[COLOR=#0000ff]if[/COLOR][SIZE=2][COLOR=#800000] (Control == 2)[/COLOR][/SIZE]
[COLOR=#800000]{[/COLOR]
MyChar.AddItem("721115-0-0-0-0-0", 0, (uint)General.Rand.Next(36457836));
}
}
I don't know if this is very good but i think it is
 
Experienced Elementalist
Joined
Apr 7, 2008
Messages
229
Reaction score
0
Nah it cant be copy and pasted, b cuz you need to replace some lines etc etc


Cya
 
Back
Top