ReleaseSprite(index); --function releases a sprite from memory, returns true (bool) on success.
BlockInput(true/false); --function which blocks all possible input (mouse/keyboard) into the league game client. Shall be only used while a script menu is active, and shall be deactivated when the menu is closed.
Some code examples:
local myspritefileID = 0
OnDraw(function(myHero) --myHero is a pointer to our champion;
if myspritefileID > 0 then
DrawSprite(myspritefileID,51,51,500,0,585,25,ARGB(255,255,255,255)); --draw a specific portion of the sprite file at X=51 and Y=51
DrawSprite(myspritefileID,171,171,0,0,0,0,ARGB(255,255,255,255)); --draw the whole sprite file at position X=171 and Y=171
end
local shiftpress = KeyIsDown(0x10); --Shift Key
if shiftpress then
if myspritefileID > 0 then
ReleaseSprite(myspritefileID);
myspritefileID = 0;
end
BlockInput(true);
end
local tabpress = KeyIsDown(0x14); --CAPS key
if tabpress then
if myspritefileID == 0 then
myspritefileID = CreateSpriteFromFile("filename.png",1.5);
end
BlockInput(false);
end
end)
Sign In
Create Account
This topic is locked
Back to top
Report







