Receptacle Filler
(The Repenters - Cultivated Magic Task)
Description:
It will fill the receptacle on the right order. This script is used to complete the Cultivated Magic Task - The Repenters Quest
Configuration:
Make sure you have all the actions enabled as a persistent hotkey.
Code:
1# Setting the Receptacle Collecting Order
init start
EmptyReceptacle = 19108
FilledReceptacle = 19109
FURY = true
NATURE = false
FIRE = false
WATER = false
init end
auto(100)
foreach newmessage n do
if n.type == MSG_RAID then
if n.content == 'You catch a sparkle of wild fury magic and capture it inside the receptacle.' then
FURY = false
NATURE = true
FIRE = false
WATER = false
elseif n.content == 'You cut off a chunk of wild nature magic and capture it inside the receptacle.' then
FURY = false
NATURE = false
FIRE = true
WATER = false
elseif n.content == 'You grab a piece of wild fire magic and capture it inside the receptacle.' then
FURY = false
NATURE = false
FIRE = false
WATER = true
elseif n.content == 'You soak up a bit of wild water magic and capture it inside the receptacle.' then
FURY = false
NATURE = false
FIRE = false
WATER = false
elseif n.content == 'The wild fire magic neutralises the cultivated magic in the receptacle. It is imperative follow the right order.' or n.content == 'The wild fury magic neutralises the cultivated magic in the receptacle. It is imperative follow the right order.' or n.content == 'The wild nature magic neutralises the cultivated magic in the receptacle. It is imperative follow the right order.' or n.content == 'The wild water magic neutralises the cultivated magic in the receptacle. It is imperative follow the right order.' then
FURY = true
NATURE = false
FIRE = false
WATER = false
end
end
end
if itemcount(FilledReceptacle) > 0 then
FURY = false
NATURE = false
FIRE = false
WATER = false
end
if $posz ~= 13 then
FURY = true
NATURE = false
FIRE = false
WATER = false
end
2# Checking for Magics around you
auto(1000)
FURYcount = 0
NATUREcount = 0
FIREcount = 0
WATERcount = 0
foreach creature m 'ms' do
if m.isreachable then
if m.name == 'Wild Fury Magic' then
FURYcount = FURYcount + 1
elseif m.name == 'Wild Nature Magic' then
NATUREcount = NATUREcount + 1
elseif m.name == 'Wild Fire Magic' then
FIREcount = FIREcount + 1
elseif m.name == 'Wild Water Magic' then
WATERcount = WATERcount + 1
end
end
end
if $posz == 13 and $posy < 31583 then
if (FURY and FURYcount > 0) or (NATURE and NATUREcount > 0) or (FIRE and FIREcount > 0) or (WATER and WATERcount > 0) then
setcavebot('no')
wait(5000)
setcavebot('yes')
wait(5000)
else
setcavebot('yes')
end
end
3# Catching Them
auto(100)
foreach creature m 'ms' do
if m.isreachable then
if FURY and m.name == 'Wild Fury Magic' then
pausewalking(5000)
reachlocation(m.posx,m.posy,m.posz,1)
useitemon(EmptyReceptacle,0,ground(m.posx,m.posy,m.posz))
waitping(2,3)
pausewalking(0)
elseif NATURE and m.name == 'Wild Nature Magic' then
pausewalking(5000)
reachlocation(m.posx,m.posy,m.posz,1)
useitemon(EmptyReceptacle,0,ground(m.posx,m.posy,m.posz))
waitping(2,3)
pausewalking(0)
elseif FIRE and m.name == 'Wild Fire Magic' then
pausewalking(5000)
reachlocation(m.posx,m.posy,m.posz,1)
useitemon(EmptyReceptacle,0,ground(m.posx,m.posy,m.posz))
waitping(2,3)
pausewalking(0)
elseif WATER and m.name == 'Wild Water Magic' then
pausewalking(5000)
reachlocation(m.posx,m.posy,m.posz,1)
useitemon(EmptyReceptacle,0,ground(m.posx,m.posy,m.posz))
waitping(2,3)
pausewalking(0)
end
end
end