Elĩţέ Găмέrś
July 29, 2021, 08:20:15 am
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to Elite Gamers Community have fun and contribute to the community and be Rewarded.
 
  Home Help Search Arcade Gallery Links Staff List Login Register  

Conductress ( C# )

Pages: [1]
  Print  
Author Topic: Conductress ( C# )  (Read 97 times)
Unidentical
Administrator
Known Member
*

Karma: +105/-0
Posts: 69


I have the cape! I am an admin, dont double post!


View Profile WWW
« on: December 03, 2007, 09:30:15 pm »

Here:

Code:
else if (CLNPC == 10050) //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 only");
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.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 = 958; int y = 555; // Cordinates x & y
_char.CurrentLoc = new Location(x, y);
uint Teleport_Map = 1002; // Map
_char.Map = (World.Maps)Teleport_Map;
World.SpawnCharacter(_client);
}
else if (_client.Char.Money < Convert.ToInt32(100))
{
CmdNPC.Say("You Currently Do NOT have 100 Silver Please go and get more.");
CmdNPC.Link("Dont Need To Say That Again.", 255);
CmdNPC.Finish();
}
}
if (_NPCcontrol == 2)
{
if (_client.Char.Money > Convert.ToInt32(99))
{
int Teleport_Gold = Convert.ToInt32(_client.Char.Money - 1);
_client.Char.Money = Teleport_Gold;

_client.SendData(PacketBuilder.CharacterInfo(_clie nt.Char));
byte[] SpawnData = PacketBuilder.SpawnEntity(_char);
int x = 069; int y = 473; // Cordinates x & y
_char.CurrentLoc = new Location(x, y);
uint Teleport_Map = 1002; // Map
_char.Map = (World.Maps)Teleport_Map;
World.SpawnCharacter(_client);
}
else if (_client.Char.Money < Convert.ToInt32(100))
{
CmdNPC.Say("You Currently Do NOT have 100 Silver Please go and get more.");
CmdNPC.Link("Dont Need To Say That Again.", 255);
CmdNPC.Finish();
}
}
if (_NPCcontrol == 3)
{
if (_client.Char.Money > Convert.ToInt32(99))
{
int Teleport_Gold = Convert.ToInt32(_client.Char.Money - 1);
_client.Char.Money = Teleport_Gold;

_client.SendData(PacketBuilder.CharacterInfo(_clie nt.Char));
byte[] SpawnData = PacketBuilder.SpawnEntity(_char);
int x = 555; int y = 957; // Cordinates x & y
_char.CurrentLoc = new Location(x, y);
uint Teleport_Map = 1002; // Map
_char.Map = (World.Maps)Teleport_Map;
World.SpawnCharacter(_client);
}
else if (_client.Char.Money < Convert.ToInt32(100))
{
CmdNPC.Say("You Currently Do NOT have 100 Silver Please go and get more.");
CmdNPC.Link("Dont Need To Say That Again.", 255);
CmdNPC.Finish();
}
}
if (_NPCcontrol == 4)
{
if (_client.Char.Money > Convert.ToInt32(99))
{
int Teleport_Gold = Convert.ToInt32(_client.Char.Money - 1);
_client.Char.Money = Teleport_Gold;

_client.SendData(PacketBuilder.CharacterInfo(_clie nt.Char));
byte[] SpawnData = PacketBuilder.SpawnEntity(_char);
int x = 232; int y = 190; // Cordinates x & y
_char.CurrentLoc = new Location(x, y);
uint Teleport_Map = 1002; // Map
_char.Map = (World.Maps)Teleport_Map;
World.SpawnCharacter(_client);
}
else if (_client.Char.Money < Convert.ToInt32(100))
{
CmdNPC.Say("You Currently Do NOT have 100 Silver Please go and get more.");
CmdNPC.Link("Dont Need To Say That Again.", 255);
CmdNPC.Finish();
}
}
if (_NPCcontrol == 5)
{
if (_client.Char.Money > Convert.ToInt32(99))
{
int Teleport_Gold = Convert.ToInt32(_client.Char.Money - 1);
_client.Char.Money = Teleport_Gold;

_client.SendData(PacketBuilder.CharacterInfo(_clie nt.Char));
byte[] SpawnData = PacketBuilder.SpawnEntity(_char);
int x = 053; int y = 399; // Cordinates x & y
_char.CurrentLoc = new Location(x, y);
uint Teleport_Map = 1002; // Map
_char.Map = (World.Maps)Teleport_Map;
World.SpawnCharacter(_client);
}
else if (_client.Char.Money < Convert.ToInt32(100))
{
CmdNPC.Say("You Currently Do NOT have 100 Silver Please go and get more.");
CmdNPC.Link("Dont Need To Say That Again.", 255);
CmdNPC.Finish();
}
}
if (_NPCcontrol == 6)
{
if (_client.Char.Money > Convert.ToInt32(99))
{
int Teleport_Gold = Convert.ToInt32(_client.Char.Money - 1);
_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("You Currently Do NOT have 100 Silver Please go and get more.");
CmdNPC.Link("Dont Need To Say That Again.", 255);
CmdNPC.Finish();
}

Credts: IcedEarth from Uni PVPERS big thnx
Report Spam   Logged


Share on Facebook Share on Twitter



Pages: [1]
  Print  
 
Jump to:  

Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy