| 01-13-2004, 09:52 PM | #1 |
I need a way to make my items unable to be moved but droppable any of you got a good idea on how to do this? |
| 01-13-2004, 10:15 PM | #2 |
what do you mean? Items dont normaly move... |
| 01-13-2004, 10:22 PM | #3 |
change their slot in your inventory. Like I want to disallow moving item in slot 1 to slot 2. |
| 01-13-2004, 10:47 PM | #4 |
i dont think this is possible without a constantly firing trigger that loops through each inventory slot and makes sure the item is there. |
| 01-14-2004, 05:15 PM | #5 |
It's easy. In fact, I've been coming up with an intenvory system and at one point was stumped as well. Trying looking for the issued ordered id when you move an item - yes, there are unique ones for each slot. You can also get the issued order target item. From those, you should be able to throw something together. Net result - items that are 'movable' but do not in fact appear to move. |
| 01-14-2004, 07:02 PM | #6 |
yeah Saddism I know the they are an order issue betwen 852002-852008 but since you can't cancel the action midway through the order (calling a stop only wll make the hero stop after the items moved), i'll have to basically cache your inventory. And while I technically do have your cache items (my case call a nextPage with udg_LastIndex set back to -1 the starting item) i was hoping for something which would not require calls to nextPage. |
| 01-14-2004, 07:12 PM | #7 |
Well, I only have two items that are droppable that I dont want movable - so I simply set up if thens with conditions for those 2 items for the various orders that could be given. However, depending on how your system it set up you might have a lot more items to work with. |
| 01-14-2004, 08:08 PM | #8 |
I know how your system works, and i think this should work fine: Currently when you are in the area to equip an item, you click on a item and its equipped. Well what if you added 1 extra step. When you click on the item instead of equipping, it brings up another "menu" with 2 (or more) options: Equip this item, Drop This Item. |
| 01-14-2004, 08:48 PM | #9 |
Another idea is to create periodic event with very small period then check each item's position and move it if required. |
| 01-14-2004, 08:49 PM | #10 |
Dakan thats the lazy man fix I want you to be able to sell the item and without writing my own sell code theres no other way but deflagging undroppable. |
