Simple Calculator With Dialog V1

By Logan on Mar 07, 2008

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 }

Comments

Sign in to comment.
Jonesy44   -  Mar 08, 2008

Post Posted: Mar 7, 2008 10:28 pm
Yea but I don\'t like it when many people do it. 1-3 is fine but on most of my scripts theres like 10-15

Logan, dno if you\'ve noticed, but you\'re spamming this comments area more than anybody else is ..

 Respond  
Logan   -  Mar 07, 2008

You here?

 Respond  
Logan   -  Mar 07, 2008

Lol Napa. Goto the server you usually goto and tell me the name so I can chat easier.

 Respond  
napa182   -  Mar 07, 2008

yeah i saw ur comment and im not on any server atm

 Respond  
SnoooP   -  Mar 07, 2008

well thats something your are going to have to get use to... people are going to comment on things... and some people have 20+ comments and dont complain.

 Respond  
Logan   -  Mar 07, 2008

Yea but I don\'t like it when many people do it. 1-3 is fine but on most of my scripts theres like 10-15

 Respond  
Logan   -  Mar 07, 2008

Napa look in ur profile. I made a comment there.

 Respond  
SnoooP   -  Mar 07, 2008

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

 Respond  
napa182   -  Mar 07, 2008

Logan if you are not going to listen to the suggestions that people make and try to better ur scripting then whats the point of posting on this site?? with an attitude such as ur\'s no one will ever help you.

 Respond  
Logan   -  Mar 07, 2008

Lol sorry. I\'m just getting in a bad mood atm from everyone telling me to do this to do that. Its stuff I don\'t even know. I\'m all new to these kind of things. I\'m alot better at scripting bots, not these kinds of scripts.

 Respond  
SnoooP   -  Mar 07, 2008

so agressive... i offer no help to such an aggressive person... i dont give a fuck if u jump of a bridge :)

 Respond  
Logan   -  Mar 07, 2008

And also I don\'t give a fuck if you don\'t like the colors. It was my choice go ahead and change them. Theres no stopping you from changing them.

 Respond  
SnoooP   -  Mar 07, 2008

what is it you dont understand and we will try and help that is why we are here

 Respond  
napa182   -  Mar 07, 2008

they why post ? if you are not going to try to understand

 Respond  
Logan   -  Mar 07, 2008

Omg I don\'t understand a word so just fuck this.

 Respond  
napa182   -  Mar 07, 2008

dialog error * /dialog: \'calculator\' name in use (line 48,
fix it by useing

$iif($dialog(Calculator),-v,-m)

in ur alias

 Respond  
SnoooP   -  Mar 07, 2008

honestly worst thing for me has too be those colours..

 Respond  
Logan   -  Mar 07, 2008

Sorry... I said I was new to this.

 Respond  
SnoooP   -  Mar 07, 2008

i totally agree with napa

 Respond  
napa182   -  Mar 07, 2008

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.

 Respond  
Logan   -  Mar 07, 2008

Lets go keep up the comments. Lol.

 Respond  
Logan   -  Mar 07, 2008

And yes the Dialog has been tested and I didn\'t find any bugs so if you do please notify me.

 Respond  
Logan   -  Mar 07, 2008

Ok its been updated with a dialog. Note: This is the very first dialog I\'ve ever created so there might be bugs. If there is please notify me. I hope you enjoy.

 Respond  
Logan   -  Mar 07, 2008

Thanks.

 Respond  
guest598594   -  Mar 07, 2008

lol nvm then

Good job though, script works fine.

 Respond  
Logan   -  Mar 07, 2008

I didn\'t understand a word you said. I\'m new to scripting this kind of stuff sorry. I\'m used to scripting bots with the ini\'s

 Respond  
guest598594   -  Mar 07, 2008

I would read up on $style and put it in ur menu, so you can see whether it\'s disabled or not.

$iif(%calculator == activated,$style(2)) ..Activate

and vice verca

 Respond  
Logan   -  Mar 07, 2008

Yes I have tested it and there are no bugs. Well atleast I don\'t think so. If there are any bugs please notify me and I\'ll fix them immedietly unless I\'m not here. Well anyway Enjoy.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.