beenii
Well-Known Member
- Joined
- Jul 26, 2010
- Messages
- 586
- Solutions
- 1
- Reaction score
- 58
hi, I am trying to create the items that expire in tibia rl.
Example:
If the item is not used, it disappears.
i have to edit this function?
currently when you leave the game, the decay stops
Example:
Code:
17:50 You see a temple teleport scroll that will expire in 3 days and 8 hours.
It weighs 1.20 oz.
i have to edit this function?
Code:
int LuaScriptInterface::luaItemDecay(lua_State* L)
{
// item:decay()
Item* item = getUserdata<Item>(L, 1);
if (item) {
g_game.startDecay(item);
pushBoolean(L, true);
} else {
lua_pushnil(L);
}
return 1;
}
currently when you leave the game, the decay stops