Author Topic: SetChannelData  (Read 55 times)

devomage

  • Full Member
  • ***
  • Thank You
  • -Given: 7
  • -Receive: 67
  • Posts: 244
    • View Profile
SetChannelData
« on: January 08, 2018, 05:56:50 AM »
any chance of allowing the entire channel DataNode to be set at once?  rather than multiple single calls?

  1.  
  2. //
  3. //this does not work - but should (it works for playerdata)
  4. //
  5.  
  6. DataNode data = new DataNode("Version", Player.version);
  7. data.SetChild("type", MSTORM_ChannelType.Guild);
  8. data.SetChild("start", GAME.ServerTime);
  9. data.SetChild("founder", TNManager.playerName);
  10. data.SetChild("is_private", true);
  11. data.SetChild("invited", "");
  12. data.SetChild("name", "Guild");
  13.  
  14. TNManager.SetChannelData(channelID, "", data);
  15.  

  1. //line #1541 of TNGameClient.cs
  2. if (ch != null && !string.IsNullOrEmpty(path))
  3.