ok, created a quick npc to teleport you to the ship and for some odd reason i get console errors..Never would have guessed something this simple could get errors...but funny thing is...the NPC works
NPC:
Code:
#region Ship Map Enter
case 9083:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Hello, would you like to take a Cruise on the SS Minnow?"));
GC.AddSend(Packets.NPCLink("Yes, I would.", 1));
GC.AddSend(Packets.NPCLink("No, I dont want to right now.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else if (Control == 1)
GC.MyChar.Teleport(9999, 87, 79);
break;
}
#endregion
ERRORS:
Code:
Starting to load DMaps.
Loading 9999 : C:\CodeEmperionCO\map/map/ship.DMap
Plus all the others that I deleted from this post to save space.
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative
and less than the size of the collection.
Parameter name: index
at System.Collections.ArrayList.get_Item(Int32 index)
at NewestCOServer.DMaps.GetMapStatus(UInt16 Map) in C:\rock test server\rikar
do updated\DMap.cs:line 65
at NewestCOServer.Game.Character.Teleport(UInt16 Map, UInt16 X, UInt16 Y) in
C:\rock test server\rikardo updated\Game\Character.cs:line 2374
at NewestCOServer.PacketHandling.NPCDialog.Handle(GameClient GC, Byte[] Data,
UInt32 NPC, Byte Control) in C:\rock test server\rikardo updated\PacketHandling
\NPCDialog.cs:line 9487