Log in

View Full Version : Question regarding Conds(functions/actions)



Septermbe
04-21-2012, 18:05
Hello

I am a new member and Today I've made my first script which was Rat's sewer
it works fine but now I'd like to create a 'cond' (the "?" block)

What I want to be done:
$myexp$ | #number>=# | 6100 bla bla~~ to make an Alarm^^ if i wont be around then later on EXP 6,300 it'll CloseConnection

now im quite sure that "$myexp$" is correct? Right?
6,400 exp = level 9
I dont want my characters to reach level 9 but to hear the "Danger" alarm or some other alarm out of the 3
if Exp >= 6100 -> Alarm
if Exp>= 6300 -> CloseConnection

my question is what should I write in order to have such orders executed?

Thanks in advance!
p.s. I looked for an answer in threads but these 2 specificly I could not find.. :\

provocate
04-22-2012, 01:52
This one's easy and I'm glad to help. I've combined both conditionals for you into one conitional.

1.) When your exp will be 6100 or higher it will 'ding' every second. (test it by saying "exiva testding" in default chat so you'll know how it sounds = 'ding' :D).

2.) And when you'll reach 6300 exp points it will close the connection without the alarm, so when you come back you'll find your chaarcter logged out with exactly 6300 exp points.

I hope I helped. :D

EDIT: Save it as .txt file, put it into 'conds' folder in BlackD Proxy folder, open Conditional Events, reload list, load the saved .txt file and you're good to go. :D


$myexp$
#number>=#
6100
0
1000
0
exiva testding
$myexp$
#number>=#
6300
0
1000
0
exiva close