Public feed
#891326
ON *:TEXT:!register:#maffia: {
var %maffia = $readini(maffia.ini,register,$nick)
if (%maffia) { notice $nick You have already Registered! }
elseif (!%users) { writeini maffia.ini register $nick 1 | notice $nick You have now been Registered }
set %bank [ $+ [ $nick ] ] 10000
set %cash [ $+ [ $nick ] ] 1000
set %level [ $+ [ $nick ] ] 1
set %cars [ $+ [ $nick ] ] 0
set %mlogin [ $+ [ $Nick ] ] 1
set %weapon [ $+ [ $nick ] ] None
}
ON *:JOIN:#maffia: {
var %maffia = $readini(maffia.ini,register,$nick)
if (!%maffia) { notice $nick [#Maffia] You haven't registered yet, type !register to register. | halt }
elseif (%maffia) { set %mlogin [ $+ [ $nick ] ] 1 | notice $nick [#Maffia] You are now logged in on your Maffia account }
}
ON *:PART:#maffia: {
var %maffia = $readini(users.ini,register,$nick)
if (!%maffia) { HALT }
elseif (%maffia) { unset %mlogin [ $+ [ $nick ] ] 1 }
}
ON *:QUIT: {
var %maffia = $readini(users.ini,register,$nick)
if (!%maffia) { HALT }
elseif (%maffia) { unset %mlogin [ $+ [ $nick ] ] 1 }
}
ON *:TEXT:!status:#maffia: {
var %maffia = $readini(maffia.ini,register,$nick)
if (!%maffia) { notice $nick You haven't registered yet, type !register to register. | halt }
notice $nick [Bank]: $ $+ %bank [ $+ [ $Nick ] ]
notice $nick [Cash]: $ $+ %cash [ $+ [ $nick ] ]
notice $nick [Level]: %level [ $+ [ $nick ] ] [Cars]: %cars [ $+ [ $nick ] ]
notice $nick [Weapon]: %weapon [ $+ [ $nick ] ] [Pet]: %pet [ $+ [ $nick ] ]
if ($timer($+(jail,$nick))) { notice $nick You are in the Jail, you must wait till they let you free! | halt }
}
ON *:TEXT:!deluser*:#maffia: {
if ($nick isop $chan) {
remini maffia.ini register $2
msg $chan User $2 has been Deleted
unset %level [ $+ [ $2 ] ]
unset %mlogin [ $+ [ $2 ] ]
unset %cars [ $+ [ $2 ] ]
unset %bank [ $+ [ $2 ] ]
unset %cash [ $+ [ $2 ] ]
unset %carcount [ $+ [ $2 ] ]
unset %weapon [ $+ [ $2 ] ]
unset %porschecayenne [ $+ [ $2 ] ]
unset %ferrarichallenge [ $+ [ $2 ] ]
unset %ferrari550 [ $+ [ $2 ] ]
unset %bmw335d [ $+ [ $2 ] ]
unset %fordmustang [ $+ [ $2 ] ]
unset %citroenc1 [ $+ [ $2 ] ]
unset %opelgt [ $+ [ $2 ] ]
unset %renaultlaguna [ $+ [ $2 ] ]
unset %LamborghiniMurcielago [ $+ [ $2 ] ]
unset %porsche911 [ $+ [ $2 ] ]
unset %Peugeot4002 [ $+ [ $2 ] ]
unset %peugeot307 [ $+ [ $2 ] ]
unset %F430 [ $+ [ $2 ] ]
unset %Fer360 [ $+ [ $2 ] ]
unset %mclarenf1 [ $+ [ $2 ] ]
unset %FOC [ $+ [ $2 ] ]
unset %eclass [ $+ [ $2 ] ]
unset %vision [ $+ [ $2 ] ]
unset %peu107 [ $+ [ $2 ] ]
unset %fordf [ $+ [ $2 ] ]
}
else { notice $nick You need to be operator to delete an user. }
}
ON *:TEXT:!stealcar:#maffia: {
if ($timer($+(jail,$nick))) { notice $nick You are in the Jail, you must wait till they let you free! | halt }
var %maffia = $readini(maffia.ini,register,$nick)
if (!%maffia) { notice $nick You haven't registered yet, type !register to register. | halt }
set -u60 %stealcar [ $+ [ $nick ] ] on
if (%stealcar [ $+ [ $nick ] ] == on) { notice $nick You can only try to steal a car once per minute | halt }
if (!%stealcar [ $+ [ $nick ] ]) {
set %stealcarluck [ $+ [ $nick ] ] $r(1,80)
if (%stealcarluck [ $+ [ $nick ] ] == 1) { inc %cars [ $+ [ $Nick ] ] | inc %carcount [ $+ [ $nick ] ] | notice $nick You stole a Porsche Cayenne Magnum - $ $+ 427.500,- | inc %porschecayenne [ $+ [ $nick ] ] 1 | unset %stealcarluck [ $+ [ $nick ] ] | halt }
if (%stealcarluck [ $+ [ $nick ] ] == 2) { inc %cars [ $+ [ $Nick ] ] | inc %carcount [ $+ [ $nick ] ] | notice $nick You stole a Ferrari Challenge Stradale - $ $+ 357.500,- | inc %ferrarichallenge [ $+ [ $nick ] ] 1 | unset %stealcarluck [ $+ [ $nick ] ] | halt }
if (%stealcarluck [ $+ [ $nick ] ] == 3) { inc %cars [ $+ [ $Nick ] ] | inc %carcount [ $+ [ $nick ] ] | notice $nick You stole a Ferrari 550 Maranello - $ $+ 419.500,- | inc %ferrari550 [ $+ [ $nick ] ] 1 | unset %stealcarluck [ $+ [ $nick ] ] | halt }
if (%stealcarluck [ $+ [ $nick ] ] == 4) { inc %cars [ $+ [ $Nick ] ] | inc %carcount [ $+ [ $nick ] ] | notice $nick You stole a BMW 335d Coupé - $ $+ 209.000,- | inc %bmw335d [ $+ [ $nick ] ] 1 | unset %stealcarluck [ $+ [ $nick ] ] | halt }
if (%stealcarluck [ $+ [ $nick ] ] == 5) { inc %cars [ $+ [ $Nick ] ] | inc %carcount [ $+ [ $nick ] ] | notice $nick You stole a Ford Mustang - $ $+ 139.200,- | inc %fordmustang [ $+ [ $nick ] ] 1 | unset %stealcarluck [ $+ [ $nick ] ] | halt }
if (%stealcarluck [ $+ [ $nick ] ] == 6) { inc %cars [ $+ [ $Nick ] ] | inc %carcount [ $+ [ $nick ] ] | notice $nick You stole a Citroën C1 - $ $+ 50.200,- | inc %citroenc1 [ $+ [ $nick ] ] 1 | unset %stealcarluck [ $+ [ $nick ] ] | halt }
if (%stealcarluck [ $+ [ $nick ] ] == 7) { inc %cars [ $+ [ $Nick ] ] | inc %carcount [ $+ [ $nick ] ] | notice $nick You stole a Opel GT 2.0 Turbo - $ $+ 95.700,- | inc %opelgt [ $+ [ $nick ] ] 1 | unset %stealcarluck [ $+ [ $nick ] ] | halt }
if (%stealcarluck [ $+ [ $nick ] ] == 8) { inc %cars [ $+ [ $Nick ] ] | inc %carcount [ $+ [ $nick ] ] | notice $nick You stole a Renault Laguna - $ $+ 101.900,- | inc %renaultlaguna [ $+ [ $nick ] ] 1 | unset %stealcarluck [ $+ [ $nick ] ] | halt }
if (%stealcarluck [ $+ [ $nick ] ] == 9) { inc %cars [ $+ [ $Nick ] ] | inc %carcount [ $+ [ $nick ] ] | notice $nick You stole a Lamborghini Murcielago - $ $+ 512.900,- | inc %Lamborghinimurcielago [ $+ [ $nick ] ] 1 | unset %stealcarluck [ $+ [ $nick ] ] | halt }
if (%stealcarluck [ $+ [ $nick ] ] == 10) { inc %cars [ $+ [ $Nick ] ] | inc %carcount [ $+ [ $nick ] ] | notice $nick You stole a Porsche 911 Turbo - $ $+ 317.500,- | inc %porsche911 [ $+ [ $nick ] ] 1 | unset %stealcarluck [ $+ [ $nick ] ] | halt }
if (%stealcarluck [ $+ [ $nick ] ] == 11) { inc %cars [ $+ [ $Nick ] ] | inc %carcount [ $+ [ $nick ] ] | notice $nick You stole a Peugeot 4002! That's a hot car! - $ $+ 687.700,- | inc %peugeot4002 [ $+ [ $nick ] ] 1 | unset %stealcarluck [ $+ [ $nick ] ] | halt }
if (%stealcarluck [ $+ [ $nick ] ] == 12) { inc %cars [ $+ [ $Nick ] ] | inc %carcount [ $+ [ $nick ] ] | notice $nick You stole a Peugeot 307 - $ $+ 90.100,- | inc %peugeot307 [ $+ [ $nick ] ] 1 | unset %stealcarluck [ $+ [ $nick ] ] | halt }
if (%stealcarluck [ $+ [ $nick ] ] == 13) { inc %cars [ $+ [ $Nick ] ] | inc %carcount [ $+ [ $nick ] ] | notice $nick You stole a Ford Focus - $ $+ 45.350,- | inc %fordf [ $+ [ $nick ] ] 1 | unset %stealcarluck [ $+ [ $nick ] ] | halt }
if (%stealcarluck [ $+ [ $nick ] ] == 14) { inc %cars [ $+ [ $Nick ] ] | inc %carcount [ $+ [ $nick ] ] | notice $nick You stole a Ferrari F430 - $ $+ 395.700,- | inc %F430 [ $+ [ $nick ] ] 1 | unset %stealcarluck [ $+ [ $nick ] ] | halt }
if (%stealcarluck [ $+ [ $nick ] ] == 15) { inc %cars [ $+ [ $Nick ] ] | inc %carcount [ $+ [ $nick ] ] | notice $nick You stole a Ferrari 360 Modena - $ $+ 360.500,- | inc %Fer360 [ $+ [ $nick ] ] 1 | unset %stealcarluck [ $+ [ $nick ] ] | halt }
if (%stealcarluck [ $+ [ $nick ] ] == 16) { inc %cars [ $+ [ $Nick ] ] | inc %carcount [ $+ [ $nick ] ] | notice $nick You stole a Mclaren F1! That's a hot car! - $ $+ 701.800,- | inc %mclarenf1 [ $+ [ $nick ] ] 1 | unset %stealcarluck [ $+ [ $nick ] ] | halt }
if (%stealcarluck [ $+ [ $nick ] ] == 17) { inc %cars [ $+ [ $Nick ] ] | inc %carcount [ $+ [ $nick ] ] | notice $nick You stole a Formula One Car! Woahh!! - $ $+ 1100.000,- | inc %FOC [ $+ [ $nick ] ] 1 | unset %stealcarluck [ $+ [ $nick ] ] | halt }
if (%stealcarluck [ $+ [ $nick ] ] == 18) { inc %cars [ $+ [ $Nick ] ] | inc %carcount [ $+ [ $nick ] ] | notice $nick You stole a Mercedes-Benz E-Class - $ $+ 395.700,- | inc %eclass [ $+ [ $nick ] ] 1 | unset %stealcarluck [ $+ [ $nick ] ] | halt }
if (%stealcarluck [ $+ [ $nick ] ] == 19) { inc %cars [ $+ [ $Nick ] ] | inc %carcount [ $+ [ $nick ] ] | notice $nick You stole a Mercedes Vision - $ $+ 360.200,- | inc %Vision [ $+ [ $nick ] ] 1 | unset %stealcarluck [ $+ [ $nick ] ] | halt }
if (%stealcarluck [ $+ [ $nick ] ] == 20) { inc %cars [ $+ [ $Nick ] ] | inc %carcount [ $+ [ $nick ] ] | notice $nick You stole a Peugeot 107 - $ $+ 25.350,- | inc %peu107 [ $+ [ $nick ] ] 1 | unset %stealcarluck [ $+ [ $nick ] ] | halt }
if (%stealcarluck [ $+ [ $nick ] ] isnum 21-60) { notice $Nick You tried to steal the car, but you failed and could you just escape! | halt }
if (%stealcarluck [ $+ [ $nick ] ] isnum 60-80) { set %jail [ $+ [ $nick ] ] | /timerjail $+ $nick 1 300 unset %jail [ $+ [ $nick ] ] | /timerjailfree $+ $nick 1 300 notice $nick You have been released from the jail | notice $nick You got caught, and put in jail for 5 minutes! | halt }
}
}
ON *:TEXT:!garage:#Maffia: {
if ($timer($+(jail,$nick))) { notice $nick You are in the Jail, you must wait till they let you free! | halt }
var %maffia = $readini(maffia.ini,register,$nick)
if (!%maffia) { notice $nick You haven't registered yet, type !register to register. | halt }
if (%cars [ $+ [ $nick ] ] == 0) { notice $nick You don't have any cars in your garage, type !stealcar to steal one | halt }
msg $nick You have %cars [ $+ [ $Nick ] ] car(s) in your Garage, type !sellcar <car> to sell one
if (%porschecayenne [ $+ [ $nick ] ] > 0) { msg $Nick %porschecayenne [ $+ [ $Nick ] ] Porsche Cayenne Magnum - $ $+ 427.500,- }
if (%ferrarichallenge [ $+ [ $nick ] ] > 0) { msg $Nick %ferrarichallenge [ $+ [ $nick ] ] Ferrari Challenge Stradale - $ $+ 357.500,- }
if (%ferrari550 [ $+ [ $nick ] ] > 0) { msg $nick %ferrari550 [ $+ [ $Nick ] ] Ferrari 550 Maranello - $ $+ 419.500,- }
if (%bmw335d [ $+ [ $nick ] ] > 0) { msg $nick %bmw335d [ $+ [ $Nick ] ] BMW 335D Coupé - $ $+ 209.000,- }
if (%fordmustang [ $+ [ $nick ] ] > 0) { msg $nick %fordmustang [ $+ [ $Nick ] ] Ford Mustang - $ $+ 139.200,- }
if (%citroenc1 [ $+ [ $nick ] ] > 0) { msg $nick %citroenc1 [ $+ [ $Nick ] ] Citroën C1 - $ $+ 50.200,- }
if (%opelgt [ $+ [ $nick ] ] > 0) { msg $nick %opelgt [ $+ [ $Nick ] ] Opel GT 2.0 Turbo - $ $+ 95.700,- }
if (%renaultlaguna [ $+ [ $nick ] ] > 0) { msg $nick %renaultlaguna [ $+ [ $Nick ] ] Renault Laguna - $ $+ 101.900,- }
if (%LamborghiniMurcielago [ $+ [ $nick ] ] > 0) { msg $nick %LamborghiniMurcielago [ $+ [ $Nick ] ] Lamborghini Murcielago - $ $+ 512.900,- }
if (%porsche911 [ $+ [ $nick ] ] > 0) { msg $nick %porsche911 [ $+ [ $Nick ] ] Porsche 911 Turbo - $ $+ 317.500,- }
if (%Peugeot4002 [ $+ [ $nick ] ] > 0) { msg $nick %Peugeot4002 [ $+ [ $Nick ] ] Peugeot 4002 - $ $+ 687.700,- }
if (%peugeot307 [ $+ [ $nick ] ] > 0) { msg $nick %peugeot307 [ $+ [ $Nick ] ] Peugeot 307 - $ $+ 90.100,- }
if (%fordf [ $+ [ $nick ] ] > 0) { msg $nick %fordf [ $+ [ $Nick ] ] Ford Focus - $ $+ 45.350,- }
if (%F430 [ $+ [ $nick ] ] > 0) { msg $nick %F430 [ $+ [ $Nick ] ] Ferrari F430 - $ $+ 395.700,- }
if (%Fer360 [ $+ [ $nick ] ] > 0) { msg $nick %Fer360 [ $+ [ $Nick ] ] Ferrari 360 Modena - $ $+ 360.500,- }
if (%mclarenf1 [ $+ [ $nick ] ] > 0) { msg $nick %mclarenf1 [ $+ [ $Nick ] ] Mclaren F1 - $ $+ 701.800,- }
if (%FOC [ $+ [ $nick ] ] > 0) { msg $nick %FOC [ $+ [ $Nick ] ] Formula One Car - $ $+ 1100.000,- }
if (%eclass [ $+ [ $nick ] ] > 0) { msg $nick %eclass [ $+ [ $Nick ] ] Mercedes-Benz E-Class - $ $+ 395.700,- }
if (%vision [ $+ [ $nick ] ] > 0) { msg $nick %vision [ $+ [ $Nick ] ] Mercedes Vision - $ $+ 360.200,- }
if (%peu107 [ $+ [ $nick ] ] > 0) { msg $nick %peu107 [ $+ [ $Nick ] ] Peugeot 107 - $ $+ 25.250,- }
}
ON *:TEXT:!sellcar*:#maffia: {
if ($timer($+(jail,$nick))) { notice $nick You are in the Jail, you must wait till they let you free! | halt }
var %maffia = $readini(maffia.ini,register,$nick)
if (!%maffia) { notice $nick You haven't registered yet, type !register to register. | halt }
if (%cars [ $+ [ $nick ] ] < $2) { notice $nick You don't have so many cars! | halt }
inc %cash [ $+ [ $nick ] ] $calc($2 * $r(5000,20000)) | dec %cars [ $+ [ $nick ] ] $2 | notice $nick You have sold $2 car(s) and you have now $ $+ %cash [ $+ [ $Nick ] ] Cash on you
}
ON *:TEXT:!buycar*:#maffia: {
if ($timer($+(jail,$nick))) { notice $nick You are in the Jail, you must wait till they let you free! | halt }
var %maffia = $readini(maffia.ini,register,$nick)
if (!%maffia) { notice $nick You haven't registered yet, type !register to register. | halt }
if (%cash [ $+ [ $nick ] ] < $calc($2 * 25000)) { notice $nick You don't have enough money! | halt }
dec %cash [ $+ [ $nick ] ] $calc($2 * 25000)) | inc %cars [ $+ [ $nick ] ] $2 | notice $nick You have bought $2 car(s) and you have now %cars [ $+ [ $Nick ] ] Cars
}
ON *:TEXT:!store*:#maffia: {
if ($timer($+(jail,$nick))) { notice $nick You are in the Jail, you must wait till they let you free! | halt }
var %maffia = $readini(maffia.ini,register,$nick)
if (!%maffia) { notice $nick You haven't registered yet, type !register to register. | halt }
if (%cash [ $+ [ $nick ] ] < $2) { notice $nick You don't have so much cash! | halt }
else { inc %bank [ $+ [ $Nick ] ] $2 | dec %cash [ $+ [ $nick ] ] $2 | notice $nick $2 Dollar has been added to your bank, you have now $ $+ %bank [ $+ [ $nick ] ] on your bank }
}
ON *:TEXT:!withdraw*:#maffia: {
if ($timer($+(jail,$nick))) { notice $nick You are in the Jail, you must wait till they let you free! | halt }
var %maffia = $readini(maffia.ini,register,$nick)
if (!%maffia) { notice $nick You haven't registered yet, type !register to register. | halt }
if (%bank [ $+ [ $nick ] ] < $2) { notice $nick You don't have so much money on your bank! | halt }
else { dec %bank [ $+ [ $Nick ] ] $2 | inc %cash [ $+ [ $nick ] ] $2 | notice $nick You have taken $ $+ $2 with you }
}
ON *:TEXT:!bank:#maffia: {
if ($timer($+(jail,$nick))) { notice $nick You are in the Jail, you must wait till they let you free! | halt }
var %maffia = $readini(maffia.ini,register,$nick)
if (!%maffia) { notice $nick You haven't registered yet, type !register to register. | halt }
if (%bank [ $+ [ $nick ] ] == 0) { notice $nick You don't have any money on your bank, type !store <amount> to put something on it | halt }
notice $nick You have $ $+ %bank [ $+ [ $nick ] ] on your bank.
}
ON *:TEXT:!cash:#maffia: {
if ($timer($+(jail,$nick))) { notice $nick You are in the Jail, you must wait till they let you free! | halt }
var %maffia = $readini(maffia.ini,register,$nick)
if (!%maffia) { notice $nick You haven't registered yet, type !register to register. | halt }
if (%cash [ $+ [ $nick ] ] == 0) { notice $nick You don't have any cash with you, type !withdraw <amount> to get some of your bank | halt }
notice $nick You have $ $+ %cash [ $+ [ $nick ] ] with you.
}
ON *:TEXT:!weaponshop:#maffia: {
if ($timer($+(jail,$nick))) { notice $nick You are in the Jail, you must wait till they let you free! | halt }
var %maffia = $readini(maffia.ini,register,$nick)
if (!%maffia) { notice $nick You haven't registered yet, type !register to register. | halt }
notice $nick Welcome to the Weapon shop, you can buy your weapon here, type !weapons for a list of weapons. }
ON *:TEXT:!weapons:#maffia: {
if ($timer($+(jail,$nick))) { notice $nick You are in the Jail, you must wait till they let you free! | halt }
var %maffia = $readini(maffia.ini,register,$nick)
if (!%maffia) { notice $nick You haven't registered yet, type !register to register. | halt }
msg $nick To buy a weapon type: !buyweap <weapon>
msg $nick Knife - $ $+ 500
msg $nick Pistol - $ $+ 1,000
msg $nick Grenades - $ $+ 5,000
msg $nick Machinegun - $ $+ 10,000
msg $nick Shotgun - $ $+ 15,000
msg $nick Sniper - $ $+ 20,000
msg $nick Missiles - $ $+ 100,000,000
msg $nick Atomic Bomb - $ $+ 450,000,000
}
ON *:TEXT:!buyweap*:#maffia: {
if ($timer($+(jail,$nick))) { notice $nick You are in the Jail, you must wait till they let you free! | halt }
var %maffia = $readini(maffia.ini,register,$nick)
if (!%maffia) { notice $nick You haven't registered yet, type !register to register. | halt }
if (($2 == knife) && (%cash [ $+ [ $nick ] ] >= 500)) { dec %cash [ $+ [ $nick ] ] 500 | set %weapon [ $+ [ $nick ] ] Knife | notice $nick You have bought a Knife for $ $+ 500 | halt }
if (($2 == knife) && (%cash [ $+ [ $nick ] ] < 500)) { notice $nick You Don't have enough money with you to buy a knife. | notice $nick Type !withdraw <amount> to get some money of your bank | halt }
if (($2 == pistol) && (%cash [ $+ [ $nick ] ] >= 1000)) { dec %cash [ $+ [ $nick ] ] 1000 | set %weapon [ $+ [ $nick ] ] Pistol | notice $nick You have bought a Pistol for $ $+ 1,000 | halt }
if (($2 == pistol) && (%cash [ $+ [ $nick ] ] < 1000)) { notice $nick You Don't have enough money with you to buy a pistol. | notice $nick Type !withdraw <amount> to get some money of your bank }
if (($2 == grenades) && (%cash [ $+ [ $nick ] ] >= 5000)) { dec %cash [ $+ [ $nick ] ] 5000 | set %weapon [ $+ [ $nick ] ] Grenades | notice $nick You have bought Grenades for $ $+ 5,000 | halt }
if (($2 == grenades) && (%cash [ $+ [ $nick ] ] < 5000)) { notice $nick You Don't have enough money with you to buy Grenades. | notice $nick Type !withdraw <amount> to get some money of your bank }
if (($2 == Machinegun) && (%cash [ $+ [ $nick ] ] >= 10000)) { dec %cash [ $+ [ $nick ] ] 10000 | set %weapon [ $+ [ $nick ] ] Machinegun | notice $nick You have bought a Machinegun for $ $+ 10,000 | halt }
if (($2 == Machinegun) && (%cash [ $+ [ $nick ] ] < 10000)) { notice $nick You Don't have enough money with you to buy a Machinegun | notice $nick Type !withdraw <amount> to get some money of your bank }
if (($2 == Shotgun) && (%cash [ $+ [ $nick ] ] >= 15000)) { dec %cash [ $+ [ $nick ] ] 15000 | set %weapon [ $+ [ $nick ] ] Shotgun | notice $nick You have bought a Shotgun for $ $+ 15,000 | halt }
if (($2 == Shotgun) && (%cash [ $+ [ $nick ] ] < 15000)) { notice $nick You Don't have enough money with you to buy a Shotgun | notice $nick Type !withdraw <amount> to get some money of your bank }
if (($2 == Sniper) && (%cash [ $+ [ $nick ] ] >= 20000)) { dec %cash [ $+ [ $nick ] ] 20000 | set %weapon [ $+ [ $nick ] ] Sniper | notice $nick You have bought a Sniper for $ $+ 20,000 | halt }
if (($2 == Sniper) && (%cash [ $+ [ $nick ] ] < 20000)) { notice $nick You Don't have enough money with you to buy a Sniper | notice $nick Type !withdraw <amount> to get some money of your bank }
if (($2 == Missiles) && (%cash [ $+ [ $nick ] ] >= 100000000)) { dec %cash [ $+ [ $nick ] ] 100000000 | set %weapon [ $+ [ $nick ] ] Missiles | notice $nick You have bought Missiles for $ $+ 100,000,000 | halt }
if (($2 == Missiles) && (%cash [ $+ [ $nick ] ] < 100000000)) { notice $nick You Don't have enough money with you to buy Missiles | notice $nick Type !withdraw <amount> to get some money of your bank }
if (($2- == Atomic Bomb) && (%cash [ $+ [ $nick ] ] >= 450000000)) { dec %cash [ $+ [ $nick ] ] 450000000 | set %weapon [ $+ [ $nick ] ] Atomic Bomb | notice $nick You have bought an Atomic Bomb for $ $+ 450,000,000 | halt }
if (($2- == Atomic Bomb) && (%cash [ $+ [ $nick ] ] < 450000000)) { notice $nick You Don't have enough money with you to buy Atomic Bomb | notice $nick Type !withdraw <amount> to get some money of your bank }
if (!$2) { notice $nick Please enter a weapon to buy, example: !buyweap Pistol. | notice $nick Type !weapons for a list of weapons. }
}
ON *:TEXT:!levelup:#maffia: {
if ($timer($+(jail,$nick))) { notice $nick You are in the Jail, you must wait till they let you free! | halt }
var %maffia = $readini(maffia.ini,register,$nick)
if (!%maffia) { notice $nick You haven't registered yet, type !register to register. | halt }
if ((%level [ $+ [ $nick ] ] >= 5000) && (%cash [ $+ [ $nick ] ] >= 50000000)) { inc %level [ $+ [ $nick ] ] 1 | notice $nick You pay $ $+ 50,000,000 and upgrade your level | notice $nick You are now level %level [ $+ [ $nick ] ] }
elseif ((%level [ $+ [ $nick ] ] >= 2000) && (%cash [ $+ [ $nick ] ] >= 40000000)) { inc %level [ $+ [ $nick ] ] 1 | notice $nick You pay $ $+ 40,000,000 and upgrade your level | notice $nick You are now level %level [ $+ [ $nick ] ] }
elseif ((%level [ $+ [ $nick ] ] >= 1750) && (%cash [ $+ [ $nick ] ] >= 30000000)) { inc %level [ $+ [ $nick ] ] 1 | notice $nick You pay $ $+ 30,000,000 and upgrade your level | notice $nick You are now level %level [ $+ [ $nick ] ] }
elseif ((%level [ $+ [ $nick ] ] >= 1500) && (%cash [ $+ [ $nick ] ] >= 25000000)) { inc %level [ $+ [ $nick ] ] 1 | notice $nick You pay $ $+ 25,000,000 and upgrade your level | notice $nick You are now level %level [ $+ [ $nick ] ] }
elseif ((%level [ $+ [ $nick ] ] >= 1250) && (%cash [ $+ [ $nick ] ] >= 20000000)) { inc %level [ $+ [ $nick ] ] 1 | notice $nick You pay $ $+ 20,000,000 and upgrade your level | notice $nick You are now level %level [ $+ [ $nick ] ] }
elseif ((%level [ $+ [ $nick ] ] >= 1000) && (%cash [ $+ [ $nick ] ] >= 17500000)) { inc %level [ $+ [ $nick ] ] 1 | notice $nick You pay $ $+ 17,500,000 and upgrade your level | notice $nick You are now level %level [ $+ [ $nick ] ] }
elseif ((%level [ $+ [ $nick ] ] >= 900) && (%cash [ $+ [ $nick ] ] >= 15000000)) { inc %level [ $+ [ $nick ] ] 1 | notice $nick You pay $ $+ 15,000,000 and upgrade your level | notice $nick You are now level %level [ $+ [ $nick ] ] }
elseif ((%level [ $+ [ $nick ] ] >= 800) && (%cash [ $+ [ $nick ] ] >= 12500000)) { inc %level [ $+ [ $nick ] ] 1 | notice $nick You pay $ $+ 12,500,000 and upgrade your level | notice $nick You are now level %level [ $+ [ $nick ] ] }
elseif ((%level [ $+ [ $nick ] ] >= 700) && (%cash [ $+ [ $nick ] ] >= 10000000)) { inc %level [ $+ [ $nick ] ] 1 | notice $nick You pay $ $+ 10,000,000 and upgrade your level | notice $nick You are now level %level [ $+ [ $nick ] ] }
elseif ((%level [ $+ [ $nick ] ] >= 600) && (%cash [ $+ [ $nick ] ] >= 9000000)) { inc %level [ $+ [ $nick ] ] 1 | notice $nick You pay $ $+ 9,000,000 and upgrade your level | notice $nick You are now level %level [ $+ [ $nick ] ] }
elseif ((%level [ $+ [ $nick ] ] >= 500) && (%cash [ $+ [ $nick ] ] >= 8000000)) { inc %level [ $+ [ $nick ] ] 1 | notice $nick You pay $ $+ 8,000,000 and upgrade your level | notice $nick You are now level %level [ $+ [ $nick ] ] }
elseif ((%level [ $+ [ $nick ] ] >= 400) && (%cash [ $+ [ $nick ] ] >= 7000000)) { inc %level [ $+ [ $nick ] ] 1 | notice $nick You pay $ $+ 7,000,000 and upgrade your level | notice $nick You are now level %level [ $+ [ $nick ] ] }
elseif ((%level [ $+ [ $nick ] ] >= 300) && (%cash [ $+ [ $nick ] ] >= 6000000)) { inc %level [ $+ [ $nick ] ] 1 | notice $nick You pay $ $+ 6,000,000 and upgrade your level | notice $nick You are now level %level [ $+ [ $nick ] ] }
elseif ((%level [ $+ [ $nick ] ] >= 200) && (%cash [ $+ [ $nick ] ] >= 5000000)) { inc %level [ $+ [ $nick ] ] 1 | notice $nick You pay $ $+ 5,000,000 and upgrade your level | notice $nick You are now level %level [ $+ [ $nick ] ] }
elseif ((%level [ $+ [ $nick ] ] >= 100) && (%cash [ $+ [ $nick ] ] >= 4000000)) { inc %level [ $+ [ $nick ] ] 1 | notice $nick You pay $ $+ 4,000,000 and upgrade your level | notice $nick You are now level %level [ $+ [ $nick ] ] }
elseif ((%level [ $+ [ $nick ] ] >= 50) && (%cash [ $+ [ $nick ] ] >= 3000000)) { inc %level [ $+ [ $nick ] ] 1 | notice $nick You pay $ $+ 3,000,000 and upgrade your level | notice $nick You are now level %level [ $+ [ $nick ] ] }
elseif ((%level [ $+ [ $nick ] ] >= 25) && (%cash [ $+ [ $nick ] ] >= 2000000)) { inc %level [ $+ [ $nick ] ] 1 | notice $nick You pay $ $+ 2,000,000 and upgrade your level | notice $nick You are now level %level [ $+ [ $nick ] ] }
elseif ((%level [ $+ [ $nick ] ] >= 10) && (%cash [ $+ [ $nick ] ] >= 1000000)) { inc %level [ $+ [ $nick ] ] 1 | notice $nick You pay $ $+ 1,000,000 and upgrade your level | notice $nick You are now level %level [ $+ [ $nick ] ] }
elseif ((%level [ $+ [ $nick ] ] > 5) && (%cash [ $+ [ $nick ] ] >= 500000)) { inc %level [ $+ [ $nick ] ] 1 | notice $nick You pay $ $+ 500000 and upgrade your level | notice $nick You are now level %level [ $+ [ $nick ] ] }
elseif ((%level [ $+ [ $nick ] ] <= 5) && (%cash [ $+ [ $nick ] ] >= 100000)) { inc %level [ $+ [ $nick ] ] 1 | notice $nick You pay $ $+ 100000 and upgrade your level | notice $nick You are now level %level [ $+ [ $nick ] ] }
}