
Originally Posted by
fransh
Code:
if(thisclient->reborns>1)
{
SendPM(thisclient,"Too many reborns");
Log(MSG_INFO,"Too many reborns");
return true;
to make it clear to everyone // ->reborns>1 \\
if put 1 your max reborn = 2
if put 2 max reborn = 3
hmm well i i look at the osrose forums i found this script 2
and when rebuild this world server u get a Cplayer error
and a UINT error so do this :
Code:
MYSQL_RES *result = GServer->DB->QStore("SELECT level,face,hairStyle,sex,classid,zuly,str,dex,_int, con,cha,sen,curHp,curMp,id,statp,skillp,exp,stamina,quickbar,basic_skills, class_skills,class_skills_level,respawnid,clanid,clan_rank,townid,rewardpoints,unionid,unionfame,union01,union02,union03,union04,union05,bonusxp,timerxp,shoptype,timershop,isGM,unique_skills,mileage_skills,driving_skills,unique_skills_level,mileage_skills_level,bonusddrop,timerddrop,bonusstatdrop,timerstatdrop,bonusgraydrop,timergraydrop FROM characters WHERE char_name='%s'", CharInfo->charname);
with
Code:
MYSQL_RES *result = GServer->DB->QStore("SELECT level,face,hairStyle,sex,classid,zuly,str,dex,_int, con,cha,sen,curHp,curMp,id,statp,skillp,exp,stamina,quickbar,basic_skills, class_skills,class_skills_level,respawnid,clanid,clan_rank,townid,rewardpoints,unionid,unionfame,union01
,union02,union03,union04,union05,bonusxp,timerxp,shoptype,timershop,isGM,unique_skills,mileage_skills,driving_skills
,unique_skills_level,mileage_skills_level,bonusddrop,timerddrop,bonusstatdrop,timerstatdrop,bonusgraydrop,timergraydrop,reborns FROM characters WHERE char_name='%s'", CharInfo->charname);
and add
Code:
reborns=atoi(row[51]);
Log(MSG_INFO,"Nb reborns for %s is %i",CharInfo->charname,reborns);
after
Code:
timergraydrop=atoi(row[50]);
and add
after
Code:
bool isGM; // GM Security
and design your character table add a field called
PHP Code:
reborns int(1) DEFAULT '0'
Now will it work ;)