Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- }else if (gv_CurrentInventoryContextSelection==3){ //Drop
- if (gv_EquipmentSlotLinks[0]==gv_CurrentInventorySelection){ //Equipment check (Weapon)
- gv_EquipmentSlotLinks[0]=-1;
- DialogControlSetVisible(gv_StatusItems[0], PlayerGroupAll(), false);
- }else if (gv_EquipmentSlotLinks[1]==gv_CurrentInventorySelection){ //Equipment check (Misc)
- gv_EquipmentSlotLinks[1]=-1;
- DialogControlSetVisible(gv_StatusItems[1], PlayerGroupAll(), false);
- }
- SoundPlay(SoundLink("UI_ActionButtonSelect", -1), PLAYER_GROUP_USER, 100.0, 0.0); //Action
- DialogControlSetVisible(gv_InventoryItems[gv_CurrentInventorySelection], PlayerGroupAll(), false); //Hide item image
- UnitCreate(1, gv_ItemTypeArray[gv_InventoryItemTypeIndex[gv_CurrentInventorySelection]].lv_id, 0, 0, PointWithOffsetPolar (UnitGetPosition(gv_Hero), RandomFixed(0,0.33), RandomFixed(-180,180)), 270.0);
- gv_InventoryItemTypeIndex[gv_CurrentInventorySelection]=-1; //Free inventory slot
- gv_CurrentGameState=GAME_STATE_INVENTORY;
- }
- libNtve_gf_SetDialogItemText(gv_InventoryContextDialogItems[gv_CurrentInventoryContextSelection], StringToText(gv_InventoryContextItemString[gv_CurrentInventoryContextSelection]), PlayerGroupAll()); //Fix selection glitch
- DisplayInventoryContextDialog(false);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement