Jump to content

Welcome to Gaming On Steroids Forums
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account
Photo

OnRemoveBuff broken

OnRemoveBuff

  • Please log in to reply
4 replies to this topic

#1
ilovesona

ilovesona

    Sona's wife

  • Contributor
  • 1,096 posts

it only released now(CastSkillShot2 work), not start charge

 

i use this code to start charge, it work well before....

 

 
CastSkillShot(_Q,GetMousePos())

tested xerath and varus, both broken now :dogecry:

 


  • 0

#2
Feretorix

Feretorix

    Administrator

  • Administrators
  • 3,030 posts

I will check this out right away.

 

Edit:
 

Just tested 1 second ago your "simple xerath.lua" script.

Works like a charm (charging and releasing Q with prediction).

 

Edit2:

Works only once and then stops working, what the hell o_O.

 

Edit3:

It works perfectly without your script, tested with the following code (intended OnDraw, else KeyIsDown does not trigger)

 

OnDraw(function(myHero) --myHero is a pointer to our champion;
local shiftpress = KeyIsDown(0x10); --Shift Key
if shiftpress then
mymouse = GetMousePos();
CastSkillShot(_Q,mymouse.x,mymouse.y,mymouse.z); --start charging Xerath Q
end
local tabpress = KeyIsDown(9); --TAB key
if tabpress then
mymouse = GetMousePos();
CastSkillShot2(_Q,mymouse.x,mymouse.y,mymouse.z); --release charged Xerath Q
end
end)

  • 0

#3
ilovesona

ilovesona

    Sona's wife

  • Contributor
  • 1,096 posts

 

I will check this out right away.

 

Edit:
 

Just tested 1 second ago your "simple xerath.lua" script.

Works like a charm (charging and releasing Q with prediction).

 

Edit2:

Works only once and then stops working, what the hell o_O.

 

Edit3:

It works perfectly without your script, tested with the following code (intended OnDraw, else KeyIsDown does not trigger)

OnDraw(function(myHero) --myHero is a pointer to our champion;
local shiftpress = KeyIsDown(0x10); --Shift Key
if shiftpress then
mymouse = GetMousePos();
CastSkillShot(_Q,mymouse.x,mymouse.y,mymouse.z); --start charging Xerath Q
end
local tabpress = KeyIsDown(9); --TAB key
if tabpress then
mymouse = GetMousePos();
CastSkillShot2(_Q,mymouse.x,mymouse.y,mymouse.z); --release charged Xerath Q
end
end)

ok....seems it's not CastSkillShot problem

 

it's OnRemoveBuff problem,it didn't even got called

 

try this:

 

OnRemoveBuff(function(object,buffProc)
  if object == GetMyHero() then
    PrintChat("OnRemoveBuff "..buffProc.Name)
  end
end)

i use this to detect q is casting or not.....


Edited by ilovesona, 12 November 2015 - 04:25 .

  • 0

#4
Feretorix

Feretorix

    Administrator

  • Administrators
  • 3,030 posts

Yesterday when i got home i fixed OnRemoveBuff problem.

 

Thanks for actually investigating and pointing out what was the real issue.


  • 1

#5
ilovesona

ilovesona

    Sona's wife

  • Contributor
  • 1,096 posts

Yesterday when i got home i fixed OnRemoveBuff problem.

 

Thanks for actually investigating and pointing out what was the real issue.

np, i use that api a lot

 

so if you broke it, i'll know right away Doge


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users