Data inscrierii: 01/Mai/2007 Mesaje: 68 Localitate: Northen Ireland
Trimis: 06/05/2007 14:01 Titlul subiectului: [Release] GuildController [NPC Script Code]
I found this;
Citat:
if (CLNPC == 380)
{
CmdNPC.Face(01);
CmdNPC.Say("Hello there, would you like me to teleport you to GuildWar area for cost of 1000 silvers?");
CmdNPC.Link("Yes, please.", 1);
CmdNPC.Link("No thanks.", 255);
CmdNPC.Finish();
}
if (_NPCcontrol == 1)
{
if (_client.Char.Money => 1000)
{
_client.Char.Money -= 1000;
_client.SendData(PacketBuilder.CharacterInfo(_client.Char));
byte[] SpawnData = PacketBuilder.SpawnEntity(_char);
_char.CurrentLoc = new Location(280, 299);
_char.Map = (World.Maps)1038;
World.SpawnCharacter(_client);
}
else if (_client.Char.Money < 1000)
{
CmdNPC.Say("Sorry, you do not have 1000 silver.");
CmdNPC.Link("I see.", 255);
CmdNPC.Finish();
}
add me to msn alianapes@gmail.com if you know about putting these into the server.
Nu puteti crea un subiect nou in acest forum Nu puteti raspunde in subiectele acestui forum Nu puteti modifica mesajele proprii din acest forum Nu puteti sterge mesajele proprii din acest forum Nu puteti vota in chestionarele din acest forum