- Joined
- Jul 18, 2009
- Messages
- 658
- Reaction score
- 75
Hi how can i add starting items and starting zulie ? im using evo revision 4
Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!
Join Today!if(!DB->QExecute("INSERT INTO characters (account_name, char_name, face, hairStyle, sex) VALUES('%s','%s',%i,%i,%i)", thisclient->username, newname.c_str(), face, hairstyle, sex))
return false;
unsigned int mid = (unsigned)mysql_insert_id( DB->Mysql );
MYSQL_ROW row;
if(!DB->QExecute("INSERT INTO items VALUES(%i,29,3,0,40,100,3,1,0,0,0,0,0)", mid))
return false;
if(!DB->QExecute("INSERT INTO items VALUES(%i,29,5,0,40,100,6,1,0,0,0,0,0)", mid))
return false;
if(!DB->QExecute("INSERT INTO items VALUES(%i,1,8,0,40,100,7,1,0,0,0,0,0)", mid))
return false;
if(sex==0)
{
if(!DB->QExecute("INSERT INTO items VALUES(%i,222,2,0,40,100,12,1,0,0,0,0,0)", mid))
return false;
}
else
{
if(!DB->QExecute("INSERT INTO items VALUES(%i,221,2,0,40,100,12,1,0,0,0,0,0)", mid))
return false;
}
if(!DB->QExecute("INSERT INTO characters (account_name, char_name, face, hairStyle, sex, hairColor) VALUES('%s','%s',%i,%i,%i, %i)", thisclient->username, name.c_str(), face, hairstyle, sex, haircolor))
return false;
unsigned int mid = (unsigned)mysql_insert_id( DB->Mysql );
for(int i=0; i<ItemNewChar.size();i++)
{
if(ItemNewChar[i]->sex == 2 || ItemNewChar[i]->sex == sex)
{
if(ItemNewChar[i]->premium == true && thisclient->premium == false)
continue;
if(!DB->QExecute("INSERT INTO items VALUES(%i,29,3,0,40,100,3,1,0,0,0,0,0)", mid))
return false;
if(!DB->QExecute("INSERT INTO items VALUES(%i,29,5,0,40,100,6,1,0,0,0,0,0)", mid))
return false;
if(!DB->QExecute("INSERT INTO items VALUES(%i,1,8,0,40,100,7,1,0,0,0,0,0)", mid))
return false;
if(sex==0)
{
if(!DB->QExecute("INSERT INTO items VALUES(%i,222,2,0,40,100,12,1,0,0,0,0,0)", mid))
return false;
}
else
{
if(!DB->QExecute("INSERT INTO items VALUES(%i,221,2,0,40,100,12,1,0,0,0,0,0)", mid))
return false;
}