Jump to content

Help With Money On Olis


Vital

Recommended Posts

Posted

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

68.230.33.48:2005.png

Vital's RPG Server Is No More!

Posted
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
 }
}

"Never argue with an idiot. They bring you down to their level and beat you with experience."

"Arguing on the internet is like the Special Olympics. Even if you win, you're still retarded."

signature.gif

Posted

and can you tell me what the prob was that was straight Olis script it always comeback as a file dir.

68.230.33.48:2005.png

Vital's RPG Server Is No More!

Posted
well it still doesnt work

Slap Oli to implent the fixed code.

"Never argue with an idiot. They bring you down to their level and beat you with experience."

"Arguing on the internet is like the Special Olympics. Even if you win, you're still retarded."

signature.gif

Posted

Any Ideas if you got !bounty working on your script by Oli can you tell me what the prob is?

sorry i just really wanna fix it

68.230.33.48:2005.png

Vital's RPG Server Is No More!

  • Recently Browsing   0 members

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