1
UltraMegaServer / New Public Echo for RPGDM v1
« on: December 02, 2007, 03:06:07 am »
#UltraMegaServer on irc.gtanet.com
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
alias convertlocationsfrominfozontohash {
var %infozonfile = info.zon, %i = 1, %c = 0
if ($hget(infozontemp)) !hfree -s infozontemp
!hmake -s infozontemp 500
while (%i < $lines(%infozonfile)) {
tokenize 32 $read(%infozonfile,%i)
if ($7) {
!inc %c
!hadd infozontemp %c $+($3,$7,$6,$7,$6,$4,$3,$left($4,-1))
!hadd infozontemp %c $+ . $left($1,-1)
}
!inc %i
}
!hadd infozontemp max_loc %c
!hsave infozontemp lcmp.area.hash
!hfree -s infozontemp
}
3) in your mirc, trigger the alias by typing: /convertlocationsfrominfozontohash!hmake -s area 500
if ($exists(lcmp.area.hash)) !hload area lcmp.area.hash
alias lcmp.area {
if (($1) && ($2)) {
var %a = 1
while (%a <= $hget(area,max_loc)) {
var %t = $hget(area,%a)
if ((%t) && ($inpoly($1,$2, [ %t ] ))) !return $hget(area,%a $+ .)
!inc %a
}
}
!return Liberty City
}