intlife=QInputDialog::getInteger(0,tr("Set life"),tr("New life total:"),localPlayer->getCounters()->findCounter("life")->getValue(),0,2000000000,1,&ok);
intlife=QInputDialog::getInteger(0,tr("Set life"),tr("New life total:"),localPlayer->area->getCounter("life")->getValue(),0,2000000000,1,&ok);