Hello.
1st script
I didn't tested this script, but it should work.
When say the "WORD PLAYER" it will shoot the rune or attack on the PLAYER.
E.g.:
16:17 Leader Name: SD Knight
It will make people who are using this script to shoot SD on player "Knight".
16:18 Leader Name: SD Weak Sorcereer
It will make people who are using this script to shoot SD on player "Weak Sorcereer".
Notice: The characters that uses this script must have the channel that the LEADER will say the WORD selected. So if the LEADER wants say the WORD on Default, who's using this script must have DEFAULT selected, but
this would also work on private channels, etc.
local ComboLeader = "Leader Name"
local RUNES_SHOOT = {
{ ITEM = "sudden death rune", WORD = "SD" },
{ ITEM = "heavy magic missile rune", WORD = "HMM" },
{ ITEM = "attack", WORD = "attack" },
}
--[[ DON'T EDIT BELOW THIS LINE --]]
if cancast() then
local MESSAGES = getnewmessages()
for i,m in pairs(MESSAGES) do
if m.sender ~= nil and m.sender ~= '' and m.sender:lower() == ComboLeader:lower() then
local temp = m.content:token(nil,' ')
if temp[1] ~= nil and temp[2] ~= nil then
for RUNE_INDEX = 1, #RUNES_SHOOT do
if RUNES_SHOOT[RUNE_INDEX].WORD:lower() == temp[1]:lower() then
local RuneItem = RUNES_SHOOT[RUNE_INDEX].ITEM
local TargetName = ''
if #temp > 2 then
TargetName = temp[2]
for SPLIT_INDEX = 3, #temp do
TargetName = (TargetName:concat(temp[SPLIT_INDEX]):match("^%s*(.-)%s*$"))
end
else
TargetName = (temp[2]:match("^%s*(.-)%s*$"))
end
if TargetName ~= '' and RuneItem ~= '' then
if RuneItem == "attack" then
attack(TargetName)
wait(1000)
else
useitemoncreature(RuneItem, TargetName)
wait(1000)
end
end
return
end
end
end
end
end
end
2nd script
I could not really understand your request... Every please will say 'alana sio "own name'? If so, this script will work.
Notice: The characters that uses this script must have the channel that the LEADER will say the WORD selected. So if the LEADER wants say the WORD on Default, who's using this script must have DEFAULT selected, but
this would also work on private channels, etc.
local LEADER_NAME = "LeaderName"
local KICK_MESSAGE = 'now'
--[[ DON'T EDIT BELOW THIS LINE --]]
local MESSAGES = getnewmessages()
for i,m in pairs(MESSAGES) do
if m.sender ~= nil and m.sender ~= '' and m.sender:lower() == LEADER_NAME:lower() and m.content:lower() == KICK_MESSAGE:lower() then
say('alana sio "' .. name() .. '"')
wait(1000)
end
end