well, my server project is nearly finished, just a few small things have to be done.
one thing i couldn`t get fixed is this Teleporter Script, with the following error message,
i cant figure out to get this important thing running, could anybody help me out, please!?
TELEPORTER SCRIPT:
- Code: Select all
// Created by Dread, edited by Joku. To use just /mob create DOL.GS.Scripts.EasyTeleporter... using System; using DOL; using DOL.GS; using DOL.Events; using DOL.GS.PacketHandler; using System.Collections; using DOL.Database; namespace DOL.GS.Scripts { public class EasyTeleporter : GameNPC { public override bool Interact(GamePlayer player) { if (!base.Interact(player)) return false; player.Client.Out.SendMessage( "Welcome Traveler! - I can teleport you to the following locations.\n" + "\n[Setup] - The Main Merchant Area, where you can buy all Game-Content.\n" + "\n[Duel Zone] - Show your Duel-talent! - follow the given rules!\n" + "\n[Leveling Zone] - Level you character here. But be aware PvP is enabled!\n" + "\n[RvR/PvP Area] - Claim Towers and Keeps - RP-Claim Bonus active!.\n" + "\n[Master Level Area] - Fight against the ML-Encounters, group up for success!.\n" + "\n[Special PvE Event] - Comming up soon!\n", eChatType.CT_Say, eChatLoc.CL_PopupWindow); return true; } public override bool AddToWorld() { base.AddToWorld(); return true; } private static void switchrealm(GamePlayer p, int realm) { p.Realm = (eRealm)realm; p.Client.SavePlayer(); } public override bool WhisperReceive(GameLiving source, string str) { if (!base.WhisperReceive(source, str)) return false; if (!(source is GamePlayer)) return false; GamePlayer player = (GamePlayer)source; TurnTo(player.X, player.Y); switch (str) { case "Setup": { player.MoveTo(240, 554371, 583883, 6592, 2039); break; } break; case "Duel Zone": { player.MoveTo(240, 554371, 583883, 6592, 2039); break; } break; case "Leveling Zone": player.Client.Out.SendMessage( "wich entrance do you prefer, the [Albion-Entrance] the [Midgard-Entrance] or the [Hibernia-Entrance]?"); return true; case "Albion-Entrance": { player.MoveTo(240, 554371, 583883, 6592, 2039); break; } break; case "Midgard-Entrance": { player.MoveTo(240, 554371, 583883, 6592, 2039); break; } break; case "Hibernia-Entrance": { player.MoveTo(240, 554371, 583883, 6592, 2039); break; } break; case "RvR - Raid Area": player.Client.Out.SendMessage( "for wich realm would you like to fight? [Albion] X [Midgard] X [Hibernia]"); return true; case "Albion": { player.MoveTo(240, 554371, 583883, 6592, 2039); break; } break; case "Midgard": { player.MoveTo(240, 554371, 583883, 6592, 2039); break; } break; case "Hibernia": { player.MoveTo(240, 554371, 583883, 6592, 2039); break; } break; case "Master Level Area": { player.MoveTo(240, 554371, 583883, 6592, 2039); break; } break; case "Special PvE Event": { player.MoveTo(240, 554371, 583883, 6592, 2039); break; } break; } return true; } } }
- Code: Select all
17:31:58,880 - [MAIN] - ERROR - DOL.GS.ScriptMgr - Script compilation failed because: 17:31:58,881 - [MAIN] - ERROR - DOL.GS.ScriptMgr - Keine Überladung für die Methode 'SendMessage' nimmt 1-Argumente an. 17:31:58,881 - [MAIN] - ERROR - DOL.GS.ScriptMgr - x:\DOL SERVER PROJEKT\RUNING SERVER\debug\scripts\Customtest\NewTeleporter.cs Line:82 Col:21 17:31:58,881 - [MAIN] - ERROR - DOL.GS.ScriptMgr - Script compilation failed because: 17:31:58,881 - [MAIN] - ERROR - DOL.GS.ScriptMgr - Keine Überladung für die Methode 'SendMessage' nimmt 1-Argumente an. 17:31:58,882 - [MAIN] - ERROR - DOL.GS.ScriptMgr - x:\DOL SERVER PROJEKT\RUNING SERVER\debug\scripts\Customtest\NewTeleporter.cs Line:106 Col:21
Greetings Joku