Código, para compilar...
#include <iostream>
#include <fstream>
///////////////////////////////////////////////////
// QUEST MAKER [BETA] //
// Desenvolvido por Caronte, //
// visite xtibia.com para saber mais! //
// não remova os créditos. //
//////////////////////////////////////////////
using namespace std;
int main()
{
int answ1;
int answ2;
int answ3;
ofstream makefile;
makefile.open("arquivo.lua");
makefile << " --[[ Arquivo gerado pelo QuestMaker / Feito por caronte ]] \n function onUse(cid, item, frompos, itemex, topos) " << endl;
// Não remover créditos, por favor
cout << "QUEST MAKER [BETA],\n Desenvolvido por Caronte,\n visite xtibia.com para saber mais! \n\n" << endl;
cout << "Escolha seu storage, use 0 para quest sem storage (sem limite de uso): ";
cin >> answ1;
if(answ1 != 0)
{
makefile << " if getPlayerStorageValue(cid," << answ1 <<") == -1 then" << endl;
}
cout << "Escolha o item que a quest vai dar: ";
cin >> answ2;
cout << "Escolha a quantidade do item: ";
cin >> answ3;
makefile << " doPlayerAddItem(cid, " << answ2 <<", " << answ3 <<")" << endl;
if(answ1 != 0)
{
makefile << " setPlayerStorageValue(cid, "<< answ1 <<", 1)" << endl;
makefile << " else" << endl;
makefile << " doSendMagicEffect(frompos, CONST_ME_POFF)" << endl;
makefile << " doPlayerSendCancel(cid, 'The chest is empty.')" << endl;
makefile << " end" << endl;
}
makefile << " return true" << endl << "end";
makefile.close();
cout << "Quest criada ! \n ---------------------";
return system("PAUSE");
}
Para compilar em 32 bits é só ir na toolstrip Project:








info
Grupo: Barão
Registrado: 21/04/15
Posts: 226
Reputação: +9
Gênero: Masculino
então iria da certo para meu pc?. Se for isso