View Full Version : safely night afk
hello.
I know that noone will help me but I will try.
How to make a script with 100% safely afk at the night?
Now I've got something like when someone will write my nickname it will close connection. (Event)
0
0100100000000000000:210000
nick
exiva close
how to add more events? Because when I going to add 1 more event it's deleting this one..
How to make event like... when someone push me (move my char) it will close connection ?
also why these options didn't work for me ? http://imageshack.us/photo/my-images/809/60577664.jpg/
I was trying to write my own script, but it isn't work.
########################################
##Put your X from your training spot here:
fastExiva _myx = 191
##Put your Y from your training spot here:
fastExiva _myy = 231
##Put your Z from your training spot here:
fastExiva _myz = 6
########################################
setMeleeKill Train Machine
:training
setMeleeKill Train Machine
IfTrue ($myx$,$myy$,$myz$#string<>#$_myx$,$_myy$,$_myz$) Goto $nlineoflabel:danger$
:danger
sayMessage exiva testsound
gotoScriptLine :training
Afwasmidd
05-28-2013, 13:22
Well there are some options you can use for safety.
Most of them can be found in the "configuration command" section in cavebot.
Quote from Cavebot for dummies! EVERYTHING you need to know! (http://www.blackdtools.net/showthread.php?21374-Cavebot-for-dummies!-%28EVERYTHING-you-need-to-know!%29) a tutorial made by Webber.
setMeleeKill monstername
Now most of you know what this does (and i really hope you do) but since this is a thread forr n00bs ill tell you this tells the bot to attack the monster of your choice (default larva altho if its left blank its nothing )
setHmmKill
Just like the setSDKill in Special kills group but this time it shoots a hmm at monsters of your choice, I recommend using this for deeper tomb scripts (because of stalkers)
SetLoot itemID
just to let you guys know, d7 0b = Gold always enter that one!!! to find different item ids you can goto the tools tutorial! there you will find out how!
onDangerGoto integer when you are attacked or in any kind of danger it will goto the script line of your choice. this is usually used in more advanced scripts!
onGMPause DO NOT, I REPEAT, DO NOT make a script WITHOUT this command, this command makes your script look like you kind of know what your doing, if not selected the bot will keep auto hunting when a gm comes = ban!
onPlayerPause- same thing as the above command but this one does NOT pause healing! it can be a life saver, This is rarely used on scripts, i never use it.
setVeryFriendly Ok this command makes your bot ONLY attack things that attack YOU when another player is on the screen, simple.
setRetryAttacksNow I have never used this but lets use some common sense, im going to say it will retry to attack the monster if it couldnt the first try - this is implemented without being put into the script (default)
setDontRetryAttacks Ok, exact opposite of last one! sorry but detail simply isnt needed, although I would use this on non pvp since people summon what your killing, bot would try to attack it and fail although keep retrying!
setPriority monstername = integer
I love this one and I use it alot, expecially for turtles (Get those stupid spamming toads before they do to much damage)
You should always use the onGMPause at the start of your script.
IfTrue ($myx$,$myy$,$myz$#string<>#$_myx$,$_myy$,$_myz$) Goto $nlineoflabel:danger$
if its true then bot goes to :danger label, but if it returns FALSE then bot goes to the NEXT line which is also :danger :D
try this:
########################################
##Put your X from your training spot here:
fastExiva _myx = 191
##Put your Y from your training spot here:
fastExiva _myy = 231
##Put your Z from your training spot here:
fastExiva _myz = 6
########################################
setMeleeKill Train Machine
:training
setMeleeKill Train Machine
IfTrue ($myx$,$myy$,$myz$#string<>#$_myx$,$_myy$,$_myz$) Goto $nlineoflabel:danger$
gotoScriptLine $nlineoflabel:training$
:danger
sayMessage exiva testsound
waitX 1
It's not working, because when someone push me it just going back to attack train machine. xd no sound ;/
I need something like stop action, play alarm.
Afwasmidd
06-01-2013, 16:12
I think you'll need to make a conditional for this thing to work. The cavebot just reads lines and doesn't measure real time. Conditionals however check a certain condition every so-many milliseconds. So when the cavebot is set on a target, it won't jump to the next line until that target is killed. In this case it should kill all Train Machines in order to get to the IfTrue line.
The conditional would be something like:
1
#number=#
1
0
300
1
exiva _myx = 191
1
#number=#
1
0
300
1
exiva _myy = 231
1
#number=#
1
0
300
1
exiva _myz = 6
$myx$,$myy$,$myz$
#string<>#
$_myx$,$_myy$,$_myz$
0
300
1
exiva testsound
Firstly it will define _myx, _myy and _myz since 1 is always 1 and therefore true. Then the part that's important to you arrives when it checks your coordinates and dings when it doesn't match your earlier set coordinates. However in this state the conditional won't stop your cavebot from attacking again. It will try to move back and attack again since it's not connected to the conditional in any way. I think this should do the trick: instead of dinging you can also set an action such as logging out or resetKill to make sure it won't attack again. I didn't test the resetKill with conditionals though, you might want to test it out.
Powered by vBulletin® Version 4.2.5 Copyright © 2021 vBulletin Solutions Inc. All rights reserved.