Das war das Augmentations Script für Automaton.
Ich habs glaub ich sogar noch aufn PC.
Morgen vielleicht mal suchen.
Ich habs glaub ich sogar noch aufn PC.
Morgen vielleicht mal suchen.
Werbung zur Unterstützung des Forums ( Bitte AddBlocker deaktivieren )
local tom = { } -- Functions
local tomv = { } -- Variables
-----Change here-----
tomv.range = 100 --Range of attackall command
-----Don't change here if you don't know what you do-----
tomv.grind = 0
tomv.skillid = nil
tomv.lcycle = 0
tomv.cinterval = 0.50
function tom.distance ( Source, Target )
return math.sqrt ( math.pow ( Target.x - Source.x, 2 ) + math.pow ( Target.y - Source.y, 2 ) + math.pow ( Target.z - Source.z, 2 ) )
end
function wtfux.OnTick ( DeltaTime )
-----If you wanna add my script part to another script, then you have to put the code from now on till my next message into the OnTick function of the script-----
if (tomv.grind == 1) then
tomv.lcycle = tomv.lcycle + DeltaTime
if ( tomv.lcycle > tomv.cinterval ) then
local Actors = GetActors ()
for k, Actor in pairs(Actors) do
local Player = GetPlayer ()
local PPos = Player:Get ( "Position" )
tomv.location = Actor:Get('Position')
tomv.dist = tom.distance (PPos, tomv.location)
if ( Actor:Get ( "Attackable" ) ) and ( Actor ~= Player ) and (tomv.dist < tomv.range) then
if (tomv.skillid == nil) or (tomv.skillid == "") then
Attack (Actor, 0)
else
local tom = { } -- Functions
local tomv = { } -- Variables
RemoveCommand ( "Attackall" )
function tom.attackall ( Arguments , Device )
local Actors = GetActors ()
for k, Actor in pairs(Actors) do
local Player = GetPlayer ()
if ( Actor:Get ( "Attackable" ) ) and ( Actor ~= Player ) then
if (Arguments == nil) or (Arguments == "") then
tomv.useskill = 0
Attack (Actor, 0)
else
tomv.useskill = 1
UseSkill (Actor, Arguments)
end
end
end
if (tomv.useskill == 0) then
OutputF ( Device, NAME_Log, "Started attacking all enemys around for 1 time", Arguments )
else
OutputF ( Device, NAME_Log, "Started using the Skill at all enemys around for 1 time", Arguments )
end
return true
end
Register ( tom, "tom" )
AddCommand ( tom.attackall, "Attackall", "<ID>", "Attacks everything around" )
#GameTech;5407 schrieb:
hab gehört das euer flyff projekt geschlossen wird..... hatte mir mehr erhofft :(