I want plvl1 accounts to get instant ported, on login.. But on plvl2/3, i do not want instant port on login.
Can any1 help me, on how to add it to this code? Can't figure it atm
I have added this to DOLtestserver.cs
- Code: Select all
//After registering for the OnPlayerEnterWorldFirstTime event this //function is called whenever a character enters the game public static void DOLTestPlayerEnterWorld(DOLEvent e, object sender, EventArgs args) { GamePlayer player = sender as GamePlayer; if (player == null) return; //We send a nice output message to the player when he enters the game //player.Out.SendMessage("", eChatType.CT_Important, eChatLoc.CL_SystemWindow); if (player.Realm == eRealm.Albion) { player.MoveTo(200, 475887, 344040, 4103, 142); player.Bind(true); } else if (player.Realm == eRealm.Midgard) { player.MoveTo(200, 475146, 294713, 3848, 604); player.Bind(true); } else if (player.Realm == eRealm.Hibernia) { { player.MoveTo(200, 438352, 367983, 4136, 973); player.Bind(true); { } } } }