Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "DLLMain.h"
- void WINAPI SeloDoComandante_Counter(int clientid)
- {
- Atualizar *p;
- Sleep(10);
- p->TempoVerde(clientid,600);
- p->GenerateSpawn(10);
- Sleep(600000);
- p->DoTeleportArea(2100,2100,1305,1440,1380,1475);
- PByte(0x04BFB8E) = 0;
- Sleep(10);
- }
- void Volatiles::SeloDoComandante(int clientid)
- {
- Atualizar *p;
- MOB *player = (MOB*)GetMobFromIndex(clientid);
- int addr_bclient = clientid * 0x0410;
- int cX = PInt(addr_bclient + 0x015C6CEC);
- int cY = PInt(addr_bclient + 0x015C6CF0);
- int Grupo = PInt(addr_bclient + 0x015C6CD0);
- int Selo = PByte(0x04BFB8E);
- int ITEM = p->GetFirstSlotSADD(clientid,3457,64);
- if(player->Equip[0].EFV2 == 3)
- {
- if(Grupo == 0)
- {
- if(Selo == 00)
- {
- if(player->Inventory[ITEM].EFV1 >= 2)
- {
- CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)SeloDoComandante_Counter, NULL, 0, 0);
- player->Inventory[ITEM].EFV1 -= 1;
- p->DoTeleport(clientid,1341,1465);
- p->PTeleport(clientid,1341,1465);
- Selo = 1;
- p->SendALL(clientid);
- return;
- }
- if(player->Inventory[ITEM].EFV1 <= 1)
- {
- CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)SeloDoComandante_Counter, NULL, 0, 0);
- player->Inventory[ITEM].Index == 0;
- p->DoTeleport(clientid,1341,1465);
- p->PTeleport(clientid,1341,1465);
- Selo = 1;
- p->SendALL(clientid);
- return;
- }
- }
- else if(Selo >= 01)
- {
- p->SendClientMsg(clientid,"Outros jogadores já estão realizando esta quest.");
- p->SendALL(clientid);
- return;
- }
- }
- else
- {
- p->SendClientMsg(clientid,"Uso apenas sendo Lider do Grupo.");
- p->SendALL(clientid);
- return;
- }
- }
- else
- {
- p->SendClientMsg(clientid,"Somente [Celestial / SubCelestial] Podem Realizar a Quest.");
- p->SendALL(clientid);
- return;
- }
- }
Add Comment
Please, Sign In to add comment