Jump to content

Help With Money On Olis


Vital

Recommended Posts

Ok I Am Having A Problem On Oli's RPG script when you kill someone it gives them a directory link instead of cash for a !bounty

Also when you get cash and all that stuff it goes in the money counter the pink one it doesnt go into !cash HELP PLEASE!!! THXS

for the bounty this is what i have

alias rpg.kill {
 if $rpg.cash($1,$2) > 0 || $rpg.bounty($1,$2) > 0 {
   if $rpg.cash($1,$2) > 0 {
     var %a = Cash: $chr(36) $+ $rpg.cash($1,$2)
     !writeini -n " $+ $rpg.dir $+ rpg.ini" $mta.name($1,$3) cash $calc($rpg.cash($1,$3) + $rpg.cash($1,$2))
   }
   if $rpg.bounty($1,$2) > 0 {
     var %a = %a $+ - Bounty: $chr(36) $+ $rpg.bounty($1,$2)
   }
   else {
     !writeini -n " $+ $rpg.dir $+ rpg.ini" $mta.name($1,$3) bounty $calc($rpg.bounty($1,$3) + 1000)
   }
   mta.msg ($1,$3) Gained > %a
 }
 else {
   !writeini -n " $+ $rpg.dir $+ rpg.ini" $mta.name($1,$3) bounty $calc($rpg.bounty($1,$3) + 1000)
   mta.msg $1 $2 Bounty risen by: $chr(36) $+ 1000
 }
}

instead Says When I kill a person with a bounty level ist says:

** Admin PM send: Gained > !writeini -n "C:\Program Files\mIRC\mtama\1.ini" ID2- Bounty: $1000

but it doesnt do anything

So If You Can Please Update That Code For Me Thanks!

do i need to load 1.ini??? cause i just did but didnt test it

Link to comment
Ok I Am Having A Problem On Oli's RPG script when you kill someone it gives them a directory link instead of cash for a !bounty

Also when you get cash and all that stuff it goes in the money counter the pink one it doesnt go into !cash HELP PLEASE!!! THXS

for the bounty this is what i have

alias rpg.kill {
 if $rpg.cash($1,$2) > 0 || $rpg.bounty($1,$2) > 0 {
   if $rpg.cash($1,$2) > 0 {
     var %a = Cash: $chr(36) $+ $rpg.cash($1,$2)
     !writeini -n " $+ $rpg.dir $+ rpg.ini" $mta.name($1,$3) cash $calc($rpg.cash($1,$3) + $rpg.cash($1,$2))
   }
   if $rpg.bounty($1,$2) > 0 {
     var %a = %a $+ - Bounty: $chr(36) $+ $rpg.bounty($1,$2)
   }
   else {
     !writeini -n " $+ $rpg.dir $+ rpg.ini" $mta.name($1,$3) bounty $calc($rpg.bounty($1,$3) + 1000)
   }
   mta.msg ($1,$3) Gained > %a
 }
 else {
   !writeini -n " $+ $rpg.dir $+ rpg.ini" $mta.name($1,$3) bounty $calc($rpg.bounty($1,$3) + 1000)
   mta.msg $1 $2 Bounty risen by: $chr(36) $+ 1000
 }
}

instead Says When I kill a person with a bounty level ist says:

** Admin PM send: Gained > !writeini -n "C:\Program Files\mIRC\mtama\1.ini" ID2- Bounty: $1000

but it doesnt do anything

So If You Can Please Update That Code For Me Thanks!

do i need to load 1.ini??? cause i just did but didnt test it

alias rpg.kill {
 var %a
 if $rpg.cash($1,$2) > 0 || $rpg.bounty($1,$2) > 0 {
   if $rpg.cash($1,$2) > 0 {
     %a = Cash: $chr(36) $+ $rpg.cash($1,$2)
     !writeini -n " $+ $rpg.dir $+ rpg.ini" $mta.name($1,$3) cash $calc($rpg.cash($1,$3) + $rpg.cash($1,$2))
   }
   if $rpg.bounty($1,$2) > 0 {
     %a = %a $+ - Bounty: $chr(36) $+ $rpg.bounty($1,$2)
   }
   else {
     !writeini -n " $+ $rpg.dir $+ rpg.ini" $mta.name($1,$3) bounty $calc($rpg.bounty($1,$3) + 1000)
   }
   mta.msg ($1,$3) Gained > %a
 }
 else {
   !writeini -n " $+ $rpg.dir $+ rpg.ini" $mta.name($1,$3) bounty $calc($rpg.bounty($1,$3) + 1000)
   mta.msg $1 $2 Bounty risen by: $chr(36) $+ 1000
 }
}

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...