Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if((strncmp(comando, "add str", 7) == 0))
- {
- int add;
- int add2 = 0;
- char add3[41];
- if(player->bStatus.STR >= 32000)
- {
- SendClientMsg(clientid, "Limite de Pontos do comando atingido.");
- return;
- }
- else
- {
- sscanf(comando, "add str %d",&add);
- add2 += player->bStatus.STR;
- add2 += add;
- if(add >= 20)
- {
- if(add <= player->StatusPoint)
- {
- if(add2 <= 32000)
- {
- player->bStatus.STR += add;
- player->StatusPoint -= add;
- GetCurrentScore(clientid);
- SendStats(clientid);
- SendScore(clientid);
- SaveChar(1,clientid);
- GetCurrentScore(clientid);
- }
- else
- {
- sprintf(add3,"Não pode add [%d] pontos limite de 32000.", add2);
- SendClientMsg(clientid,add3);
- return;
- }
- }
- else
- {
- sprintf(add3,"Você não possui pontos sufuciente.");
- SendClientMsg(clientid,add3);
- return;
- }
- }else
- {
- sprintf(add3,"[%s] Você não pode fazer isso!",player->Name);
- SendClientMsg(clientid,add3);
- }
- }
- return;
- }
- else if((strncmp(comando, "add dex", 7) == 0))
- {
- int add;
- int add2 = 0;
- char add3[41];
- char ops[1024];
- char ops1[1024];
- char ops2[1024];
- char quest[1024];
- int var;
- char fama[1024];
- if(player->bStatus.DEX >= 32000)
- {
- SendClientMsg(clientid, "Limite de Pontos do comando atingido.");
- return;
- }
- else
- {
- sscanf(comando, "add dex %d",&add);
- add2 += player->bStatus.DEX;
- add2 += add;
- if(add >= 20)
- {
- if(add <= player->StatusPoint)
- {
- if(add2 <= 32000)
- {
- player->bStatus.DEX += add;
- player->StatusPoint -= add;
- var = add/3;
- player->bStatus.Attack += var;
- GetCurrentScore(clientid);
- SendStats(clientid);
- SendScore(clientid);
- SaveChar(1,clientid);
- GetCurrentScore(clientid);
- }
- else
- {
- sprintf(add3,"Não pode add [%d] pontos limite de 32000.", add2);
- SendClientMsg(clientid,add3);
- return;
- }
- }
- else
- {
- sprintf(add3,"Você não possui pontos sufuciente.");
- SendClientMsg(clientid,add3);
- return;
- }
- }else
- {
- sprintf(add3,"[%s] Você não pode fazer isso!",player->Name);
- SendClientMsg(clientid,add3);
- }
- }
- return;
- }
- else if((strncmp(comando, "add int", 7) == 0))
- {
- int add;
- int add2 = 0;
- char add3[41];
- if(player->bStatus.INT >= 12000)
- {
- SendClientMsg(clientid, "Limite de Pontos do comando atingido.");
- return;
- }
- else
- {
- sscanf(comando, "add int %d",&add);
- if(add >= 30)
- {
- add2 += player->bStatus.INT;
- add2 += add;
- if(add <= player->StatusPoint)
- {
- if(add2 <= 12000)
- {
- player->bStatus.INT += add;
- player->StatusPoint -= add;
- GetCurrentScore(clientid);
- SendStats(clientid);
- SendScore(clientid);
- SaveChar(1,clientid);
- GetCurrentScore(clientid);
- }
- else
- {
- sprintf(add3,"Não pode add [%d] pontos limite de 12000.", add2);
- SendClientMsg(clientid,add3);
- return;
- }
- }
- else
- {
- sprintf(add3,"Você não possui pontos sufuciente.");
- SendClientMsg(clientid,add3);
- return;
- }
- }else
- {
- sprintf(add3,"[%s] Você não pode fazer isso!",player->Name);
- SendClientMsg(clientid,add3);
- }
- }
- return;
- }
- else if((strncmp(comando, "add con", 7) == 0))
- {
- int add;
- int add2 = 0;
- int var;
- char add3[41];
- if(player->bStatus.CON >= 12000)
- {
- SendClientMsg(clientid, "Limite de Pontos do comando atingido.");
- return;
- }
- else
- {
- sscanf(comando, "add con %d",&add);
- if(add >= 20)
- {
- add2 += player->bStatus.INT;
- add2 += add;
- if(add <= player->StatusPoint)
- {
- if(add2 <= 12000)
- {
- var = add/3;
- player->bStatus.Defense += var;
- player->bStatus.CON += add;
- player->StatusPoint -= add;
- GetCurrentScore(clientid);
- SendStats(clientid);
- SendScore(clientid);
- SaveChar(1,clientid);
- GetCurrentScore(clientid);
- }
- else
- {
- sprintf(add3,"Não pode add [%d] pontos limite de 12000.", add2);
- SendClientMsg(clientid,add3);
- return;
- }
- }
- else
- {
- sprintf(add3,"Você não possui pontos sufuciente.");
- SendClientMsg(clientid,add3);
- return;
- }
- }else
- {
- sprintf(add3,"[%s] Você não pode fazer isso!",player->Name);
- SendClientMsg(clientid,add3);
- }
- }
- return;
- }
- else if((strncmp(comando, "add especial1", 13) == 0)) // w,f,s,t
- {
- int add;
- int add2 = 0;
- char add3[41];
- if(player->bStatus.wMaster >= 200)
- {
- SendClientMsg(clientid, "Limite de Pontos do comando atingido.");
- return;
- }
- else
- {
- sscanf(comando, "add especial1 %d",&add);
- if(add >= 20)
- {
- add2 += player->bStatus.wMaster;
- add2 += add;
- if(add <= player->MasterPoint)
- {
- if(add2 <= 200)
- {
- player->bStatus.wMaster += add;
- player->MasterPoint -= add;
- GetCurrentScore(clientid);
- SendStats(clientid);
- SendScore(clientid);
- SaveChar(1,clientid);
- GetCurrentScore(clientid);
- }
- else
- {
- sprintf(add3,"Não pode add [%d] pontos limite de 200.", add2);
- SendClientMsg(clientid,add3);
- return;
- }
- }
- else
- {
- sprintf(add3,"Você não possui pontos sufuciente.");
- SendClientMsg(clientid,add3);
- return;
- }
- }
- else
- {
- sprintf(add3,"[%s] Você não pode fazer isso!",player->Name);
- SendClientMsg(clientid,add3);
- }
- }
- return;
- }
- else if((strncmp(comando, "add especial2", 13) == 0)) // w,f,s,t
- {
- int add;
- int add2 = 0;
- char add3[41];
- if(player->bStatus.fMaster >= 200)
- {
- SendClientMsg(clientid, "Limite de Pontos do comando atingido.");
- return;
- }
- else
- {
- sscanf(comando, "add especial2 %d",&add);
- if(add >= 20)
- {
- add2 += player->bStatus.fMaster;
- add2 += add;
- if(add <= player->MasterPoint)
- {
- if(add2 <= 200)
- {
- player->bStatus.fMaster += add;
- player->MasterPoint -= add;
- GetCurrentScore(clientid);
- SendStats(clientid);
- SendScore(clientid);
- SaveChar(1,clientid);
- GetCurrentScore(clientid);
- }
- else
- {
- sprintf(add3,"Não pode add [%d] pontos limite de 200.", add2);
- SendClientMsg(clientid,add3);
- return;
- }
- }
- else
- {
- sprintf(add3,"Você não possui pontos sufuciente.");
- SendClientMsg(clientid,add3);
- return;
- }
- }
- else
- {
- sprintf(add3,"[%s] Você não pode fazer isso!",player->Name);
- SendClientMsg(clientid,add3);
- }
- }
- return;
- }
- else if((strncmp(comando, "add especial3", 13) == 0)) // w,f,s,t
- {
- int add;
- int add2 = 0;
- char add3[41];
- if(player->bStatus.sMaster >= 200)
- {
- SendClientMsg(clientid, "Limite de Pontos do comando atingido.");
- return;
- }
- else
- {
- sscanf(comando, "add especial3 %d",&add);
- if(add >= 20)
- {
- add2 += player->bStatus.sMaster;
- add2 += add;
- if(add <= player->MasterPoint)
- {
- if(add2 <= 200)
- {
- player->bStatus.sMaster += add;
- player->MasterPoint -= add;
- GetCurrentScore(clientid);
- SendStats(clientid);
- SendScore(clientid);
- SaveChar(1,clientid);
- GetCurrentScore(clientid);
- }
- else
- {
- sprintf(add3,"Não pode add [%d] pontos limite de 200.", add2);
- SendClientMsg(clientid,add3);
- return;
- }
- }
- else
- {
- sprintf(add3,"Você não possui pontos sufuciente.");
- SendClientMsg(clientid,add3);
- return;
- }
- }
- else
- {
- sprintf(add3,"[%s] Você não pode fazer isso!",player->Name);
- SendClientMsg(clientid,add3);
- }
- }
- return;
- }
- else if((strncmp(comando, "add especial4", 13) == 0)) // w,f,s,t
- {
- int add;
- int add2 = 0;
- char add3[41];
- if(player->bStatus.tMaster >= 200)
- {
- SendClientMsg(clientid, "Limite de Pontos do comando atingido.");
- return;
- }
- else
- {
- sscanf(comando, "add especial4 %d",&add);
- if(add >= 20)
- {
- add2 += player->bStatus.tMaster;
- add2 += add;
- if(add <= player->MasterPoint)
- {
- if(add2 <= 200)
- {
- player->bStatus.tMaster += add;
- player->MasterPoint -= add;
- GetCurrentScore(clientid);
- SendStats(clientid);
- SendScore(clientid);
- SaveChar(1,clientid);
- GetCurrentScore(clientid);
- }
- else
- {
- sprintf(add3,"Não pode add [%d] pontos limite de 200.", add2);
- SendClientMsg(clientid,add3);
- return;
- }
- }
- else
- {
- sprintf(add3,"Você não possui pontos sufuciente.");
- SendClientMsg(clientid,add3);
- return;
- }
- }
- else
- {
- sprintf(add3,"[%s] Você não pode fazer isso!",player->Name);
- SendClientMsg(clientid,add3);
- }
- }
- return;
- }
Add Comment
Please, Sign In to add comment