another way....not sure correct or not..
void clif_parse_AutoRevive(int fd, struct map_session_data *sd)
{
int diff;
time_t timer;
struct tm *t;
time(&timer);
t = localtime(&timer);
diff = t->tm_mday*24*60 + t->tm_hour*60 + t->tm_min - pc_readglobalreg(sd, "REVIVE_DELAY");
int item_position = pc_search_inventory(sd, ITEMID_TOKEN_OF_SIEGFRIED);
if( diff >= 0 && diff < battle_config.revive_interval )
return;
if (item_position < 0)
return;
if (sd->sc.data[sC_HELLPOWER]) //Cannot res while under the effect of SC_HELLPOWER.
return;
if (!status_revive(&sd->bl, 100, 100))
return;
clif_skill_nodamage(&sd->bl,&sd->bl,ALL_RESURRECTION,4,1);
pc_delitem(sd, item_position, 1, 0, 1);
pc_setglobalreg(sd,"REVIVE_DELAY", t->tm_mday*24*60 + t->tm_hour*60 + t->tm_min);
}
i try to copy the way for Duel Delay xD
add this inside the
conf/battle/misc.conf
// Delay between using Token of Siegfried in minutes[/color]
[color=#000000]revive_interval: 60