RagnaDev Posted October 23, 2018 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 39 Reputation: 0 Joined: 05/05/17 Last Seen: 20 hours ago Share Posted October 23, 2018 Hi, every time I relog, homunculus HP and SP are fully restored. After review int_homun.c , I realized that all values are loaded and set to the homun (Lvl, Name, Stats, etc...) but hd->hp and hd->sp are not updating the value ingame. On database, homunculus table values are: HP: 5000 MAX HP: 10000; SP: 100 MAX SP: 500; int_homun.c fragment of atois after sql query ... Sql_GetData(sql_handle, 15, &data, NULL); hd->hp = atoi(data); Sql_GetData(sql_handle, 16, &data, NULL); hd->max_hp = atoi(data); Sql_GetData(sql_handle, 17, &data, NULL); hd->sp = atoi(data); Sql_GetData(sql_handle, 18, &data, NULL); hd->max_sp = atoi(data); ... And to verify the values: ShowInfo("Homunculus loaded (HP: %d / MHP: %d - SP: %d / MSP: %d).\n", hd->hp, hd->max_hp, hd->sp, hd->max_sp); --- Prints: Homunculus loaded (HP: 5000 / MHP: 10000 - SP: 100 / MSP: 500). So, data is being loaded, but is not being applied. Any help will be appreciated. Quote Link to comment Share on other sites More sharing options...
0 RagnaDev Posted October 29, 2018 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 39 Reputation: 0 Joined: 05/05/17 Last Seen: 20 hours ago Author Share Posted October 29, 2018 bump Quote Link to comment Share on other sites More sharing options...
0 Xiao Posted January 18, 2020 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 65 Reputation: 0 Joined: 12/10/14 Last Seen: Yesterday at 02:03 PM Share Posted January 18, 2020 I have the same problem. Help please. Quote Link to comment Share on other sites More sharing options...
Question
RagnaDev
Hi, every time I relog, homunculus HP and SP are fully restored.
After review int_homun.c , I realized that all values are loaded and set to the homun (Lvl, Name, Stats, etc...) but hd->hp and hd->sp are not updating the value ingame.
On database, homunculus table values are:
HP: 5000
MAX HP: 10000;
SP: 100
MAX SP: 500;
int_homun.c fragment of atois after sql query
And to verify the values:
So, data is being loaded, but is not being applied.
Any help will be appreciated.
Link to comment
Share on other sites
2 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.