Log in

View Full Version : Understanding conditional events!



Webber
01-04-2007, 06:56
Ok, this tutorial is to easily guide you threw the basics of conditional events, I like it very much :)

http://img402.imageshack.us/img402/9639/3oq9.png (http://imageshack.us)

Where you see "thing 1" there you put a variable or number... thing 2 describes how much of it... lets say you want 100 mana you put: $mymana$ 100, the operator describes, how thing 2 will react with thing 1, >= meens equal to or greater <= is vice versa so 100 or greater then mana so far would look like this: $mymana$ => 100 now "action" commands it to do when it happens so if you get 100 or more mana it will do the action for example you want to spam "i have 100+ mana im not noob!" you would have
thing1:$mymana$ operator: => thing 2:100 action: i have 100+ mana im not noob! simple enough! now i will describe what in gods name these things are (below)

http://img402.imageshack.us/img402/2779/2vr0.png (http://imageshack.us)
These things are known as operators, a need in this part of the bot! i will describe what each of these do!
Careful these are done out of order!
#number=# <this is only if the number is exactly what you want if thing 2 is 100, it will only say/do the action if its 100, not 99, or 101
#number<#< thisis only if the number is BELOW thing 2, if its 100, its not 100,101 102 but instead 99 98 97 etc all the way down to 0
#number>#<this is only if the number IS above thing 2, if thing 2 is 100, its not 98 99 97 100 etc but instead 101 102 or higher!
#number<>#<this is only if thing 2 the number is higher or lower then thing 2 if its 100, its EVERYTHING but 100!
#number<=#this is if thing 2 is equal to or lower then, so if thing 2 is 100 its, 100 99 98 97 etc!
#number>=#this is if thing 2 is equal to or greater then, so if thing 2 is 100 its 100, 101 102 103 etc!

http://img402.imageshack.us/img402/2602/1bv4.png (http://imageshack.us)
this is where you chose to save, or load your files!

(lol one of my conditional events just wen off lololol)


NEED furtherr help? PM with a request for a tutorial!

dont understand parts of this tutorial? post or pm!

weeper
01-04-2007, 07:17
is there a way to make something happen ONLY if 2 conditions are met?

weeper
01-04-2007, 07:20
omg think I figured it out O.o
kinda complex ;/

Webber
01-04-2007, 07:26
weeper u are reply to my turoials like a dog! lol anyways i dont know how so why dont you tell me:) the mre understanding the better!

Dragoon
01-04-2007, 22:30
Any idea if theres a condition to be able to tell when your paralyzed?

Would be useful for dworcs o.o

weeper
01-05-2007, 00:00
weeper u are reply to my turoials like a dog! lol anyways i dont know how so why dont you tell me:) the mre understanding the better!

lol with dog you mean really fast? i didnt quite get it XD
Ok there are 2 conditions you want to be true for an event to happen.
You set the first one:
If blah blah blah = blah blah blah then _mycustomvariable +1

the second one:
if blah blah blah = blah blah blah then _my customvariable +1

and you set the event you want to get done:
if _mycustomvariable = 2 then ("Whatever you want to happen")

and afterwards you set an event to always reset my customvariable to 0
if 1 = 1 then _mycustomvariable = 0



btw i havent tested it yet.

weeper
01-05-2007, 00:01
Any idea if theres a condition to be able to tell when your paralyzed?

Would be useful for dworcs o.o

i think it's possible with $statusbit$
lemme make some testin

Dragoon
01-05-2007, 00:14
k, ty

<short>

Webber
01-05-2007, 03:14
weeper is pro with this lol

weeper
01-05-2007, 07:10
well not so pro :/ it seems i can't figure out exactly how statusbit works :s but i'll keep trying

Borat
01-05-2007, 14:53
As far as I know, "statusbits" are the icons which are displayed in the field under your equipment and I think that daniel only added "$statusbit:8$" (poison) to this version. Hopefully more statusbits will be implented. Some uber-cool stuff could be made :P... like.. (if wanted) "if $statusbit:X$ = 1, then, saymessage: exiva #XX XX 09" for example, this would put a dwarven ring in your ring-spot if you got drunk ^^



Chenquieh.

weeper
01-05-2007, 21:53
I think $statusbit:X$ is already implemented and 8 is the one for poison.
I'll keep trying as soon as i find some time :P

Webber
01-05-2007, 22:47
well i know statisbit:8 is poison xD

Vini
01-12-2007, 02:47
how made, if you are poisoned
say exana pox
only if poison are 4 "You lose 4 hitpoints."?

Webber
01-12-2007, 04:27
explained before but w.e i belive its this:

$statusbit:8$ (statusbit 8 is poison) string= 4

exana pox

noxious
01-13-2007, 03:19
Anyone found out yet about if paralyze is implented in the statusbit variable yet?

regards,
noxious

Webber
01-14-2007, 02:01
no we havent found it yet,,

also to reply to whoever said using status bit to put dwarven ring on just find wat statusbit it is then make it like this statusbit:X = 0? exiva #XX XX

weeper
01-14-2007, 03:04
i think i can find the one for drunk, I don't have to goto dworcs of hydras to test it just drink some wine from the gh.
I'll edit this post as soon as i find out

Michelle
01-16-2007, 20:40
i made scripts using the conditional events to auto exura when paralyzed and auto manashield when it runs out..

http://www.blackdtools.net/showthread.php?t=2177

Ignatius
01-23-2007, 21:13
lol with dog you mean really fast? i didnt quite get it XD
Ok there are 2 conditions you want to be true for an event to happen.
You set the first one:
If blah blah blah = blah blah blah then _mycustomvariable +1

the second one:
if blah blah blah = blah blah blah then _my customvariable +1

and you set the event you want to get done:
if _mycustomvariable = 2 then ("Whatever you want to happen")

and afterwards you set an event to always reset my customvariable to 0
if 1 = 1 then _mycustomvariable = 0



btw i havent tested it yet.
and it doesn't work
tought about the same thing.
there will be need to use few variables as flags.

Gaudi Gabriev
02-13-2007, 18:14
is there a way when no spears on left/right hand load the melee weapon and when more than x spears, put the melee weapon in bp and load spears?


Peace
Syuusuke Fuji
Ikkyu Nyuu Kon

Eniro
02-13-2007, 23:31
stupid answere it might be, but you cant do that with the trainer?

Gaudi Gabriev
02-15-2007, 00:41
No cuz you can't set 2 items in the same hand


Peace
Syuusuke Fuji
Ikkyu Nyuu Kon

Boz
04-04-2007, 08:01
what would i put for if someone speaks to me in default, i say "leave plx" like auto responder?

im a noob with this conditional events stuff

Mortal
04-05-2007, 14:43
Im newb in conditional events also. I have one question is there any way to make char move 1 square for ex. <V i mean south-west if he get atk by 3 monsters?

And also is there any list of "Thing1" ($mymana$ etc) cuz i cant find it :mad:

Betongas
05-03-2007, 06:07
Can someone post all the "conds" that exist?

Would help alot, thanks

Rurewonu
05-03-2007, 09:34
@ betongas and mortal

look in "Events" there you have list of this things/commands

Betongas
05-03-2007, 21:55
thanks alot

AlexarN
05-20-2007, 19:22
What the hell is conditional events didnt understand a shit of the tutorial. What does it?

Shoudy
07-07-2007, 07:54
omg think I figured it out O.o
kinda complex ;X

Jonny
07-10-2007, 00:05
Could someone give a quick tutorial about why and how you should setup drinking manas with conds, and not in the runemaker (when visbotting)

Thanks in forehand!

Farsa
07-10-2007, 02:55
Could someone give a quick tutorial about why and how you should setup drinking manas with conds, and not in the runemaker (when visbotting)

Thanks in forehand!

drink mana if less than x mana

$mymana$
#number<#
x
0
1000
0
exiva mana

Aewbroto
07-24-2007, 08:48
hi there
i still can't be able to do if i get poisoned by passing through a poison field or a scorpion use exana pox and NOT use exana pox if poisoned by a mummy or something
i tried to put $statusbit:8$ #number>=# 5 0 2000 0 Exana Pox , but it's not working,
could someone please help me?

Goodfellow
07-24-2007, 09:30
It's not possible. $statusbit:8$ has only two values (0- not poisoned, 1- poisoned)

lo0ol
08-29-2007, 00:52
hi there
i still can't be able to do if i get poisoned by passing through a poison field or a scorpion use exana pox and NOT use exana pox if poisoned by a mummy or something
i tried to put $statusbit:8$ #number>=# 5 0 2000 0 Exana Pox , but it's not working,
could someone please help me?


Maybe try to do sth like:

if lastpkname = "scorpion" or " " (2nd i mean nothing ... as poison field) then _customvar +1 ... with small delay (enough to kill scorpion) and lock
if _customvar = 1 then exana pox
if statusbit:8 = 0 then _customvar = 0

I'm not sure if it will works ;p was thinking just 2 seconds about that.



/// ahh yehh xD Malmis fix my bugs.

Khan
10-27-2007, 20:27
When i take conditional events from Newer script listing , should i put it into a .txt file ? then how do i load it in coditional events?

I dont understand this ;<

Coke_01
10-27-2007, 20:29
yeah, same it in a .txt file and put it in cond. events in your blackd proxy folder

Khan
10-28-2007, 02:01
Thanks ; ]

Wallie
10-31-2007, 20:22
Can someone tell me how to send a message to a friend when somebody messages me in private..:confused:

Godlyyo
10-09-2009, 18:14
im sorry i have no idea how to use black d, could you explain in detail for a noob with computers/bots how to do this..

so the elf bot has something called "immortal" basically when someones hp drops below 60% or so it puts on a mana ring (death ring on my OT server) and takes it off when its above 60% again

i was wondering how to do this with black d? someone told me to record the hex of me doing it then set the conditions to when my hp is below 60% but i dont know how to record the hex or whatever... any help please?