RyanB Posted January 22, 2013 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 3 Reputation: 0 Joined: 05/24/12 Last Seen: November 7, 2016 Share Posted January 22, 2013 anyway to do it? Quote Link to comment Share on other sites More sharing options...
Brian Posted January 22, 2013 Group: Members Topic Count: 75 Topics Per Day: 0.02 Content Count: 2223 Reputation: 593 Joined: 10/26/11 Last Seen: June 2, 2018 Share Posted January 22, 2013 What guild info do you want to read from SQL? (guilds? guild castles? guild members?) What do you want to do with this information? (read it into a script? and then what?) Quote Link to comment Share on other sites More sharing options...
RyanB Posted January 23, 2013 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 3 Reputation: 0 Joined: 05/24/12 Last Seen: November 7, 2016 Author Share Posted January 23, 2013 (edited) Actually i need info of guilds, guild castles, guild members, guild alliances. I'm trying to make a script/atcommand that can check guilds' info. And check alliance relations by script, using sql is not accurate coz do not update instantly. Edited January 23, 2013 by RyanB Quote Link to comment Share on other sites More sharing options...
Brian Posted January 25, 2013 Group: Members Topic Count: 75 Topics Per Day: 0.02 Content Count: 2223 Reputation: 593 Joined: 10/26/11 Last Seen: June 2, 2018 Share Posted January 25, 2013 I'm trying to make a script/atcommand that can check guilds' info. And check alliance relations by script, using sql is not accurate coz do not update instantly. But once this NPC reads the guild info from SQL (when the server starts), how will the NPC be updated when guild info changes? Maybe you could just reduce autosave_time so guild info is saved to SQL more frequently (it's already set to 60 seconds). trunk/conf/char_athena.conf // How often should the server save all files? (In seconds) // Note: Applies to all data files on TXT servers. // On SQL servers, it applies to guilds (character save interval is defined on the map config) autosave_time: 60 Quote Link to comment Share on other sites More sharing options...
RyanB Posted January 25, 2013 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 3 Reputation: 0 Joined: 05/24/12 Last Seen: November 7, 2016 Author Share Posted January 25, 2013 int mapif_parse_GuildInfo(int fd,int guild_id){ struct guild * g = inter_guild_fromsql(guild_id); //We use this because on start-up the info of castle-owned guilds is requied. [skotlex] if(g) { if (!guild_calcinfo(g)) { int i; mapif_guild_info(fd,g); for(i=0;i<MAX_GUILDALLIANCE;i++) { struct guild * a = inter_guild_fromsql(g->alliance.guild_id); if(a) mapif_guild_info(-1,a); } } } else mapif_guild_noinfo(fd,guild_id); // Failed to load info return 0; } I did this but i dunno would it crash anything or not Quote Link to comment Share on other sites More sharing options...
Question
RyanB
anyway to do it?
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.