This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Search found 9 matches

by zeuz
Sat Jun 04, 2005 5:49 pm
Forum: Archive
Topic: Loggin problem [solved]
Replies: 0
Views: 3717

Loggin problem [solved]

Switched server and installed eggdrop on the new one. Used the same config as on the old one and everything is working fine except for the logging. I haven't changed anything but the bot isn't logging anything for the specified channel. It does however write to eggdrop.log, what could cause this? lo...
by zeuz
Wed May 04, 2005 4:31 pm
Forum: Archive
Topic: Need some help with mirc-script to tcl
Replies: 13
Views: 6672

Thanks both of you! :)
by zeuz
Wed May 04, 2005 1:08 pm
Forum: Archive
Topic: Need some help with mirc-script to tcl
Replies: 13
Views: 6672

Thats great, thanks! :) Just one more thing, how can i add a third argument? As the mirc-script is now you can type !lexp 5 10 20 and get the amount of items needed for that amount of experience. Like !lexp <level1> <level2> <experience you get when doing something> [expr [rslvlexp $s] - [rslvlexp $...
by zeuz
Wed May 04, 2005 12:30 pm
Forum: Archive
Topic: Need some help with mirc-script to tcl
Replies: 13
Views: 6672

Yup, thats how i want it to work. If the user enters two levels it should return the experience between thoose. Something like this: rslvlexp(21) - rslvlexp(14).
by zeuz
Wed May 04, 2005 10:11 am
Forum: Archive
Topic: Need some help with mirc-script to tcl
Replies: 13
Views: 6672

Works now, thanks spock! :) Now for the other part, not sure on how to solve that. What i want it to do is when !lexp is used in a channel it will call lexp. lexp will then check to see if the user tries something funny, like going over level 99 or trying with negative numbers etc. When that is chec...
by zeuz
Wed May 04, 2005 8:55 am
Forum: Archive
Topic: Need some help with mirc-script to tcl
Replies: 13
Views: 6672

Anyone knows what i've done wrong?
by zeuz
Mon May 02, 2005 1:51 pm
Forum: Archive
Topic: Need some help with mirc-script to tcl
Replies: 13
Views: 6672

alias levelexp { var %outputnum = 0 var %points = 0 var %lvl = 1 while (%lvl < $$1) { %points = $int($calc(%points + %lvl + 300 * 2 ^ (%lvl / 7.0))) %outputnum = $int($calc(%points / 4)) inc %lvl 1 } return $int(%outputnum) } Is a function that calculates the experience for the stated level. $$1 is...
by zeuz
Mon May 02, 2005 12:43 pm
Forum: Archive
Topic: Need some help with mirc-script to tcl
Replies: 13
Views: 6672

Tried to write it myself, this is how it look likes this far: bind pub - !lexp msg:levelexp proc msg:levelexp { nick uhost handle channel firstlevel } { set outputnum 0 set points 0 set level 1 while {$level < $firstlevel} { set points [expr $points + $level + 300 * pow(2,$level / 7.0)] set outputnu...
by zeuz
Sun May 01, 2005 4:52 am
Forum: Archive
Topic: Need some help with mirc-script to tcl
Replies: 13
Views: 6672

Need some help with mirc-script to tcl

It feels like i'm asking for too much, but it's worth a try. Currently i'm running the script on my own client (mirc). I would like to use my eggdrop to run the script instead. What the script does is answer on !lexp <from-level> <to-level> <optional: exp per item> with experience between from-level...