Graal Pastebin

New Paste
Pasted on January 29, 2012.
View the raw file

this.("weapon"@temp.v) = new GuiShowImgCtrl("weaponImg"@temp.v);
      this.("weapon"@temp.v).image = this.search_list[temp.v].image;
      this.("weapon"@temp.v).x = new_x_position + 15.5;
      this.("weapon"@temp.v).y = new_y_position + 35;
      this.("weapon"@temp.v).layer = 6;
      this.("weapon"@temp.v).mode = 1;
      this.("weapon"@temp.v).hint = "loading...";
      this.("weapon"@temp.v).showhints();
      this.("weapon"@temp.v).width = 32;
      this.("weapon"@temp.v).height = 32;
      this.("weapon"@temp.v).wep = this.search_list[temp.v].name;
      ("ItemWindow_" @ item).addControl(this.("weapon"@temp.v));
      thiso.catchevent(this.("weapon"@temp.v), "onMouseDown", "leftMouse");
      thiso.catchevent(this.("weapon"@temp.v), "onRightMouseDown", "rightMouse");
      thiso.catchevent(this.("weapon"@temp.v), "onMouseEnter", "hoverMouseEnter");
      thiso.catchevent(this.("weapon"@temp.v), "onMouseLeave", "hoverMouseLeave");
//giving temp.v the correct value to search through a list of weapons
}
function rightMouse(obj) {
  if (!this.clicking)
  {
    if (!this.draggingInv)
    {
      this.clicking = true;
      this.clickedright = obj.wep;
 
      new GuiPopUpMenuCtrl("Item_Menu") {
        profile     = "GuiBluePopUpMenuProfile";
        textprofile = "Armageddon_TextList";
        scrollprofile = "Armageddon_Scroll";
        width       = 20;
 
        clearrows();
        addRow(0, "Sell");
        addRow(1, "Drop");
        open(mousescreenx, mousescreeny);
      }
    }
  }
  else
  {
    this.clicking = false;
  }
}
function Item_Menu.onSelect(entryid, text) {
  switch (text)
  {
    case "Sell":
        {
              findweapon("-Player/Shop").bringInSell(temp.sendtosell);
 
          break;
        }
      case "Drop":
          {
            triggerServer("gui", name, "menuItemDrop", this.clickedright);
            break;
          }
  }
 
  Item_Menu.destroy();
}
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62