Everyone who has never used our Bots before, can test each one for 2 days without any limitation.
The trial is given automatically when you login on the Bot, but in some cases it wouldn't work (security reasons).
If this happens, send me a private message and i will be checking the failed trials manually and adding it for those who didn't get it.
We are looking for resellers who may accept payment methods different from ours, including classictibia's cash, realesta's cash, mastercores' cash, etc. Interested? Click here at anytime.



Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Combo sd &...
#1
Hello,

2 "quick" Questions : 

1) Is someone here able to made a script that'd shoot a person (with a definied name given on the script) with a sd? Maybe that would work on a certain keyword or something like that?

2) If someone has some free time, i'd need a script that would write "alana sio "nickname of character" on a certain command? (example the leader writes "Now", every x characters write alana sio, get kicked out of the house & ...)

Thanks!

#2
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

#3
|Only Registered members can see download links. | Click here to buy subscription or here to register.
This scrip isnt working, error all the time. I need script for sd combo what shoot sd on the same target what shooting leader not shooting to characters from list.

#4
|Only Registered members can see download links. | Click here to buy subscription or here to register.

Hello.

The script is working and it doesn't requires to add targets on any list. It will shoot SD or so when the Target's say the keyword and so, like this example that i posted on thread:
16:17 Leader Name: SD Knight
It will make people who are using this script to shoot SD on player "Knight".

So please, read the thread before replying.

#5
It is working perfectly, forgot to come back & thank you for that. So i'm doing it now.

Can you please tell me one thing, what kind of delay (interval) should i put for this kind of script?

Thanks.

#6
Hello.

You are welcome!
|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="Smile" title="Smile" class="smilie smilie_1" />

That quite depends on you... In my opinion, you could set the persistent interval to around 500ms and increase the wait AFTER the line of "useitemoncreature(...."
FROM
useitemoncreature(RuneItem, TargetName)
                       wait(1000)

TO
useitemoncreature(RuneItem, TargetName)
                       wait(1500)

Because it would check twice per second, which is good i think and if it shoots a rune, it would wait 1.5s after shooting the SD and wait more 500ms because that's the persistents interval, so it would wait 2s at total which is the sd's cooldown.
Notice that decreasing the Persistent interval will make it run more times and consequentially may use more cpu resources. You can check how much % does it's currently using on Task manager.

So if CPU resources is not a problem, you can set persistents interval as 100ms and use this code:
useitemoncreature(RuneItem, TargetName)
                       wait(1900)

#7
Yeah, that was mostly why i've been asking about the delays. I've been running approx. 6 makers + my main account on the server and when i'd make an action with the combo sd + kick out of the house, it worked like 1 out of 3 times but it is due to the fact that i'm using and old laptop, and it isn't supporting all that CPU Usage, script works perfectly otherwise, thanks.



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016