Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "DLLMain.h"
- void Merch::Kibita(int clientid,int npcid)
- {
- MOB *thisclient = (MOB*)GetMobFromIndex(clientid);
- Atualizar *p;
- int itenslot = p->GetFirstSlot(clientid,420,0,0,0,0,0,0,64);
- int cHor = PInt(0x00A5EA418);
- int cDia = PInt(0x00a5ea428);
- if(thisclient->Equip[0].EFV2 == 1)
- {
- if(cDia != 0 && cDia != 6)
- {
- if(cHor == 21)
- {
- if(itenslot != -1)
- {
- for(int i=0;i<15;i++)
- {
- if(thisclient->Affects[i].Index == 0)
- {
- thisclient->Affects[i].Index = 29;
- thisclient->Affects[i].Master = 29;
- thisclient->Affects[i].Time = 500;
- thisclient->Affects[i].Value = 700;
- thisclient->Inventory[itenslot].Index = 0;
- p->DoTeleport(clientid,2459,1838);
- p->SendALL(clientid);
- break;
- }
- else
- return;
- }
- thisclient->bStatus.maxHP += 10000;
- if(thisclient->bStatus.curHP > 20000)
- {
- thisclient->bStatus.maxHP -= 10500;
- }
- p->SendScore(clientid);
- p->SendALL(clientid);
- return;
- }
- else
- p->SendSay(npcid,"Tragame um Resto de Lactorium.");
- }
- else
- p->SendSay(npcid,"Aguarde ate as 21:00 Horas.");
- return;
- }
- else
- p->SendSay(npcid,"Você só pode usar a Kibita em dias da semana.");
- return;
- }
- else
- {
- p->SendSay(npcid,"Desculpe.");
- return;
- }
- }
Add Comment
Please, Sign In to add comment