Xanadu16 / City3

TS (TorqueScript) City³
0 stars 3 forks source link

Inventory #16

Open Xanadu16 opened 11 years ago

Xanadu16 commented 11 years ago

3 items on hand, 3 item slots for backpack.

/swapitems 1 1 switches 1st slot on hand with 1st slot backpack.

On client GUI, must fetch icons and display them on the GUI.

JazZ5109AI commented 11 years ago

use uinames, not slot numbers for the / command.

Xanadu16 commented 11 years ago

I object to this method. If Im trying to swap SuperItemLongNameOhMyGodThisNameWillNeverEndPill with my AK47, theres not going to be enough time to type all that in. The client facilitates it, but if one doesnt have a client, I'd still like it to be simplified.

Find a way to associate slot numbers with the item datablocks.

evsl commented 11 years ago

"Find a way to associate slot numbers with the item datablocks."

What? This is default functionality iirc. Maybe just allow both uiname or slot number, that would simplify things.

Xanadu16 commented 11 years ago

By default, when you start out, your backpack is empty.

Example: /swapitems 1 3 1] Check if both "slots" are empty --Yes?: Return "Both are empty you dimwit." or as a client message box if possible. 2] Check if listed Backpack is occupied --Yes?: store in backpacktemporary, clear backpack slot 3] Check if onhand slot is occupied --Yes?: Store onhand item as a backpack item (for said backpack slot), clear item from slot --Move item from backpack temporary to listed item slot, clear temporary slot.