but in which file? what's the variabels that I must to change?1- Why would you want to change it?
2- Change the variable type ;s, i bet is uint32_t.
[B][COLOR="Red"]u[/COLOR][/B]int32_t duration = item->getDuration() / 1000;
void setDuration([B][COLOR="Red"]u[/COLOR][/B]int32_t time) {setIntAttr(ATTR_ITEM_DURATION, time);}
void decreaseDuration([B][COLOR="Red"]u[/COLOR][/B]int32_t time) {increaseIntAttr(ATTR_ITEM_DURATION, -time);}
[B][COLOR="Red"]u[/COLOR][/B]int32_t getDuration() const {return getIntAttr(ATTR_ITEM_DURATION);}
it.decayTime = std::max(([B][COLOR="Red"]u[/COLOR][/B]int32_t)0, intValue);
That's uint64_t :Sedit:
ah no, long unsigned int is
18446744073709551615
xD
good idea, but i want it to other purpose, must be by source editing :/Well, going by your logic, items can have a duration of 24.8 days.
Do you really wish to have items with THAT long of a duration?
If that's the case then wouldn't be better to just add a separate column in the player_items table, where you input the UNIX-TIME when the item was added to the player, and then have an onlogin script or something that checks if the item has "expired" and thus removes it if that's the case.