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

Multi Orb Support Cloud Style


  • Please log in to reply
9 replies to this topic

#1
Cloud

Cloud

    KAPPA

  • Ex-Staff
  • PipPipPip
  • 1,498 posts
function LoadWalker()
	if IOW_Loaded then
		Callback.Add("Tick", function() Loop(IOW:Mode(), "Combo", "LastHit", "LaneClear") end)
	end
	if DAC_Loaded then
		Callback.Add("Tick", function() Loop(DAC:Mode(), "Combo", "LastHit", "LaneClear") end)
	end
	if PW_Loaded then
		Callback.Add("Tick", function() Loop(PW:Mode(), "Combo", "LastHit", "LaneClear") end)
	end
	if GosWalk_Loaded then
		Callback.Add("Tick", function() Loop(GetCurrentMode(), 0, 3, 2) end)
	end
end

function Loop(orb,value,value1,value2)
	enemy = GetCurrentTarget()

	if orb== value and ValidTarget(enemy, 2000) then
		funct()
	end

	if orb == value1 then
		funct()
	end

	if orb == value2 then
		funct()
	end
end

This is how i did multi orb, quick and easy. Snippet from GP just do LoadWalker() where you would put ontick and it will work.


  • 0

#2
Deftsu

Deftsu

    donthackourgames

  • Ex-Core Dev
  • PipPipPip
  • 4,812 posts
classes please..
  • 0

#3
Cloud

Cloud

    KAPPA

  • Ex-Staff
  • PipPipPip
  • 1,498 posts

classes please..

Its a snippet from my code.... if its any better without then check op now


  • 0

#4
Deftsu

Deftsu

    donthackourgames

  • Ex-Core Dev
  • PipPipPip
  • 4,812 posts
go make a class that support every orb and works with every script, that would be better, and add IOW = class()
in the end
  • 0

#5
Cloud

Cloud

    KAPPA

  • Ex-Staff
  • PipPipPip
  • 1,498 posts

go make a class that support every orb and works with every script, that would be better, and add IOW = class()
in the end

Im busy all week, imaginably it isnt hard but i just dont have much time :/


  • 0

#6
Zwei

Zwei

    Advanced Member

  • Contributor
  • 2,201 posts

Supports every orb, even the ones that don't exist yet Kappa
 


 

function Orb:__init()
 Menu("SO","OrbSettings")
 SO:KeyBinding("Combo", "Combo", string.byte(" "), false)
 SO:KeyBinding("Harass", "Harass", string.byte("C"), false)
 SO:KeyBinding("LaneClear", "LaneClear", string.byte("V"), false)
 SO:KeyBinding("LastHit", "LastHit", string.byte("X"), false)

 Callback.Add("Tick",function()
  if SO.Combo:Value() then Mode = "Combo"
  elseif SO.Harass:Value() then Mode = "Harass"
  elseif SO.LaneClear:Value() then Mode = "LaneClear"
  elseif SO.LastHit:Value() then Mode = "LastHit"
  else Mode = nil
  end
 end)
end
 
Orb()

  • 0

#7
Zwei

Zwei

    Advanced Member

  • Contributor
  • 2,201 posts

Also would this work?

Callback.Add("Tick", Loop(Walk:GetCurrentMode(), 0, 3, 2))


  • 0

#8
Cloud

Cloud

    KAPPA

  • Ex-Staff
  • PipPipPip
  • 1,498 posts

 

Supports every orb, even the ones that don't exist yet Kappa
 


 

function Orb:__init()
 Menu("SO","OrbSettings")
 SO:KeyBinding("Combo", "Combo", string.byte(" "), false)
 SO:KeyBinding("Harass", "Harass", string.byte("C"), false)
 SO:KeyBinding("LaneClear", "LaneClear", string.byte("V"), false)
 SO:KeyBinding("LastHit", "LastHit", string.byte("X"), false)

 Callback.Add("Tick",function()
  if SO.Combo:Value() then Mode = "Combo"
  elseif SO.Harass:Value() then Mode = "Harass"
  elseif SO.LaneClear:Value() then Mode = "LaneClear"
  elseif SO.LastHit:Value() then Mode = "LastHit"
  else Mode = nil
  end
 end)
end
 
Orb()

Well i didnt use yours cause im independent (for now) Kappa

 

Also would this work?

Callback.Add("Tick", Loop(Walk:GetCurrentMode(), 0, 3, 2))

Not sure on this.


  • 0

#9
Icesythe7

Icesythe7

    Forum Manager

  • Contributor
  • 181 posts

goswalk is getting changed from that 


  • 0

#10
Cloud

Cloud

    KAPPA

  • Ex-Staff
  • PipPipPip
  • 1,498 posts

goswalk is getting changed from that 

Fixed, updated op


  • 0




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users