private void Move_Button_Click(object sender, RoutedEventArgs e) { var ob = (MovableObject)this.DataContext; var txt = dstTextBox.Text; var p = IntVector3.Parse(txt); var args = new Dictionary <string, object>() { { "obid", ob.ObjectID }, { "p", p }, }; var script = "world.GetObject(obid).MoveTo(p)"; var msg = new Dwarrowdelf.Messages.IPScriptMessage(script, args); GameData.Data.User.Send(msg); }