mIRC Home    About    Download    Register    News    Help

Print Thread
#255222 30/09/15 10:23 PM
Joined: Sep 2015
Posts: 2
G
GSDoug Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
G
Joined: Sep 2015
Posts: 2
Here's what I'm working with, what I'm trying to do I'll comment on below:

Code:
on *:join:#:{
  $+(.timeraddpts.,$nick) 0 10 addpts $nick 5
  addpts $nick 5
}

alias addpts {
  if ($2 !isnum) { halt }
  hadd points points. $+ $+($chan,.,$1) $calc($hget(points,points. $+ $+($chan,.,$1)) + $2)
}

So basically I'm trying to get this script to increase a person's point count within a hash table using a timer.

The timer will start:
* Timer addpts.doug 10s delay addpts Doug 5

But the alias does not run from the timer, any ideas?

Last edited by GSDoug; 30/09/15 10:24 PM.
Joined: Sep 2015
Posts: 2
G
GSDoug Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
G
Joined: Sep 2015
Posts: 2
Too late to edit: But I can run the hadd command via timer with no problem with the same piece of script that's in the addpts alias. Also after some testing I was able to do a points system with ini (using an alias to update on timer). So must just be a bug or something *shrug*


Link Copied to Clipboard