PDA

View Full Version : |Source| Comando lluvia



minato3205
26/07/2019, 04:36 PM
para los entendidos en el tema de desarrollo, dropeara cualquier item que coloquen en forma de lluvia como verán en el ejemplo.

les sera util a los GM para hacer eventos


int section = this->GetNumber(arg,0); int type = this->GetNumber(arg,1);
int level = this->GetNumber(arg,2);
int skill = this->GetNumber(arg,3);
int luck = this->GetNumber(arg,4);
int option = this->GetNumber(arg,5);
int exc = this->GetNumber(arg,6);
int set = this->GetNumber(arg,7);

for(int n=0;n < 15;n++)
{
GDCreateItemSend(lpObj->Index,lpObj->Map,(lpObj->X+(((GetLargeRand()%5)*2)-4)),(lpObj->Y+(((GetLargeRand()%5)*2)-4)),GET_ITEM(section,type),level,0,skill,luck,opti on,-1,exc,set,0,0,0,0xFF,0);
}

[Only registered and activated users can see links] ([Only registered and activated users can see links])

cualquier mejora en el código se agradece
PD: basado en Emu,xteam
Creditos:
MinatoRx