Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [aliases]
- n0=/botduel {
- n1= ;$1 == nick, $2 == bot, $3 == weaponpoints, $4 == money, $5 == Skillpoints, $6 == who (any/SP/SPC), $7= skillpoints needed, $8 = cookies needed, weapon points == $read(Stats\ $+ $1 $+ .txt, 19)
- n2= if ($6 == Any) {
- n3= }
- n4= elseif ($6 == SP) {
- n5= checkrank $1 $7
- n6= if ($read(Stats\ $+ $1 $+ .txt, 19) >= 5000) {
- n7= increasekill $1
- n8= increasecash $1 $4
- n9= increaserank $1 $5
- n10= msg #[MM]IKKE 2[DUEL|Bot]4 $1 2has killed9 $2 2with:6 $read(Stats\ $+ $1 $+ .txt,18) 1[OVERCLASSED]
- n11= }
- n12= elseif ($read(Stats\ $+ $1 $+ .txt, 19) >= 500) {
- n13= var %skillpoints1 = $read(Stats\ $+ $1 $+ .txt, 19)
- n14= var %skillpoints2 = $3
- n15= var %skillpoints3 = $rand(1, $calc(%skillpoints1 + %skillpoints2))
- n16= {
- n17= if (%skillpoints3 <= %skillpoints1) {
- n18= increasekill $1
- n19= increasecash $1 $4
- n20= increaserank $1 $5
- n21= var %i = $rand(1,6)
- n22= if (%i <= 3) {
- n23= msg #[MM]IKKE 2[DUEL|Bot]9 $1 2has killed4 $2 2with:6 $read(Stats\ $+ $1 $+ .txt,18)
- n24= }
- n25= elseif (%i <= 5) {
- n26= var %j = $rand(0,25)
- n27= decreasehealth $1 %j
- n28= if ($read(Stats\ $+ $1 $+ .txt, 7) <= 0) {
- n29= increasedeath $1
- n30= msg #[MM]IKKE 2[DUEL|Bot]9 $1 2has killed4 $2 2with6 $read(Stats\ $+ $1 $+ .txt,18) $+ 2, but got damaged him/herself! (S)he died (lost7 %j 2health).
- n31= }
- n32= else {
- n33= msg #[MM]IKKE 2[DUEL|Bot]9 $1 2has killed4 $2 2with6 $read(Stats\ $+ $1 $+ .txt,18) $+ 2, but got damaged him/herself! (S)he lost7 %j 2health.
- n34= }
- n35= }
- n36= elseif (%i <= 6) {
- n37= var %j = $rand(25,75)
- n38= decreasehealth $1 %j
- n39= if ($read(Stats\ $+ $1 $+ .txt, 7) <= 0) {
- n40= increasedeath $1
- n41= msg #[MM]IKKE 2[DUEL|Bot]9 $1 2has killed4 $2 2with6 $read(Stats\ $+ $1 $+ .txt,18) $+ 2, but got damaged him/herself! (S)he died (lost7 %j 2health).
- n42= }
- n43= else {
- n44= msg #[MM]IKKE 2[DUEL|Bot]9 $1 2has killed4 $2 2with6 $read(Stats\ $+ $1 $+ .txt,18) $+ 2, but got seriously damaged him/herself! (S)he lost7 %j 2health.
- n45= }
- n46= }
- n47= else {
- n48= .notice %owner 4ERROR:2 Error dueling bot (player wins, error defining if he loses health)
- n49= }
- n50= }
- n51= else {
- n52= {
- n53= if ($2 == Thief) {
- n54= var %weapon Crowbar
- n55= }
- n56= elseif ($2 == Junk) {
- n57= var %weapon Knife
- n58= }
- n59= elseif ($2 == Policeman) {
- n60= var %weapon Pistol
- n61= }
- n62= elseif ($2 == Bodyguard) {
- n63= var %weapon Baseball Bat and Silenced Pistol
- n64= }
- n65= elseif ($2 == Gangster) {
- n66= var %weapon Pistols and Submachine Gun
- n67= }
- n68= elseif ($2 == Drugdealer) {
- n69= var %weapon Pistols and Sawn-Off Shotgun
- n70= }
- n71= elseif ($2 == Smuggler) {
- n72= var %weapon Combat Shotgun and M4
- n73= }
- n74= }
- n75= {
- n76= var %i = $rand(1,6)
- n77= if (%i <= 3) {
- n78= increasedeath $1
- n79= decreasehealth $1 250
- n80= msg #[MM]IKKE 2[DUEL|Bot]4 $2 2has killed9 $1 2with:6 %weapon
- n81= }
- n82= elseif (%i <= 5) {
- n83= var %j = $rand(25,75)
- n84= decreasehealth $1 %j
- n85= if ($read(Stats\ $+ $1 $+ .txt, 7) <= 0) {
- n86= increasedeath $1
- n87= msg #[MM]IKKE 2[DUEL|Bot]4 $2 2has seriously damaged9 $1 2with6 %weapon $+ 2.9 $1 2died (lost7 %j 2health).
- n88= }
- n89= else {
- n90= msg #[MM]IKKE 2[DUEL|Bot]4 $2 2has seriously damaged9 $1 2with6 %weapon $+ 2.9 $1 2lost7 %j 2health.
- n91= }
- n92= }
- n93= elseif (%i <= 6) {
- n94= var %j = $rand(0,25)
- n95= decreasehealth $1 %j
- n96= if ($read(Stats\ $+ $1 $+ .txt, 7) <= 0) {
- n97= increasedeath $1
- n98= msg #[MM]IKKE 2[DUEL|Bot]4 $2 2has damaged9 $1 2with6 %weapon $+ 2.9 $1 2died (lost7 %j 2health).
- n99= }
- n100= else {
- n101= msg #[MM]IKKE 2[DUEL|Bot]4 $2 2has damaged9 $1 2with6 %weapon $+ 2.9 $1 2lost7 %j 2health.
- n102= }
- n103= }
- n104= else {
- n105= .notice %owner 4ERROR:2 Error dueling bot (player loses, error defining if he loses health)
- n106= }
- n107= }
- n108= }
- n109= }
- n110= }
- n111= else {
- n112= {
- n113= if ($2 == Thief) {
- n114= var %weapon Crowbar
- n115= }
- n116= elseif ($2 == Junk) {
- n117= var %weapon Knife
- n118= }
- n119= elseif ($2 == Policeman) {
- n120= var %weapon Pistol
- n121= }
- n122= elseif ($2 == Bodyguard) {
- n123= var %weapon Baseball Bat and Silenced Pistol
- n124= }
- n125= elseif ($2 == Gangster) {
- n126= var %weapon Pistols and Submachine Gun
- n127= }
- n128= elseif ($2 == Drugdealer) {
- n129= var %weapon Pistols and Sawn-Off Shotgun
- n130= }
- n131= elseif ($2 == Smuggler) {
- n132= var %weapon Combat Shotgun and M4
- n133= }
- n134= }
- n135= increasedeath $1
- n136= decreasehealth $1 250
- n137= msg #[MM]IKKE 2[DUEL|Bot]4 $2 2has killed9 $1 2with:6 %weapon 1[OVERCLASSED]
- n138= }
- n139= }
- n140= elseif ($6 == SPC) {
- n141= checkrank $1 $7
- n142= checkcookie $1 $8
- n143= if ($read(Stats\ $+ $1 $+ .txt, 19) >= 5000) {
- n144= var %skillpoints1 = $read(Stats\ $+ $1 $+ .txt, 19)
- n145= var %skillpoints2 = $3
- n146= var %skillpoints3 = $rand(1, $calc(%skillpoints1 + %skillpoints2))
- n147= {
- n148= if (%skillpoints3 <= %skillpoints1) {
- n149= increasekill $1
- n150= increasecash $1 $4
- n151= increaserank $1 $5
- n152= var %i = $rand(1,6)
- n153= if (%i <= 3) {
- n154= msg #[MM]IKKE 2[DUEL|Bot]9 $1 2has killed4 $2 2with:6 $read(Stats\ $+ $1 $+ .txt,18)
- n155= }
- n156= elseif (%i <= 5) {
- n157= var %j = $rand(0,25)
- n158= decreasehealth $1 %j
- n159= if ($read(Stats\ $+ $1 $+ .txt, 7) <= 0) {
- n160= increasedeath $1
- n161= msg #[MM]IKKE 2[DUEL|Bot]9 $1 2has killed4 $2 2with6 $read(Stats\ $+ $1 $+ .txt,18) $+ 2, but got damaged him/herself! (S)he died (lost7 %j 2health).
- n162= }
- n163= else {
- n164= msg #[MM]IKKE 2[DUEL|Bot]9 $1 2has killed4 $2 2with6 $read(Stats\ $+ $1 $+ .txt,18) $+ 2, but got damaged him/herself! (S)he lost7 %j 2health.
- n165= }
- n166= }
- n167= elseif (%i <= 6) {
- n168= var %j = $rand(25,75)
- n169= decreasehealth $1 %j
- n170= if ($read(Stats\ $+ $1 $+ .txt, 7) <= 0) {
- n171= increasedeath $1
- n172= msg #[MM]IKKE 2[DUEL|Bot]9 $1 2has killed4 $2 2with6 $read(Stats\ $+ $1 $+ .txt,18) $+ 2, but got damaged him/herself! (S)he died (lost7 %j 2health).
- n173= }
- n174= else {
- n175= msg #[MM]IKKE 2[DUEL|Bot]9 $1 2has killed4 $2 2with6 $read(Stats\ $+ $1 $+ .txt,18) $+ 2, but got seriously damaged him/herself! (S)he lost7 %j 2health.
- n176= }
- n177= }
- n178= else {
- n179= .notice %owner 4ERROR:2 Error dueling bot (player wins, error defining if he loses health)
- n180= }
- n181= }
- n182= else {
- n183= {
- n184= if ($2 == Soldier) {
- n185= var %weapon Heavy Artillery and Assault Rifles
- n186= }
- n187= elseif ($2 == SpecialForce) {
- n188= var %weapon Hi-Tech Weapons
- n189= }
- n190= elseif ($2 == Godfather) {
- n191= var %weapon his gang
- n192= }
- n193= }
- n194= {
- n195= var %i = $rand(1,6)
- n196= if (%i <= 3) {
- n197= increasedeath $1
- n198= decreasehealth $1 250
- n199= msg #[MM]IKKE 2[DUEL|Bot]4 $2 2has killed9 $1 2with:6 %weapon
- n200= }
- n201= elseif (%i <= 5) {
- n202= var %j = $rand(25,75)
- n203= decreasehealth $1 %j
- n204= if ($read(Stats\ $+ $1 $+ .txt, 7) <= 0) {
- n205= increasedeath $1
- n206= msg #[MM]IKKE 2[DUEL|Bot]4 $2 2has seriously damaged9 $1 2with6 %weapon $+ 2.9 $1 2died (lost7 %j 2health).
- n207= }
- n208= else {
- n209= msg #[MM]IKKE 2[DUEL|Bot]4 $2 2has seriously damaged9 $1 2with6 %weapon $+ 2.9 $1 2lost7 %j 2health.
- n210= }
- n211= }
- n212= elseif (%i <= 6) {
- n213= var %j = $rand(0,25)
- n214= decreasehealth $1 %j
- n215= if ($read(Stats\ $+ $1 $+ .txt, 7) <= 0) {
- n216= increasedeath $1
- n217= msg #[MM]IKKE 2[DUEL|Bot]4 $2 2has damaged9 $1 2with6 %weapon $+ 2.9 $1 2died (lost7 %j 2health).
- n218= }
- n219= else {
- n220= msg #[MM]IKKE 2[DUEL|Bot]4 $2 2has damaged9 $1 2with6 %weapon $+ 2.9 $1 2lost7 %j 2health.
- n221= }
- n222= }
- n223= else {
- n224= .notice %owner 4ERROR:2 Error dueling bot (player loses, error defining if he loses health)
- n225= }
- n226= }
- n227= }
- n228= }
- n229= }
- n230= else {
- n231= {
- n232= if ($2 == Soldier) {
- n233= var %weapon Heavy Artillery and Assault Rifles
- n234= }
- n235= elseif ($2 == SpecialForce) {
- n236= var %weapon Hi-Tech Weapons
- n237= }
- n238= elseif ($2 == Godfather) {
- n239= var %weapon his gang
- n240= }
- n241= }
- n242= increasedeath $1
- n243= decreasehealth $1 250
- n244= msg #[MM]IKKE 2[DUEL|Bot]4 $2 2has killed9 $1 2with:6 %weapon 1[OVERCLASSED]
- n245= }
- n246= }
- n247=}
- n248=/calculatedrugs {
- n249= if ($2 == 0) {
- n250= msg #[MM]IKKE 2[DRUGS] As "4 $+ $1 $+ 2" only dealed less than 60secs, (s)he did not get any money
- n251= }
- n252= else {
- n253= var %i = 1
- n254= set %earnedmoney 0
- n255= while (%i <= $2) {
- n256= var %j = $rand(1,10)
- n257= {
- n258= if (%j <= 1) { inc %earnedmoney 1000 }
- n259= elseif (%j <= 3) { inc %earnedmoney 500 }
- n260= elseif (%j <= 5) { inc %earnedmoney 200 }
- n261= elseif (%j <= 7) { inc %earnedmoney 100 }
- n262= elseif (%j <= 8) { inc %earnedmoney 50 }
- n263= elseif (%j <= 9) { inc %earnedmoney 10 }
- n264= else {
- n265= goto check1
- n266= }
- n267= }
- n268= inc %i
- n269= }
- n270= increaserank $1 $2
- n271= increasecash $1 %earnedmoney
- n272= msg #[MM]IKKE 2[DRUGS]4 $1 2has earned7 %earnedmoney 2by dealing drugs
- n273= goto check2
- n274= :check1
- n275= msg #[MM]IKKE 2[DRUGS] Oh my gosh,4 $1 2got caught by cops while dealing drugs! (S)he lost his/her money...
- n276= :check2
- n277= unset %earnedmoney
- n278= }
- n279=}
- n280=/calculateracingtime {
- n281= var %checkpoint1 = $abs($calc($readini(Stats\Current race.ini, $1 , checkpoint1) - $readini(Stats\Current race.ini, Ticks, checkpoint1)))
- n282= var %checkpoint2 = $abs($calc($readini(Stats\Current race.ini, $1 , checkpoint2) - $readini(Stats\Current race.ini, Ticks, checkpoint2)))
- n283= var %checkpoint3 = $abs($calc($readini(Stats\Current race.ini, $1 , checkpoint3) - $readini(Stats\Current race.ini, Ticks, checkpoint3)))
- n284= var %checkpoint4 = $abs($calc($readini(Stats\Current race.ini, $1 , checkpoint4) - $readini(Stats\Current race.ini, Ticks, checkpoint4)))
- n285= var %checkpoint5 = $abs($calc($readini(Stats\Current race.ini, $1 , checkpoint5) - $readini(Stats\Current race.ini, Ticks, checkpoint5)))
- n286= var %checkpoint6 = $abs($calc($readini(Stats\Current race.ini, $1 , checkpoint6) - $readini(Stats\Current race.ini, Ticks, checkpoint6)))
- n287= var %checkpoint7 = $abs($calc($readini(Stats\Current race.ini, $1 , checkpoint7) - $readini(Stats\Current race.ini, Ticks, checkpoint7)))
- n288= var %checkpoint8 = $abs($calc($readini(Stats\Current race.ini, $1 , checkpoint8) - $readini(Stats\Current race.ini, Ticks, checkpoint8)))
- n289= var %checkpoint9 = $abs($calc($readini(Stats\Current race.ini, $1 , checkpoint9) - $readini(Stats\Current race.ini, Ticks, checkpoint9)))
- n290= var %checkpoint10 = $abs($calc($readini(Stats\Current race.ini, $1 , checkpoint10) - $readini(Stats\Current race.ini, Ticks, checkpoint10)))
- n291= var %checkpoints = $calc(%checkpoint1 + %checkpoint2 + %checkpoint3 + %checkpoint4 + %checkpoint5 + %checkpoint6 + %checkpoint7 + %checkpoint8 + %checkpoint9 + %checkpoint10)
- n292= writeini "Stats\Current race.ini" $1 RacingTime %checkpoints
- n293= {
- n294= if ($readini(Stats\Current race.ini, Ranks, rank1) == null) {
- n295= writeini "Stats\Current race.ini" Ranks rank1 $1
- n296= }
- n297= elseif ($readini(Stats\Current race.ini, Ranks, rank2) == null) {
- n298= if ($readini(Stats\Current race.ini, $1, RacingTime) <= $readini(Stats\Current race.ini, $readini(Stats\Current race.ini, Ranks , rank1), RacingTime)) {
- n299= writeini "Stats\Current race.ini" Ranks rank2 $readini(Stats\Current race.ini,Ranks,rank1)
- n300= writeini "Stats\Current race.ini" Ranks rank1 $1
- n301= }
- n302= else {
- n303= writeini "Stats\Current race.ini" Ranks rank2 $1
- n304= }
- n305= }
- n306= else {
- n307= if ($readini(Stats\Current race.ini, $1 , RacingTime) <= $readini(Stats\Current race.ini, $readini(Stats\Current race.ini,Ranks,rank1), RacingTime)) {
- n308= writeini "Stats\Current race.ini" Ranks rank3 $readini(Stats\Current race.ini,Ranks,rank2)
- n309= writeini "Stats\Current race.ini" Ranks rank2 $readini(Stats\Current race.ini,Ranks,rank1)
- n310= writeini "Stats\Current race.ini" Ranks rank1 $1
- n311= }
- n312= elseif ($readini(Stats\Current race.ini, $1 , RacingTime) <= $readini(Stats\Current race.ini, $readini(Stats\Current race.ini,Ranks,rank2), RacingTime)) {
- n313= writeini "Stats\Current race.ini" Ranks rank3 $readini(Stats\Current race.ini,Ranks,rank2)
- n314= writeini "Stats\Current race.ini" Ranks rank2 $1
- n315= }
- n316= elseif ($readini(Stats\Current race.ini, Ranks, rank3) == null) {
- n317= writeini "Stats\Current race.ini" Ranks rank3 $1
- n318= }
- n319= elseif ($readini(Stats\Current race.ini, $1 , RacingTime) <= $readini(Stats\Current race.ini, $readini(Stats\Current race.ini,Ranks,rank3), RacingTime)) {
- n320= writeini "Stats\Current race.ini" Ranks rank3 $1
- n321= }
- n322= }
- n323= }
- n324=}
- n325=/checkjob {
- n326= if ($2 == $1) {
- n327= if ($1 isin $read(Stats\Taxi jobs.txt,w,$1 $+ *)) {
- n328= .notice $2 4ERROR:2 You are a taxi driver. Some features are disabled
- n329= halt
- n330= }
- n331= elseif ($1 isin $read(Stats\Drug jobs.txt,w,$1 $+ *)) {
- n332= .notice $2 4ERROR:2 You are a drug dealer. Some features are disabled
- n333= halt
- n334= }
- n335= elseif ($1 isin $read(Stats\Current race.txt,w, $1)) {
- n336= .notice $2 4ERROR:2 You are currently racing. Some features are disabled
- n337= halt
- n338= }
- n339= }
- n340= else {
- n341= if ($1 isin $read(Stats\Taxi jobs.txt,w,$1 $+ *)) {
- n342= .notice $2 4ERROR: $1 2is a taxi driver. Some features are disabled for him/her
- n343= halt
- n344= }
- n345= elseif ($1 isin $read(Stats\Drug jobs.txt,w,$1 $+ *)) {
- n346= .notice $2 4ERROR: $1 2is a drug dealer. Some features are disabled for him/her
- n347= halt
- n348= }
- n349= elseif ($1 isin $read(Stats\Current race.txt,w, $1)) {
- n350= .notice $2 4ERROR: $1 1is currently racing. Some features are disabled for him/her
- n351= halt
- n352= }
- n353= }
- n354=}
- n355=/checkrace {
- n356= if ($nick(#[MM]IKKE.races,0) <= 7) {
- n357= msg #[MM]IKKE.races 2[RACE] Too few players have joined the race. Race stopped.
- n358= msg #[MM]IKKE 2[RACE] Too few players have joined the race. Race stopped.
- n359= if ($nick(#[MM]IKKE.races,0) == 7) { kick #[MM]IKKE.races $nick(#[MM]IKKE.races,7) 2[RACE] Too few players have joined the race. Race stopped. }
- n360= write -c "Stats\Current race.txt"
- n361= scid $scon(1) mode #[MM]IKKE.races +b *!*@*
- n362= set %race 2
- n363= halt
- n364= }
- n365=}
- n366=/duel {
- n367= var %i = $rand(1,100)
- n368= if (%i <= 2) {
- n369= increasedeath $2
- n370= increasekill $1
- n371= increaserank $1 10
- n372= decreasehealth $2 250
- n373= msg #[MM]IKKE 2[DUEL|Luck] One hit wonder! 9 $+ $1 2killed4 $2 2with:6 $read(Stats\ $+ $1 $+ .txt,18)
- n374= }
- n375= elseif (%i <= 3) {
- n376= increasedeath $1
- n377= increasekill $2
- n378= increaserank $2 10
- n379= decreasehealth $1 250
- n380= msg #[MM]IKKE 2[DUEL|Luck] One hit wonder! 4 $+ $2 2killed9 $1 2with:6 $read(Stats\ $+ $2 $+ .txt,18)
- n381= }
- n382= elseif (%i <= 5) {
- n383= msg #[MM]IKKE 2[DUEL|Luck] Somehow, nothing happened when9 $1 2tried to attack4 $2 $+ 2!
- n384= }
- n385= elseif (%i <= 7) {
- n386= var %j = $rand(50,100)
- n387= decreasehealth $2 %j
- n388= increaserank $1 5
- n389= if ($read(Stats\ $+ $2 $+ .txt, 7) <= 0) {
- n390= increasekill $1
- n391= increasedeath $2
- n392= msg #[MM]IKKE 2[DUEL|Luck] 9 $+ $1 2has seriously damaged4 $2 $+ 2!4 $2 2is dead now (lost7 %j 2health)! 6( $+ $read(Stats\ $+ $1 $+ .txt, 18) vs. $read(Stats\ $+ $2 $+ .txt, 18) $+ )
- n393= }
- n394= else { msg #[MM]IKKE 2[DUEL|Luck] 9 $+ $1 2has seriously damaged4 $2 $+ 2!4 $2 2has lost7 %j 2health! 6( $+ $read(Stats\ $+ $1 $+ .txt, 18) vs. $read(Stats\ $+ $2 $+ .txt, 18) $+ ) }
- n395= }
- n396= elseif (%i <= 12) {
- n397= var %j = $rand(50,100)
- n398= var %k = $rand(0,50)
- n399= decreasehealth $2 %j
- n400= decreasehealth $1 %k
- n401= increaserank $1 5
- n402= if ($read(Stats\ $+ $2 $+ .txt, 7) <= 0) {
- n403= increasekill $1
- n404= increasedeath $2
- n405= if ($read(Stats\ $+ $1 $+ .txt, 7) <= 0) {
- n406= increasekill $2
- n407= increasedeath $1
- n408= msg #[MM]IKKE 2[DUEL|Luck] 9 $+ $1 2has seriously damaged4 $2 $+ 2, but got hit himself too! Both4 $2 2(lost7 %j 2health) and9 $1 2(lost7 %k 2health) have died! 6( $+ $read(Stats\ $+ $1 $+ .txt, 18) vs. $read(Stats\ $+ $2 $+ .txt, 18) $+ )
- n409= }
- n410= else {
- n411= msg #[MM]IKKE 2[DUEL|Luck] 9 $+ $1 2has seriously damaged4 $2 $+ 2, but got hit himself too!4 $2 2has died (lost7 %j 2health),9 $1 2has lost7 %k 2health! 6( $+ $read(Stats\ $+ $1 $+ .txt, 18) vs. $read(Stats\ $+ $2 $+ .txt, 18) $+ )
- n412= }
- n413= }
- n414= elseif ($read(Stats\ $+ $1 $+ .txt, 7) <= 0) {
- n415= increasekill $2
- n416= increasedeath $1
- n417= msg #[MM]IKKE 2[DUEL|Luck] 9 $+ $1 2has seriously damaged4 $2 $+ 2, but got hit himself too!4 $2 2has lost7 %j 2health, but9 $1 2has died (lost7 %k 2health)! 6( $+ $read(Stats\ $+ $1 $+ .txt, 18) vs. $read(Stats\ $+ $2 $+ .txt, 18) $+ )
- n418= }
- n419= else {
- n420= msg #[MM]IKKE 2[DUEL|Luck] 9 $+ $1 2has seriously damaged4 $2 $+ 2, but got hit himself too!4 $2 2has lost7 %j 2health,9 $1 2has lost7 %k 2health! 6( $+ $read(Stats\ $+ $1 $+ .txt, 18) vs. $read(Stats\ $+ $2 $+ .txt, 18) $+ )
- n421= }
- n422= }
- n423= elseif (%i <= 15) {
- n424= var %j = $rand(25,50)
- n425= decreasehealth $2 %j
- n426= increaserank $1 3
- n427= if ($read(Stats\ $+ $2 $+ .txt, 7) <= 0) {
- n428= increasekill $1
- n429= increasedeath $2
- n430= msg #[MM]IKKE 2[DUEL|Luck] 9 $+ $1 2has damaged4 $2 $+ 2!4 $2 2is dead now (lost7 %j 2health)! 6( $+ $read(Stats\ $+ $1 $+ .txt, 18) vs. $read(Stats\ $+ $2 $+ .txt, 18) $+ )
- n431= }
- n432= else { msg #[MM]IKKE 2[DUEL|Luck] 9 $+ $1 2has damaged4 $2 $+ 2!4 $2 2has lost7 %j 2health! 6( $+ $read(Stats\ $+ $1 $+ .txt, 18) vs. $read(Stats\ $+ $2 $+ .txt, 18) $+ ) }
- n433= }
- n434= elseif (%i <= 20) {
- n435= var %j = $rand(25,50)
- n436= var %k = $rand(0,25)
- n437= decreasehealth $2 %j
- n438= decreasehealth $1 %k
- n439= increaserank $1 3
- n440= if ($read(Stats\ $+ $2 $+ .txt, 7) <= 0) {
- n441= increasekill $1
- n442= increasedeath $2
- n443= if ($read(Stats\ $+ $1 $+ .txt, 7) <= 0) {
- n444= increasekill $2
- n445= increasedeath $1
- n446= msg #[MM]IKKE 2[DUEL|Luck] 9 $+ $1 2has damaged4 $2 $+ 2, but got hit himself too! Both4 $2 2(lost7 %j 2health) and9 $1 2(lost7 %k 2health) have died! 6( $+ $read(Stats\ $+ $1 $+ .txt, 18) vs. $read(Stats\ $+ $2 $+ .txt, 18) $+ )
- n447= }
- n448= else {
- n449= msg #[MM]IKKE 2[DUEL|Luck] 9 $+ $1 2has damaged4 $2 $+ 2, but got hit himself too!4 $2 2has died (lost7 %j 2health),9 $1 2has lost7 %k 2health! 6( $+ $read(Stats\ $+ $1 $+ .txt, 18) vs. $read(Stats\ $+ $2 $+ .txt, 18) $+ )
- n450= }
- n451= }
- n452= elseif ($read(Stats\ $+ $1 $+ .txt, 7) <= 0) {
- n453= increasekill $2
- n454= increasedeath $1
- n455= msg #[MM]IKKE 2[DUEL|Luck] 9 $+ $1 2has damaged4 $2 $+ 2, but got hit himself too!4 $2 2has lost7 %j 2health, but9 $1 2has died (lost7 %k 2health)! 6( $+ $read(Stats\ $+ $1 $+ .txt, 18) vs. $read(Stats\ $+ $2 $+ .txt, 18) $+ )
- n456= }
- n457= else {
- n458= msg #[MM]IKKE 2[DUEL|Luck] 9 $+ $1 2has damaged4 $2 $+ 2, but got hit himself too!4 $2 2has lost7 %j 2health,9 $1 2has lost7 %k 2health! 6( $+ $read(Stats\ $+ $1 $+ .txt, 18) vs. $read(Stats\ $+ $2 $+ .txt, 18) $+ )
- n459= }
- n460= }
- n461= elseif (%i <= 100) {
- n462= skillpoints $1 $2
- n463= if (%i <= 70) {
- n464= increasekill $strip(%tempkiller)
- n465= increasedeath $strip(%tempkilled)
- n466= decreasehealth $strip(%tempkilled) 250
- n467= increaserank $strip(%tempkiller) 10
- n468= msg #[MM]IKKE 2[DUEL|Skillpoints] %tempkiller has killed %tempkilled $+ ! 6( $+ $read(Stats\ $+ $1 $+ .txt, 18) vs. $read(Stats\ $+ $2 $+ .txt, 18) $+ )
- n469= }
- n470= elseif (%i <= 80) {
- n471= var %j = $rand(50,100)
- n472= decreasehealth $strip(%tempkilled) %j
- n473= increaserank $strip(%tempkiller) 5
- n474= if ($read(Stats\ $+ $strip(%tempkilled) $+ .txt, 7) <= 0) {
- n475= increasekill $strip(%tempkiller)
- n476= increasedeath $strip(%tempkilled)
- n477= msg #[MM]IKKE 2[DUEL|Skillpoints] %tempkiller has seriously damaged %tempkilled $+ ! %tempkilled is dead now (lost7 %j 2health)! 6( $+ $read(Stats\ $+ $1 $+ .txt, 18) vs. $read(Stats\ $+ $2 $+ .txt, 18) $+ )
- n478= }
- n479= else { msg #[MM]IKKE 2[DUEL|Skillpoints] %tempkiller has seriously damaged %tempkilled $+ ! %tempkilled has lost7 %j 2health! 6( $+ $read(Stats\ $+ $1 $+ .txt, 18) vs. $read(Stats\ $+ $2 $+ .txt, 18) $+ ) }
- n480= }
- n481= elseif (%i <= 85) {
- n482= var %j = $rand(50,100)
- n483= var %k = $rand(0,50)
- n484= increaserank $strip(%tempkiller) 5
- n485= decreasehealth $strip(%tempkilled) %j
- n486= decreasehealth $strip(%tempkiller) %k
- n487= if ($read(Stats\ $+ $strip(%tempkilled) $+ .txt, 7) <= 0) {
- n488= increasekill $strip(%tempkiller)
- n489= increasedeath $strip(%tempkilled)
- n490= if ($read(Stats\ $+ $strip(%tempkiller) $+ .txt, 7) <= 0) {
- n491= increasekill $strip(%tempkilled)
- n492= increasedeath $strip(%tempkiller)
- n493= msg #[MM]IKKE 2[DUEL|Skillpoints] %tempkiller has seriously damaged %tempkilled $+ , but got hit himself too! Both %tempkilled (lost7 %j 2health) and %tempkiller (lost7 %k 2health) have died! 6( $+ $read(Stats\ $+ $1 $+ .txt, 18) vs. $read(Stats\ $+ $2 $+ .txt, 18) $+ )
- n494= }
- n495= else {
- n496= msg #[MM]IKKE 2[DUEL|Skillpoints] %tempkiller has seriously damaged %tempkilled $+ , but got hit himself too! %tempkilled has died (lost7 %j 2health), %tempkiller has lost7 %k 2health! 6( $+ $read(Stats\ $+ $1 $+ .txt, 18) vs. $read(Stats\ $+ $2 $+ .txt, 18) $+ )
- n497= }
- n498= }
- n499= elseif ($read(Stats\ $+ $strip(%tempkiller) $+ .txt, 7) <= 0) {
- n500= increasekill $strip(%tempkilled)
- n501= increasedeath $strip(%tempkiller)
- n502= msg #[MM]IKKE 2[DUEL|Skillpoints] %tempkiller has seriously damaged %tempkilled $+ , but got hit himself too! %tempkilled has lost7 %j 2health, but %tempkiller has died (lost7 %k 2health)! 6( $+ $read(Stats\ $+ $1 $+ .txt, 18) vs. $read(Stats\ $+ $2 $+ .txt, 18) $+ )
- n503= }
- n504= else {
- n505= msg #[MM]IKKE 2[DUEL|Skillpoints] %tempkiller has seriously damaged %tempkilled $+ , but got hit himself too! %tempkilled has lost7 %j 2health, %tempkiller has lost7 %k 2health! 6( $+ $read(Stats\ $+ $1 $+ .txt, 18) vs. $read(Stats\ $+ $2 $+ .txt, 18) $+ )
- n506= }
- n507= }
- n508= elseif (%i <= 95) {
- n509= var %j = $rand(25,50)
- n510= increaserank $strip(%tempkiller) 3
- n511= decreasehealth $strip(%tempkilled) %j
- n512= if ($read(Stats\ $+ $strip(%tempkilled) $+ .txt, 7) <= 0) {
- n513= increasekill $strip(%tempkiller)
- n514= increasedeath $strip(%tempkilled)
- n515= msg #[MM]IKKE 2[DUEL|Skillpoints] %tempkiller has damaged %tempkilled $+ ! %tempkilled is dead now (lost7 %j 2health)! 6( $+ $read(Stats\ $+ $1 $+ .txt, 18) vs. $read(Stats\ $+ $2 $+ .txt, 18) $+ )
- n516= }
- n517= else { msg #[MM]IKKE 2[DUEL|Skillpoints] %tempkiller has damaged %tempkilled $+ ! %tempkilled has lost7 %j 2health! 6( $+ $read(Stats\ $+ $1 $+ .txt, 18) vs. $read(Stats\ $+ $2 $+ .txt, 18) $+ ) }
- n518=
- n519= }
- n520= elseif (%i <= 100) {
- n521= var %j = $rand(25,50)
- n522= var %k = $rand(0,25)
- n523= decreasehealth $strip(%tempkilled) %j
- n524= decreasehealth $strip(%tempkiller) %k
- n525= increaserank $strip(%tempkiller) 3
- n526= if ($read(Stats\ $+ $strip(%tempkilled) $+ .txt, 7) <= 0) {
- n527= increasekill $strip(%tempkiller)
- n528= increasedeath $strip(%tempkilled)
- n529= if ($read(Stats\ $+ $strip(%tempkiller) $+ .txt, 7) <= 0) {
- n530= increasekill $strip(%tempkilled)
- n531= increasedeath $strip(%tempkiller)
- n532= msg #[MM]IKKE 2[DUEL|Skillpoints] %tempkiller has damaged %tempkilled $+ , but got hit himself too! Both %tempkilled (lost7 %j 2health) and %tempkiller (lost7 %k 2health) have died! 6( $+ $read(Stats\ $+ $1 $+ .txt, 18) vs. $read(Stats\ $+ $2 $+ .txt, 18) $+ )
- n533= }
- n534= else {
- n535= msg #[MM]IKKE 2[DUEL|Skillpoints] %tempkiller has damaged %tempkilled $+ , but got hit himself too! %tempkilled has died (lost7 %j 2health), %tempkiller has lost7 %k 2health! 6( $+ $read(Stats\ $+ $1 $+ .txt, 18) vs. $read(Stats\ $+ $2 $+ .txt, 18) $+ )
- n536= }
- n537= }
- n538= elseif ($read(Stats\ $+ $strip(%tempkiller) $+ .txt, 7) <= 0) {
- n539= increasekill $strip(%tempkilled)
- n540= increasedeath $strip(%tempkiller)
- n541= msg #[MM]IKKE 2[DUEL|Skillpoints] %tempkiller has damaged %tempkilled $+ , but got hit himself too! %tempkilled has lost7 %j 2health, but %tempkiller has died (lost7 %k 2health)! 6( $+ $read(Stats\ $+ $1 $+ .txt, 18) vs. $read(Stats\ $+ $2 $+ .txt, 18) $+ )
- n542= }
- n543= else {
- n544= msg #[MM]IKKE 2[DUEL|Skillpoints] %tempkiller has damaged %tempkilled $+ , but got hit himself too! %tempkilled has lost7 %j 2health, %tempkiller has lost7 %k 2health! 6( $+ $read(Stats\ $+ $1 $+ .txt, 18) vs. $read(Stats\ $+ $2 $+ .txt, 18) $+ )
- n545= }
- n546= }
- n547= unset %tempkiller
- n548= unset %tempkilled
- n549= }
- n550= .timer 1 30 set %duel 0
- n551=}
- n552=/racingbot {
- n553= if (%racingbot == 1) {
- n554= if (%bot2 ison #[MM]IKKE.races) { set %racingbot 2 }
- n555= elseif (%bot3 ison #[MM]IKKE.races) { set %racingbot 3 }
- n556= elseif (%bot4 ison #[MM]IKKE.races) { set %racingbot 4 }
- n557= }
- n558= elseif (%racingbot == 2) {
- n559= if (%bot3 ison #[MM]IKKE.races) { set %racingbot 3 }
- n560= elseif (%bot4 ison #[MM]IKKE.races) { set %racingbot 4 }
- n561= elseif (%bot1 ison #[MM]IKKE.races) { set %racingbot 1 }
- n562= }
- n563= elseif (%racingbot == 3) {
- n564= if (%bot4 ison #[MM]IKKE.races) { set %racingbot 4 }
- n565= elseif (%bot1 ison #[MM]IKKE.races) { set %racingbot 1 }
- n566= elseif (%bot2 ison #[MM]IKKE.races) { set %racingbot 2 }
- n567= }
- n568= elseif (%racingbot == 4) {
- n569= if (%bot1 ison #[MM]IKKE.races) { set %racingbot 1 }
- n570= elseif (%bot2 ison #[MM]IKKE.races) { set %racingbot 2 }
- n571= elseif (%bot3 ison #[MM]IKKE.races) { set %racingbot 3 }
- n572= }
- n573= else { .notice %owner 4ERROR:2 Error changing racing bot }
- n574=}
- n575=/skillpoints {
- n576= var %skillpoints1 = $read(Stats\ $+ $1 $+ .txt, 19)
- n577= var %skillpoints2 = $read(Stats\ $+ $2 $+ .txt, 19)
- n578= var %skillpoints3 = $rand(1, $calc(%skillpoints1 + %skillpoints2))
- n579= if (%skillpoints3 <= %skillpoints1) {
- n580= set %tempkiller 9 $+ $1 $+ 2
- n581= set %tempkilled 4 $+ $2 $+ 2
- n582= }
- n583= else {
- n584= set %tempkiller 4 $+ $2 $+ 2
- n585= set %tempkilled 9 $+ $1 $+ 2
- n586= }
- n587=}
- n588=/startbattle {
- n589= if (%duel == 0) {
- n590= if ($1 $+ . $+ $2 isin $read(Stats\Duel list.txt,w, $1 $+ . $+ $2)) {
- n591= write -dl $+ $readn "Stats\Duel list.txt"
- n592= checkjob $1 $1
- n593= checkjob $2 $2
- n594= set %duel 1
- n595= .notice $1 2[DUEL] Battle between you and4 $2 2has started!
- n596= .notice $2 2[DUEL] Battle between you and9 $1 2has started!
- n597= msg #[MM]IKKE 2[DUEL] Battle between9 $1 2and4 $2 2has started! Loading stats...
- n598= .timer 1 5 msg #[MM]IKKE 2[DUEL] Weapons:9 $read(Stats\ $+ $1 $+ .txt,18) 2vs.4 $read(Stats\ $+ $2 $+ .txt,18)
- n599= .timer 1 10 msg #[MM]IKKE 2[DUEL] Ratio:9 $round($calc($read(Stats\ $+ $1 $+ .txt, 5) / $read(Stats\ $+ $1 $+ .txt, 6)),2) 1( $+ $read(Stats\ $+ $1 $+ .txt, 5) $+ / $+ $read(Stats\ $+ $1 $+ .txt, 6) $+ ) 2vs.4 $round($calc($read(Stats\ $+ $2 $+ .txt, 5) / $read(Stats\ $+ $2 $+ .txt, 6)),2) 1( $+ $read(Stats\ $+ $2 $+ .txt, 5) $+ / $+ $read(Stats\ $+ $2 $+ .txt, 6) $+ )
- n600= .timer 1 15 msg #[MM]IKKE 2[DUEL] Health|Armour:9 $read(Stats\ $+ $1 $+ .txt, 7) $+ $chr(124) $+ $read(Stats\ $+ $1 $+ .txt, 8) 2vs.4 $read(Stats\ $+ $2 $+ .txt, 7) $+ $chr(124) $+ $read(Stats\ $+ $2 $+ .txt, 8)
- n601= .timer 1 20 msg #[MM]IKKE 2[DUEL] The winning player gets 1000 cash, the losing player loses 500 cash. Good luck! 1(battle starting in 5secs)
- n602= .timer 1 25 set %duel 2
- n603= .timer 1 25 duel $1 $2
- n604= }
- n605= else {
- n606= .notice $1 4ERROR:2Something terribly went wrong... [DUEL|/startbattle]
- n607= }
- n608= }
- n609= else {
- n610= msg #[MM]IKKE 2[DUEL] Another battle is going on...Delaying battle between9 $1 2and4 $2 2with 60secs
- n611= .timer 1 60 startbattle $1 $2
- n612= }
- n613=}
- n614=/uptime {
- n615= writeini "Stats\Current race.ini" Ticks $1 $uptime(mirc)
- n616=}
Add Comment
Please, Sign In to add comment