public string DeleteCharacter(int userId = -1, string sessionKey = "", int charId = -1) { MMO.Services.Compatibility.CheckClient(userId, sessionKey, charId); MMO.Services.Compatibility.DeleteCharacter(charId); return(JsonLazyReturn.Status()); }
public string CreateCharacter(int userId, string sessionKey, string name, int classId) { MMO.Services.Compatibility.CheckClient(userId, sessionKey, null); MMO.Services.Compatibility.CreateCharacter(userId, name, classId); return(JsonLazyReturn.Status()); }
public string ClanRemoveCharacter(int character_id) { if (MMO.Services.Compatibility.ClanRemove(character_id)) { return(JsonLazyReturn.Status()); } else { return(JsonLazyReturn.Status("Fail to leave clan.")); } }
public string ClanDisband(int character_id) { if (MMO.Services.Compatibility.ClanDisband(character_id)) { return(JsonLazyReturn.Status()); } else { return(JsonLazyReturn.Status("Unable to disband clan.")); } }
public string ClanCreate(string clan_name, string character_name) { if (MMO.Services.Compatibility.ClanCreate(character_name, clan_name)) { return(JsonLazyReturn.Status()); } else { return(JsonLazyReturn.Status("User already in another clan")); } }
public string ClanAddCharacter(string character_name, int clan_id) { if (MMO.Services.Compatibility.ClanAdd(character_name, clan_id)) { return(JsonLazyReturn.Status()); } else { return(JsonLazyReturn.Status("User already in another clan")); } }
//public string SaveCharacter(string charid, string inventory, string quests, string health, string mana, string experience, string level, // string posx, string posy, string posz, string yaw, // string equip_head, string equip_chest, string equip_hands, string equip_legs, string equip_feet, // string hotbar0, string hotbar1, string hotbar2, string hotbar3) public string SaveCharacter(Character character) { if (MMO.Services.Compatibility.SaveCharacter(character)) { return(JsonLazyReturn.Status()); } else { return(JsonLazyReturn.Status("Fail to replicate data.")); } }
public string Registration(string accountname, string accountpassword, string accountemail) { if (MMO.Services.Compatibility.Register(accountname, accountpassword, accountemail)) { return(JsonLazyReturn.Status()); } else { return(JsonLazyReturn.Status("This account already exists or name is taken.")); } }