SOLVED by: elime
ADDING STORAGE TO ANOTHER
Hello, i need another little help.-
how it's supposed to be what i can add a storage to other? Example the function setPlayerStorageValue(cid, 828, getPlayerStorageValue(cid, 828) + 500) but in C++
This is wanna edit u.u
thx, i hope someone can help me on this D:
ADDING STORAGE TO ANOTHER
Hello, i need another little help.-
how it's supposed to be what i can add a storage to other? Example the function setPlayerStorageValue(cid, 828, getPlayerStorageValue(cid, 828) + 500) but in C++
This is wanna edit u.u
Code:
std::string stora
std::string newStora = "-10";
if(isSummon() && getStorage(1008, stora) && seconds <= OTSYS_TIME()){
int32_t intValue = atoi(stora.c_str());
if(intValue && intValue >= 0)
{
const Position& tmp = getPosition();
setStorage(1008, newStora);
g_game.addMagicEffect(tmp, 173);
seconds = OTSYS_TIME() + 30000;
}
}
thx, i hope someone can help me on this D:
Last edited: