Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void DEXparaFOR(int clientid)
- {
- MOB *player = (MOB*)GetMobFromIndex(clientid);
- int DEXFOR = GetFirstSlot(clientid,3156,0,0,0,0,0,0,64);
- if(DEXFOR != -1)
- {
- if(player->bStatus.STR >= 0 && player->bStatus.DEX >= 100)
- {
- SendClientMsg(clientid,"Foi retirado 100 Dex e foi adicionado em For.");
- player->Inventory[DEXFOR].Index = 0;
- player->bStatus.DEX -= 100;
- player->bStatus.STR += 100;
- SendEffect(3,14,clientid);
- GetCurrentScore(clientid);
- SendStats(clientid);
- SaveChar(1,clientid);
- SendALL(clientid);
- return;
- }
- SendClientMsg(clientid,"Pontos Insuficiente.");
- SendALL(clientid);
- return;
- }
- else
- {
- SendALL(clientid);
- }
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement