Advertisement
Guest User

Untitled

a guest
May 29th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.54 KB | None | 0 0
  1. }else if (gv_CurrentInventoryContextSelection==3){ //Drop
  2.                     if (gv_EquipmentSlotLinks[0]==gv_CurrentInventorySelection){ //Equipment check (Weapon)
  3.                         gv_EquipmentSlotLinks[0]=-1;
  4.                         DialogControlSetVisible(gv_StatusItems[0], PlayerGroupAll(), false);
  5.                     }else if (gv_EquipmentSlotLinks[1]==gv_CurrentInventorySelection){ //Equipment check (Misc)
  6.                         gv_EquipmentSlotLinks[1]=-1;
  7.                         DialogControlSetVisible(gv_StatusItems[1], PlayerGroupAll(), false);
  8.                     }
  9.                     SoundPlay(SoundLink("UI_ActionButtonSelect", -1), PLAYER_GROUP_USER, 100.0, 0.0); //Action
  10.                     DialogControlSetVisible(gv_InventoryItems[gv_CurrentInventorySelection], PlayerGroupAll(), false); //Hide item image
  11.                     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);              
  12.                     gv_InventoryItemTypeIndex[gv_CurrentInventorySelection]=-1; //Free inventory slot
  13.                     gv_CurrentGameState=GAME_STATE_INVENTORY;
  14.                 }
  15.                 libNtve_gf_SetDialogItemText(gv_InventoryContextDialogItems[gv_CurrentInventoryContextSelection], StringToText(gv_InventoryContextItemString[gv_CurrentInventoryContextSelection]), PlayerGroupAll()); //Fix selection glitch
  16.                 DisplayInventoryContextDialog(false);
  17.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement