This is the very first calculator I've made and yes it does work. | I've tested it and the results are great | No Bugs. I hope you enjoy :) | Ok a dialog added so if there are bugs with it please notify me. Note: That is the very first dialog I've ever made.
Menu Status,Channel {
Calculator: calculator
}
Dialog Calculator {
title "Simple Calculator"
size -1 -1 138 73
option dbu
box "Calculator", 1, 6 3 50 50
button "Activate", 2, 12 13 37 12
button "D-Activate", 3, 12 33 37 12
box "Other", 4, 81 3 50 50
button "Pm Activate", 5, 87 13 37 12
button "Pm D-Activate", 6, 87 33 37 12
button "Close", 11, 58 25 21 12, ok
}
on *:Text:!Calc*:#:{
if (%Calculator == Activated) {
msg $Chan 8,4(9,4|8,4-9,4|8,4) || Now calculating $2 || The answer to the equation will show up in five seconds... || Please be patient...(1,4OR ELSE8,4) || (9,4|8,4-9,4|8,4)
.timer 1 5 msg $Chan 8,4(9,4|8,4-9,4|8,4) || The answer to your equation is1,4 $calc($2-) 8,4|| (9,4|8,4-9,4|8,4)
.timer 1 5 msg $Chan 8,4(9,4|8,4-9,4|8,4) Note: This is a Solarcluster Script. 8,4(9,4|8,4-9,4|8,4)
}
}
on *:Text:!Calc*:?:{
if (%Pm-Calculator == Pm-Activated) {
msg $Nick 8,4(9,4|8,4-9,4|8,4) || Now calculating $2 || The answer to the equation will show up in five seconds... || Please be patient...(1,4OR ELSE8,4) || (9,4|8,4-9,4|8,4)
.timer 1 5 msg $Nick 8,4(9,4|8,4-9,4|8,4) || The answer to your equation is1,4 $calc($2-) 8,4|| (9,4|8,4-9,4|8,4)
.timer 1 5 msg $Nick 8,4(9,4|8,4-9,4|8,4) Note: This is a Solarcluster Script. 8,4(9,4|8,4-9,4|8,4)
}
}
on *:DIALOG:Calculator:Sclick:*: {
if ($Did == 2) {
set %Calculator Activated
echo -a 8,4(9,4|8,4-9,4|8,4) Channel Calculator Now Activated 8,4(9,4|8,4-9,4|8,4)
}
if ($Did == 3) {
set %Calculator Activated
echo -a 8,4(9,4|8,4-9,4|8,4) Channel Calculator Now DeActivated 8,4(9,4|8,4-9,4|8,4)
}
if ($Did == 5) {
set %Pm-Calculator Activated
echo -a 8,4(9,4|8,4-9,4|8,4) Pm-Calculator Now Activated 8,4(9,4|8,4-9,4|8,4)
}
if ($Did == 6) {
set %Pm-Calculator DeActivated
echo -a 8,4(9,4|8,4-9,4|8,4) Pm-Calculator Now DeActivated 8,4(9,4|8,4-9,4|8,4)
}
}
Alias Calculator { dialog -m calculator calculator }
everyone at one point is new... if you dont like everyone trying to help you dont ask for it..
o if there are bugs with it please notify me. Note: That is the very first dialog I\'ve ever made.
that pretty much tells people that you want help... and as for my comment it was an opinion.. which i am entitled to in these comment boxes
the dialog looks bad sorry to say at least have it do some calc functions or at the very least aline it better.
i see no point in the dialog part of ur script. as for the other part the colors are horrible. you dont check what vars are off and you dont unset any vars at all.
why dont you go look at a few calc scripts and get an idea on how to make it beter.