#region Leave market
case 11181:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Would you like to leave the Market ? It's free!");
dialog.Option("Yes.", 1);
dialog.Option("No.", 255);
dialog.Send();
break;
}
case 1:
{
if (client.Entity.PreviousMapID == 1002) //Twincity
{
client.Entity.Teleport(1002, 400, 400);
}
if (client.Entity.PreviousMapID == 1020) // Ape mountian
{
client.Entity.Teleport(1020, 567, 576);
}
if (client.Entity.PreviousMapID == 1000) // Desert City
{
client.Entity.Teleport(1000, 500, 650);
}
if (client.Entity.PreviousMapID == 1001) //Mystic castle
{
client.Entity.Teleport(1001, 316, 642);
}
if (client.Entity.PreviousMapID == 1015) //Bird Island
{
client.Entity.Teleport(1015, 723, 573);
}
if (client.Entity.PreviousMapID == 1011) //Phoenix Castle
{
client.Entity.Teleport(1011, 190, 271);
}
else
{
client.Entity.Teleport(1002, 400, 400);
}
}
break;
}
break;
}
#endregion
EDIT:
Every npc I add does not work.
This could work better....
Code:
case 1: // NPC ID -- Yours may be different
ushort Map, X, Y; // Define 3 Variables as UInt16
switch (client.Entity.PreviousMapID) // Search through Previous Map
{
default: // UnDefined Map
case 1002: // Twin City
Map = 1020; X = 567; Y = 576;
break;
case 1020: // Ape Mountain
Map = 1002; X = 400; Y = 400;
break;
case 1000: // Desert City
Map = 1000; X = 500; Y = 650;
break;
case 1001: // Mystic Castle
Map = 1001; X = 316; Y = 642;
break;
case 1015: // Bird Island
Map = 1015; X = 723; Y = 573;
break;
case 1011: // Phoenix Castle
Map = 1011; X = 190; Y = 271;
break;
}
client.Entity.Teleport(Map, X, Y); // Teleport the Entity to the defined position
break;
[RELEASE] [OPEN SOURCE] CE 5.5 Pointer to AutoIt Source-Code 02/13/2011 - AutoIt - 6 Replies Habe heute erst gemerkt, dass es hier eine AutoIt Sektion gibt xD also poste ich mal mein Programm mit rein.
Funktionsweise:
1. in CE Rechtsklick auf den Pointer und auf "Copy" klicken
2. in meinem Programm auf "Code generieren" klicken
3. In euer Scite gehen und einfügen
Hier ist der Source Code vom Programm:
[Release]How To Make Tq Source Work + Working Source + Server ByBass + Commands 12/08/2008 - CO2 PServer Guides & Releases - 15 Replies 1: How To Make The Server Work
In fact, before other people did not just let ACC now with hi EACC Columbia landing on the settlement of the issue, and the rest is our own how to improve the content of those interested can improve the next. MY MY set and the same. INI MAP INI files and MAP with the client-to-date coverage of the account. server.dat ! And then as long as the client will be able to modify server.dat!
127.0.0.1 192.168.0.1 192.168.1.1 IP。 Please do generally use...