Posts: 14
Threads: 7
Joined: Mar 2021
Reputation:
0
03-18-2021, 06:56 PM
(This post was last modified: 03-20-2021, 09:51 AM by Singleminded.)
Hey again.
I need your help again, tried to build it alone but it's way too hard
Pick up 4 blank runes from X Y Z if mana is higher than 300 then start cast spell untill mana is lower than 180 and stop and then throw made runes to X Y Z
Posts: 14
Threads: 7
Joined: Mar 2021
Reputation:
0
03-20-2021, 09:52 AM
(This post was last modified: 03-20-2021, 01:15 PM by Singleminded.)
I need Your help with it.
11:43:39 - Core:Lua:ExecuteScript|Only Registered members can see download links. | Click here to buy subscription or here to register.|Only Registered members can see download links. | Click here to buy subscription or here to register.alt="Big Grin" title="Big Grin" class="smilie smilie_4" />oString|Only Registered members can see download links. | Click here to buy subscription or here to register.|Only Registered members can see download links. | Click here to buy subscription or here to register.alt="Tongue" title="Tongue" class="smilie smilie_5" />ersistent01: 14: 'then' expected near ')'
local SafeList = { 'name', 'name' } -- Your safelist
local CheckPlayers = true -- Check for players? Not going to CAST SPELL if player on screen.
local CheckAllFloor = false -- Checks all floors for players?
local LOCATION = { X = 66666, Y = 66666, Z = 6 }
if not islocationxyz(LOCATION.X, LOCATION.Y, LOCATION.Z) then
setsettings('Runemaker/Enabled', false)
wait (500)
setsettings('Cavebot/Enabled', true)
wait(5000, 5000)
setsettings('Cavebot/Enabled', false)
wait(1000 * 60 * 5)
if CheckPlayers(0, CheckAllFloor, unpack(SafeList)) == 0) then
say('alana sio "' .. name() .. '"')
wait(1000, 1200)
setsettings('Runemaker/Enabled', true)
end
end
I deleted the string right after "0" so it's "... == 0 then " but it says alana sio anyway if player is on screen.
Posts: 2,886
Threads: 471
Joined: Jul 2018
Reputation:
82
03-20-2021, 01:55 PM
(This post was last modified: 03-20-2021, 01:55 PM by Arkilys.)
Replace this:
if CheckPlayers(0, CheckAllFloor, unpack(SafeList)) == 0) then
With
if not CheckPlayers or paround(0, CheckAllFloor, unpack(SafeList)) == 0 then
Posts: 14
Threads: 7
Joined: Mar 2021
Reputation:
0
03-20-2021, 02:49 PM
(This post was last modified: 03-21-2021, 05:27 AM by Arkilys.)
Still saying alana sio when players are on the screen :/
local SafeList = { 'XXX', 'XXX' } -- Your safelist
local CheckPlayers = true -- Check for players? Not going to CAST SPELL if player on screen.
local CheckAllFloor = true -- Checks all floors for players?
local LOCATION = { X = 66666, Y = 66666, Z = 6 }
if not islocationxyz(LOCATION.X, LOCATION.Y, LOCATION.Z) then
setsettings('Runemaker/Enabled', false)
wait(500)
setsettings('Cavebot/Enabled', true)
wait(5000)
setsettings('Cavebot/Enabled', false)
wait(1000)
if CheckPlayers == false or paroundignore(0, CheckAllFloor, unpack(SafeList)) == 0 then
wait(5000)
say('alana sio "' .. name() .. '"')
wait(1000, 1200)
setsettings('Runemaker/Enabled', true)
end
end
Posts: 2,886
Threads: 471
Joined: Jul 2018
Reputation:
82
My bad, it’s paroundignore instead of paround
Posts: 14
Threads: 7
Joined: Mar 2021
Reputation:
0
03-20-2021, 04:39 PM
(This post was last modified: 03-20-2021, 04:57 PM by Singleminded.)
Still doesn’t work as I want. It cast Alana sio with paround and paroundignore.
Please read it slowly and correct it, something small must be wrong.
Changed from say to cast, I had all the time say in my script and it did Alana sio all the time, now with cast on script it doesn’t cast Alana sio at all with paround or with paroundignore
Got ofc right nickname in safelist of characters I am testing it on
Posts: 2,886
Threads: 471
Joined: Jul 2018
Reputation:
82
03-21-2021, 05:18 AM
(This post was last modified: 03-21-2021, 05:28 AM by Arkilys.)
cast will never work because alana sio is not a spell.
The script works fine with paroundignore. So i've edited your post with the fixed the script.
local SafeList = { 'XXX', 'XXX' } -- Your safelist
local CheckPlayers = true -- Check for players? Not going to CAST SPELL if player on screen.
local CheckAllFloor = true -- Checks all floors for players?
local LOCATION = { X = 66666, Y = 66666, Z = 6 }
if not islocationxyz(LOCATION.X, LOCATION.Y, LOCATION.Z) then
setsettings('Runemaker/Enabled', false)
wait(500)
setsettings('Cavebot/Enabled', true)
wait(5000)
setsettings('Cavebot/Enabled', false)
wait(1000)
if CheckPlayers == false or paroundignore(0, CheckAllFloor, unpack(SafeList)) == 0 then
wait(5000)
say('alana sio "' .. name() .. '"')
wait(1000, 1200)
setsettings('Runemaker/Enabled', true)
end
end
|