|
 |
| MuZone Forum - Best MMORPG Forum |
 |
| Subiectul anterior :: Subiectul urmator |
| Autor |
Mesaj |
Scottdavey Member


Data inscrierii: 01/Mai/2007 Mesaje: 68 Localitate: Northen Ireland
|
Trimis: 06/05/2007 14:27 Titlul subiectului: [Release] Twin City Conductress [NPC Script] |
|
|
Complete Conductress Code.
| Cod: | if (CLNPC == 10050) //Conductress 435,440
{
if (_NPCcontrol == 0)
{
CmdNPC.Face(01);
CmdNPC.Say("Where are you heading for? I can teleport you for a price");
CmdNPC.Say("of 100 silver.");
CmdNPC.Link("Market", 1);
CmdNPC.Link("Just passing by.", 255);
CmdNPC.Finish();
}
if (_NPCcontrol == 1)
{
if (_client.Char.Money > Convert.ToInt32(99))
{
int Teleport_Gold = Convert.ToInt32(_client.Char.Money - 100);
_client.Char.Money = Teleport_Gold;
_client.SendData(PacketBuilder.CharacterInfo(_clie nt.Char));
byte[] SpawnData = PacketBuilder.SpawnEntity(_char);
int x = 211; int y = 196; // Cordinates x & y
_char.CurrentLoc = new Location(x, y);
uint Teleport_Map = 1036; // Map
_char.Map = (World.Maps)Teleport_Map;
World.SpawnCharacter(_client);
}
else if (_client.Char.Money < Convert.ToInt32(100))
{
CmdNPC.Say("Sorry, you do not have 100 silver.");
CmdNPC.Link("I see.", 255);
CmdNPC.Finish();
}
}
} |
Ultima modificare efectuata de catre Scottdavey la 06/05/2007 20:05, modificat de 1 data in total |
|
| Sus |
|
Scottdavey Member


Data inscrierii: 01/Mai/2007 Mesaje: 68 Localitate: Northen Ireland
|
Trimis: 06/05/2007 14:28 Titlul subiectului: [Release] Twin City Conductress [NPC Script] |
|
|
| Cod: | else if (CLNPC == 10050)//TC Conductress
{
if (_NPCcontrol == 0)
{
CmdNPC.Face(12);
CmdNPC.Say("Where are you heading for? I can teleport you for a price");
CmdNPC.Say("of 100 silver.");
CmdNPC.Link("Phoenix Castle", 1);
CmdNPC.Link("Desert City", 2);
CmdNPC.Link("Ape Mountain", 3);
CmdNPC.Link("Bird Island", 4);
CmdNPC.Link("Mine Cave", 5);
CmdNPC.Link("Market", 6);
CmdNPC.Link("I'll stay here", 255);
CmdNPC.Finish();
}
if (_NPCcontrol == 1)
{
if (_client.Char.Money > Convert.ToInt32(99))
{
int Teleport_Gold = Convert.ToInt32(_client.Char.Money - 100);
_client.Char.Money = Teleport_Gold;
TeleportPlayer(958, 555, 1002);
}
else if (_client.Char.Money <Convert> Convert.ToInt32(99))
{
int Teleport_Gold = Convert.ToInt32(_client.Char.Money - 100);
_client.Char.Money = Teleport_Gold;
TeleportPlayer(069, 473, 1002);
}
else if (_client.Char.Money <Convert> Convert.ToInt32(99))
{
int Teleport_Gold = Convert.ToInt32(_client.Char.Money - 100);
_client.Char.Money = Teleport_Gold;
TeleportPlayer(555, 957, 1002);
}
else if (_client.Char.Money <Convert> Convert.ToInt32(99))
{
int Teleport_Gold = Convert.ToInt32(_client.Char.Money - 100);
_client.Char.Money = Teleport_Gold;
TeleportPlayer(232, 190, 1002);
}
else if (_client.Char.Money <Convert> Convert.ToInt32(99))
{
int Teleport_Gold = Convert.ToInt32(_client.Char.Money - 100);
_client.Char.Money = Teleport_Gold;
TeleportPlayer(053, 399, 1002);
}
else if (_client.Char.Money <Convert> Convert.ToInt32(99))
{
int Teleport_Gold = Convert.ToInt32(_client.Char.Money - 100);
_client.Char.Money = Teleport_Gold;
TeleportPlayer(211, 196, 1036);
_client.Char.LM = 1002;
}
else if (_client.Char.Money < Convert.ToInt32(100))
{
CmdNPC.Say("Sorry, you do not have 100 silver.");
CmdNPC.Link("I see.", 255);
CmdNPC.Finish();
}
}
} |
Ultima modificare efectuata Scottdavey la 06/05/2007 20:05, modificat de 2 ori in total |
|
| Sus |
|
IcedEarth Newbie

Data inscrierii: 05/Mai/2007 Mesaje: 4
|
Trimis: 06/05/2007 15:49 Titlul subiectului: |
|
|
else if (CLNPC == 10050)//TC Conductress
{
if (_NPCcontrol == 0)
{
CmdNPC.Face(12);
CmdNPC.Say("Where are you heading for? I can teleport you for a price");
CmdNPC.Say("of 100 silver.");
CmdNPC.Link("Phoenix Castle", 1);
CmdNPC.Link("Desert City", 2);
CmdNPC.Link("Ape Mountain", 3);
CmdNPC.Link("Bird Island", 4);
CmdNPC.Link("Mine Cave", 5);
CmdNPC.Link("Market", 6);
CmdNPC.Link("I'll stay here", 255);
CmdNPC.Finish();
}
if (_NPCcontrol == 1)
{
if (_client.Char.Money > Convert.ToInt32(99))
{
int Teleport_Gold = Convert.ToInt32(_client.Char.Money - 100);
_client.Char.Money = Teleport_Gold;
TeleportPlayer(958, 555, 1002);
}
else if (_client.Char.Money <Convert> Convert.ToInt32(99))
{
int Teleport_Gold = Convert.ToInt32(_client.Char.Money - 100);
_client.Char.Money = Teleport_Gold;
TeleportPlayer(069, 473, 1002);
}
else if (_client.Char.Money <Convert> Convert.ToInt32(99))
{
int Teleport_Gold = Convert.ToInt32(_client.Char.Money - 100);
_client.Char.Money = Teleport_Gold;
TeleportPlayer(555, 957, 1002);
}
else if (_client.Char.Money <Convert> Convert.ToInt32(99))
{
int Teleport_Gold = Convert.ToInt32(_client.Char.Money - 100);
_client.Char.Money = Teleport_Gold;
TeleportPlayer(232, 190, 1002);
}
else if (_client.Char.Money <Convert> Convert.ToInt32(99))
{
int Teleport_Gold = Convert.ToInt32(_client.Char.Money - 100);
_client.Char.Money = Teleport_Gold;
TeleportPlayer(053, 399, 1002);
}
else if (_client.Char.Money <Convert> Convert.ToInt32(99))
{
int Teleport_Gold = Convert.ToInt32(_client.Char.Money - 100);
_client.Char.Money = Teleport_Gold;
TeleportPlayer(211, 196, 1036);
_client.Char.LM = 1002;
}
else if (_client.Char.Money < Convert.ToInt32(100))
{
CmdNPC.Say("Sorry, you do not have 100 silver.");
CmdNPC.Link("I see.", 255);
CmdNPC.Finish();
}
}
} |
|
| Sus |
|
|
|
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
|
|
 |
 |
Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional
Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro
|
 |
|
|