Conectare

Mi-am uitat parola

Navigare
 Portal
 Index
 Membri
 Profil
 FAQ
 Cautare
Ultimele subiecte
» DOVENTRA MU S2 Exp: 9999x Drop: 70%
Mier Noi 14, 2012 7:48 pm Scris de uMad

» [Release][Savoy]MuOnline Webshop 0.9B
Lun Apr 23, 2012 9:52 am Scris de UlfSaars311

» Download Center
Joi Feb 23, 2012 2:47 pm Scris de angelboyy

» ReRe4Fun Season 4 Episode 1 Mu Online Server
Joi Dec 29, 2011 5:28 am Scris de CenZuraT

» Comprare Viagra. prezzo viagra generico
Joi Aug 04, 2011 2:52 pm Scris de Vizitator

» Compra Viagra. acquistare viagra generico italia
Joi Aug 04, 2011 12:17 pm Scris de Vizitator

» Acquisto Viagra. viagra generico prezzo on line
Joi Aug 04, 2011 2:05 am Scris de Vizitator

» Compra Viagra. costo viagra generico
Joi Aug 04, 2011 1:00 am Scris de Vizitator

» fish oil 3
Joi Aug 04, 2011 12:25 am Scris de Vizitator


[C++][MuOnline]AutoPK Clear Guard

In jos

[C++][MuOnline]AutoPK Clear Guard

Mesaj Scris de Azzaroth la data de Vin Aug 08, 2008 9:06 am

Cod:

void PKClearGuard(int aIndex)
{
if (!PKClear_Active) return;
if (!gObjIsConnected(aIndex)) return;
lpObj->Init(aIndex);
int Price = PKClear_Price * (lpObj->PKLevel - 3);
if (lpObj->PKLevel <4>PM(aIndex, "[PK Clear] You are already a commoner!");
return;
}
if (lpObj->Money <Price>PM(aIndex, "[PK Clear] You don't have enough money! Lacking %d.", Price - lpObj->Money);
return;
}
int Amount = lpObj->Money - Price;
lpObj->SetInt(0xB4, Amount);
GCMoneySend(aIndex, Amount);
lpObj->SetInt(0x101, 3);
GCPKLevelSend(aIndex, 3);
Send->PM(aIndex, "[PK Clear] You are a commoner again! %d Zen left.", Amount);
GCFireWorkSend(aIndex, lpObj->PosX, lpObj->PosY, 1);
Log(Black, "[PK Clear] [%s][%s] Used PK Clear Guard.", lpObj->Login, lpObj->Nick);
}

Protocol sql

switch (mobObj->Class)
{
case 249:
PKClearGuard(aIndex);
break;

Azzaroth
owner
owner

Numarul mesajelor : 231
Varsta : 23
Localizare : root@nasa.gov
Data de inscriere : 04/06/2008

Vezi profilul utilizatorului

Sus In jos

Sus


 
Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum