AutentificareUtilizatorParola
Autentifica-ma automat la fiecare vizita    
Inregistrare
Inregistrare
Mesaje private
Mesaje private
Pagina de start a forumului MuZone Forum » NPC Scripts

Creaza un subiect nou   Raspunde la subiect
[Release] Twin City Conductress [NPC Script]
Subiectul anterior :: Subiectul urmator  
Autor Mesaj
Scottdavey
Member
<b>Member</b>
Scottdavey

Data inscrierii: 01/Mai/2007
Mesaje: 68
Localitate: Northen Ireland

MesajTrimis: 06/05/2007 14:27    Titlul subiectului: [Release] Twin City Conductress [NPC Script] Raspunde cu citat (quote)

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
Vezi profilul utilizatorului Trimite mesaj privat
Scottdavey
Member
<b>Member</b>
Scottdavey

Data inscrierii: 01/Mai/2007
Mesaje: 68
Localitate: Northen Ireland

MesajTrimis: 06/05/2007 14:28    Titlul subiectului: [Release] Twin City Conductress [NPC Script] Raspunde cu citat (quote)

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
Vezi profilul utilizatorului Trimite mesaj privat
IcedEarth
Newbie
<b>Newbie</b>


Data inscrierii: 05/Mai/2007
Mesaje: 4

MesajTrimis: 06/05/2007 15:49    Titlul subiectului: Raspunde cu citat (quote)

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
Vezi profilul utilizatorului Trimite mesaj privat
Afiseaza mesajele pentru a le previzualiza:   
Creaza un subiect nou   Raspunde la subiect    Pagina de start a forumului MuZone Forum » NPC Scripts Ora este GMT + 2 ore
Pagina 1 din 1

 
Mergi direct la:  
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