Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void PesaAG(int clientid)
- {
- MOB *player = (MOB*)GetMobFromIndex(clientid);
- int cMin = PInt(0x00A5EA414);
- int addr_bclient = clientid * 0x0410;
- int cX = PInt(addr_bclient + 0x015C6CEC);
- int cY = PInt(addr_bclient + 0x015C6CF0);
- int itenslot = GetFirstSlotSADD(clientid,3326,64);
- if(PInt(PesaA) <= 2);
- else
- {
- SendClientMsg(clientid,"Três grupos já estão participando da quest.");
- SendALL(clientid);
- return;
- }
- if(cX >= 2446 && cY >= 1680 && cX <= 2547 && cY <= 1740);
- else
- {
- SendClientMsg(clientid,"Use este item no Reino de Azran.");
- SendALL(clientid);
- return;
- }
- if((cMin == 01) || (cMin == 23) || (cMin == 58));
- else
- {
- SendClientMsg(clientid,"Acessível apenas nos minutos 01,21,41");
- SendALL(clientid);
- return;
- }
- DoTeleport(clientid, 1225, 189);
- PTeleport(clientid,1225,189);
- player->Inventory[itenslot].Index = 0;
- PInt(PesaA) += 1;
- respaw(clientid);
- SendALL(clientid);
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement