collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18363
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: New calc  (Read 1994 times)

0 Members and 1 Guest are viewing this topic.

Offline Wolfbiter

  • Contributor
  • *******
  • Posts: 149
  • Karma: +0/-0
    • KAZE
New calc
« on: February 07, 2006, 06:14:36 pm »
Ok.. where to begin...
Wrote this to improve !calc, a lot.
Now you can easily use the last calc, and also give calcs their own identifiers for later use.

!calc 5+5
sets default to 10
!calc +4
sets default to 14
!calc -2
sets default to 12

!calc 2he 890+40+50
sets "2he" to 980
!calc 2he +20
sets "2he" to 1000

!calc 2he+2
sets "default" to 1002

!calc
returns a list with all your identifiers and their numbers

!calcr 2he
deletes the 2he identifier

Bugs
There are some problems when using * and / without having used () around previous calculations.
(not fixed it mostly due to cosmetic reasons and low useage of * and /)

Rename the calc to php (obviously).
And I'm aware I'm not the best person to explain how stuff I write works...

Updates
Fixed a slight pgroup/tell bug
« Last Edit: February 08, 2006, 05:31:00 am by Wolfbiter »
Too many toons.

Offline Areteh

  • BeBot User
  • **
  • Posts: 23
  • Karma: +0/-0
Re: New calc
« Reply #1 on: January 06, 2007, 06:10:31 am »
help file.

 

* Recent Posts
[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm]


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 pm]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm]

* Who's Online
  • Dot Guests: 518
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal