Kardadantis commented on a Page, Gangster RPG  -  Jun 10, 2010

levelup update

on :text:.levelup:#:{
if !$hget($nick) {
.notice $nick .gangster
halt
}
if $hget($nick,jail) {
.notice $nick negali to daryt kol sedi kalejime.
halt
}
else {
if $2 !isnum {
.notice $nick .levelup level
.notice $nick lygio pakelimo kaina 100 tasku.
halt
}

;########### LEVELS ###########

if $2 isnum && $3 = level {
  var %points $calc($2 * 100)
  if $hget($nick,points) >= %points {
    hadd $nick points $calc($hget($nick,points) - %points)
    hadd $nick level $calc($hget($nick,level) + $2)
    hadd $nick def $calc($hget($nick,def) + (5 * $2))
    hadd $nick atk $calc($hget($nick,atk) + (5 * $2))
    .msg # $nick pereina i kita lygi.
  }
}

;########### END ###########
hsave -i $nick gangster.ini $hget($nick,name)

}
}

text in LT

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.