Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void CaçaArmia(int clientid)
- {
- MOB *player = (MOB*)GetMobFromIndex(clientid);
- int Armia = GetFirstSlotSADD(clientid, 3231, 64);
- if(Armia != -1)
- {
- if(player->Inventory[Armia].EF1 == 61)
- {
- if(player->Inventory[Armia].EFV1 >= 1)
- {
- DoTeleport(clientid, 2100,2100);
- player->Inventory[Armia].EFV1 -= 1;
- SendALL(clientid); SendEquip(clientid);
- SaveChar(1,clientid);
- return;
- }
- }
- else if(player->Inventory[Armia].EFV1 == 0)
- {
- DoTeleport(clientid, 2100,2100);
- player->Inventory[Armia].Index = 0;
- SendALL(clientid); SendEquip(clientid);
- SaveChar(1,clientid);
- return;
- }
- }
- else if(player->Inventory[Armia].EF1 == 0)
- {
- DoTeleport(clientid, 2100,2100);
- player->Inventory[Armia].Index = 0;
- SendALL(clientid); SendEquip(clientid);
- SaveChar(1,clientid);
- return;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement