ok, hard to think a topic:P - 20/09/04 12:09 PM
I got a script which saves things in hash tabkles, detailed explanation isnt neccesarry, but I want my script to check if someone types !abc, get $1 from item xxx in hastable zzz. make that a variable, set %lvl $hget(xxx,$nick)
Then do a check with this script:
but also check the lvl from the 'farm' if its in a 5 lvl range from var %lvl (so if %lvl = 54 it check 49-59)
Then do a check with this script:
Code:
alias showfarms { .remove stats.tmp var %number = $gettok($hget(darkhash,$$1),2,32), %nick = $1 var %a = 1 while $hget(darkfarm,%a).data { tokenize 32 $v1 if $2 < %number { write stats.tmp You can farm $hget(darkfarm,%a).item he/she is level $1 and has a Defense of $2 - This farm has been submitted by $3 on $4 } inc %a } filter -fftc 7 32 stats.tmp stats.tmp * if !$filtered { .msg %nick Im sorry, no farms found for you. } else { .play %nick stats.tmp 1500 } }
but also check the lvl from the 'farm' if its in a 5 lvl range from var %lvl (so if %lvl = 54 it check 49-59)