Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias remNickID {
- if ($left($right($1,3),-2) == $chr(40)) {
- return $left($1,-3)
- }
- elseif ($left($right($1,3),-2) == $chr(41)) {
- return $left($1,-5)
- }
- else {
- return $left($1,-4)
- }
- }
- ;Money Gained: $12
- ;Nick: $remNickID($3)
- on *:LOAD:{
- if (%ingamenick == $null) { set %ingamenick $$?="Enter your ingame nickname!" }
- }
- on *:TEXT:*:#ECNR:{
- if ( $nick == ECNR1 || $nick == ECNR2 ) {
- if (%ingamenick == $null) { set %ingamenick $$?="Enter your ingame nickname!" }
- if ( if ($4 == money && $5 == has && $6 == increased && $7 == from && $remNickID($3) == %ingamenick) {) {
- set %currentmoney 0
- if ($readini(Achievments.ini, np, Money, Money) != $null) { set %currentmoney $readini(Achievments.ini, np, Money, Money) }
- /writeini -n Achievments.ini Money Money $calc(%currentmoney + $12)
- if ($readini(Achievments.ini, np, Money, 1Million) == $null && $calc(%currentmoney,$readini(Achievments.ini, np, Money, Money) > 1000000) {
- /msg #ECNR !say [Achievment Get] 1 Million Dollars
- /writeini -n Achievments.ini Money 1Million Done
- }
- }
- if ($2 == has && $6 == from && $8 == backpack. && $remNickID($9) == %ingamenick) {
- set %currentmoney $readini(Achievments.ini, np, Money, Money)
- /writeini -n Achievments.ini Money Money $calc(%currentmoney - $right($5,-1))
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment