View difference between Paste ID: a5YYJq9x and ViLPPFRe
SHOW: | | - or go back to the newest paste.
1
//lolohac
2
#include"DLLMain.h"
3
#define vNick(clientid) (char*)(clientid * 0x0410 + 0x015C69B8) // Caso não tenha.
4
5
void Volatiles::ItemX(int clientid)
6
{
7
	MOB *player = (MOB*)GetMobFromIndex(clientid);
8
	FILE *arquivo;
9-
	FILE *arquivo2;
9+
        char ARQUI[50];
10-
	char ARQUI[50];
10+
11
	sprintf(ARQUI,"DataBase/ITEMX/[%s].txt", vNick(clientid));
12
	if(Atualizar::file_exists(ARQUI))
13
	{ 
14
		Atualizar::SendClientMsg(clientid,"Você ja utilizou o Item  X");
15
	} 
16
	else
17
	{ 
18
		char deca [50];
19
		player->Inventory[itenslot].Index = 0;
20
		Atualizar::SendALL(clientid);
21
		arquivo = fopen(ARQUI,"w");
22
		fputs(deca,arquivo);
23
		fclose(arquivo);
24
		{ 
25
			Atualizar::SendClientMsg(clientid,"Você utilizou Item x com sucesso");
26
		} 
27
	} 
28
}