Team Cape Posted September 30, 2016 Share Posted September 30, 2016 what the hell is wrong with you people 1 Quote Link to comment Share on other sites More sharing options...
Mr Pro Pop Posted September 30, 2016 Share Posted September 30, 2016 what the hell is wrong with you people lmao, Rip this thread ++ Quote Link to comment Share on other sites More sharing options...
Solzhenitsyn Posted October 2, 2016 Share Posted October 2, 2016 (edited) just because your version is more simplistic, it doesn't necessarily mean it's better. the checks are also objective, you pronounce it tomato, i pronounce it tomatoe, etc i'd rather not spam the player's game chat with "you do not have enough inventory space for that". When a shorter piece of code does the same thing, I think you should prefer it. In any case, his solution is objectively better, if only by a small margin - Withdraw n: 1) first iteration - set x to n. 2) all subsequent iterations, less final iteration, withdraw n. 3) final iteration - set n to m, withdraw m. Withdraw all: 1) all iterations - withdraw all xp wayste ur losin tix bro wut fukery is dis thred Edit: Since I'm a faggot who loves to show off: http://imgur.com/3PjIDjS Write yourself a package which handles common inventory and banking interactions and it will serve you well in virtually every script that you write. Edited October 2, 2016 by Solzhenitsyn Quote Link to comment Share on other sites More sharing options...