Jump to content

Herb Cleaning


Recommended Posts

Posted (edited)

just because your version is more simplistic, it doesn't necessarily mean it's better. doge.png

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 gnome.png

 

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 by Solzhenitsyn

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...