Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [script]
- n0=on *:TEXT:*:*: { halt }
- n1=on *:NICK: { halt }
- n2=on *:PART:#: { halt }
- n3=on *:QUIT: { halt }
- n4=on *:KICK:#: { halt }
- n5=on *:TEXT:!fight:#[MM]IKKE.testing: {
- n6= if ($me == %bot4) {
- n7= rpglog $nick $1-
- n8= msg $chan 2[DUEL] Use !fight <nick> to fight with a certain player. Do not forget to change your current weapon (!ccw).
- n9= msg $chan 2[DUEL] Current options: One hit wonder (2%), being killed at once (1%), nothing (2%), serious damage without being hurt (2%), serious damage with being hurt (5%), damage without being hurt (3%), damage with being hurt (5%), skill-point based kill (50%), skill-point based serious damage without being hurt (10%), skill-points based serious damage with being hurt (5%), skill-point based damage without being hurt (10%), skill-point based damage with being hurt (5%)
- n10= }
- n11=}
- n12=on *:TEXT:!fight*:#[MM]IKKE.testing: {
- n13= if ($me == %bot4 && $1 == !fight) {
- n14= rpglog $nick $1-
- n15= if (!$exists(Stats\ $+ $nick $+ .txt)) {
- n16= createaccount $nick
- n17= }
- n18= {
- n19= alive $nick
- n20= checkjob $nick $nick
- n21= if ($2 ison $chan) {
- n22= if ($2 == $nick) {
- n23= .notice $nick 4ERROR:2 You can't fight with yourself!
- n24= halt
- n25= }
- n26= if ($2 isin $read(bots.txt,w,$2) || $2 isin $read(userbots.txt,w,$2)) {
- n27= .notice $nick 4ERROR:2 Bots don't have accounts
- n28= halt
- n29= }
- n30= if (!$exists(Stats\ $+ $2 $+ .txt)) {
- n31= createaccount $2
- n32= }
- n33= if ($read(Stats\ $+ $2 $+ .txt, 7) <= 0) {
- n34= .notice $nick 4ERROR: $2 2is dead, you cannot fight against him/her
- n35= halt
- n36= }
- n37= checkjob $2 $nick
- n38= if ($2 $+ . $+ $nick isin $read(Stats\Duel list.txt,w, $2 $+ . $+ $nick)) {
- n39= if (%duel == 1) {
- n40= .notice $nick 4ERROR:2 There's already another battle going on
- n41= halt
- n42= }
- n43= msg $chan 2[DUEL]9 $2 2already challenged you for a battle! Automatically starting battle...
- n44= .timer 1 3 startbattle $2 $nick
- n45= }
- n46= if ($nick $+ . $+ $2 isin $read(Stats\Duel list.txt,w, $nick $+ . $+ $2)) {
- n47= .notice $nick 4ERROR:2 You already challenged4 $2 $+ 2!
- n48= }
- n49= if ($2 $+ . $+ $nick !isin $read(Stats\Duel list.txt,w, $2 $+ . $+ $nick) && $nick $+ . $+ $2 !isin $read(Stats\Duel list.txt,w, $nick $+ . $+ $2)) {
- n50= if ($2 !isin $read(Stats\Auto-deny list.txt,w, $2)) {
- n51= write "Stats\Duel list.txt" $nick $+ . $+ $2
- n52= if ($2 !isin $read(Stats\Auto-accept list.txt,w, $2)) {
- n53= .msg $2 2[DUEL]4 $nick 2has challenged you to duel! Type !accept4 $nick 2to accept this challenge, !deny4 $nick 2to deny it.
- n54= .msg $2 2[DUEL] His/her weapon is "6 $+ $read(Stats\ $+ $nick $+ .txt, 18) $+ 2", your weapon is "6 $+ $read(Stats\ $+ $2 $+ .txt, 18) $+ 2".
- n55= .msg $2 2[DUEL] His/her health is7 $read(Stats\ $+ $nick $+ .txt, 7) 2and his/her armour7 $read(Stats\ $+ $nick $+ .txt, 8)
- n56= .msg $chan 2[DUEL] Duel request has been sent!
- n57= }
- n58= else {
- n59= msg $chan 2[DUEL]4 $2 2is on the auto-accept list! Automatically starting battle...
- n60= .notice $2 2[DUEL] Auto-accepted battle against4 $nick
- n61= .timer 1 3 startbattle $nick $2
- n62= }
- n63= }
- n64= else { msg $chan 2[DUEL]4 $2 2is on the auto-deny list. Battle request automatically denied. }
- n65= }
- n66= }
- n67= elseif ($2 == $null) { .notice $nick 4ERROR:2 Usage: !fight <nick> }
- n68= elseif ($exists(Stats\ $+ $2 $+ .txt)) {
- n69= .notice $nick 4ERROR: $2 2isn't in the channel
- n70= }
- n71= else {
- n72= ;$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)
- n73= if ($2 == Noob) {
- n74= botduel $nick Noob 20 50 1 Any
- n75= ;?
- n76= }
- n77= elseif ($2 == Pedestrian) {
- n78= botduel $nick Pedestrian 50 100 2 Any
- n79= ;fists
- n80= }
- n81= elseif ($2 == Granny) {
- n82= botduel $nick Granny 200 200 2 Any
- n83= ;handbag
- n84= }
- n85= elseif ($2 == Lawyer) {
- n86= botduel $nick Lawyer 300 1000 1 Any
- n87= ;briefcase
- n88= }
- n89= elseif ($2 == Hooker) {
- n90= botduel $nick Hooker 400 500 3 Any
- n91= ;dildo
- n92= }
- n93= elseif ($2 == Thief) {
- n94= botduel $nick Thief 500 1000 3 SP 100
- n95= ;crowbar
- n96= }
- n97= elseif ($2 == Junk) {
- n98= botduel $nick Junk 500 0 5 SP 100
- n99= ;knife
- n100= }
- n101= elseif ($2 == Policeman) {
- n102= botduel $nick Policeman 1000 100 10 SP 300
- n103= ;Pistol
- n104= }
- n105= elseif ($2 == Bodyguard) {
- n106= botduel $nick Bodyguard 3000 2000 5 SP 500
- n107= ;Baseball Bat and Silenced Pistol
- n108= }
- n109= elseif ($2 == Gangster) {
- n110= botduel $nick Gangster 5000 1000 10 SP 800
- n111= ;Pistols and Submachine Gun
- n112= }
- n113= elseif ($2 == Drugdealer) {
- n114= botduel $nick Drugdealer 5000 10000 5 SP 800
- n115= ;Pistols and Sawn-Off Shotgun
- n116= }
- n117= elseif ($2 == Smuggler) {
- n118= botduel $nick Smuggler 10000 15000 3 SP 1000
- n119= ;Combat Shotgun and M4
- n120= }
- n121= elseif ($2 == Soldier) {
- n122= botduel $nick Soldier 15000 1000 15 SPC 1500 1
- n123= ;Heavy Artillery and Assault Rifles
- n124= }
- n125= elseif ($2 == SpecialForce) {
- n126= botduel $nick SpecialForce 20000 1000 20 SPC 2000 5
- n127= ;hi-tech weapons
- n128= }
- n129= elseif ($2 == Godfather) {
- n130= botduel $nick Godfather 20000 50000 20 SPC 5000 10
- n131= ;his gang
- n132= }
- n133= elseif ($2 == Hacker) {
- n134= increasedeath $nick
- n135= decreasehealth $nick 250
- n136= msg $chan 2[DUEL] 4hacker 2killed9 $nick $+ 2. You cannot kill 4hacker2.
- n137= }
- n138= else {
- n139= msg $chan 4ERROR: $2 2is not a duel bot
- n140= }
- n141= }
- n142= }
- n143= }
- n144=}
- n145=on *:TEXT:!accept*:#[MM]IKKE.testing: {
- n146= if ($me == %bot4 && $1 == !accept) {
- n147= rpglog $nick $1-
- n148= if (!$exists(Stats\ $+ $nick $+ .txt)) {
- n149= createaccount $nick
- n150= }
- n151= if ($2) {
- n152= checkjob $nick $nick
- n153= checkjob $2 $nick
- n154= if ($2 $+ . $+ $nick isin $read(Stats\Duel list.txt,w, $2 $+ . $+ $nick)) {
- n155= startbattle $2 $nick
- n156= }
- n157= elseif ($nick $+ . $+ $2 isin $read(Stats\Duel list.txt,w, $nick $+ . $+ $2)) {
- n158= .notice $nick 4ERROR:2 You have challenged4 $2 $+ 2, please wait till (s)he accepts.
- n159= }
- n160= else {
- n161= .notice $nick 4ERROR:2 You don't have a request...
- n162= }
- n163= }
- n164= else {
- n165= .notice $nick 4ERROR:2 Usage: !accept <nick>
- n166= }
- n167= }
- n168=}
- n169=on *:TEXT:!deny*:#[MM]IKKE.testing: {
- n170= if ($me == %bot4 && $1 == !deny) {
- n171= rpglog $nick $1-
- n172= if (!$exists(Stats\ $+ $nick $+ .txt)) {
- n173= createaccount $nick
- n174= }
- n175= {
- n176= if ($2) {
- n177= if ($2 $+ . $+ $nick isin $read(Stats\Duel list.txt,w, $2 $+ . $+ $nick)) {
- n178= write -dl $+ $readn "Stats\Duel list.txt"
- n179= .notice $nick 2You have denied4 $2 $+ 2's request to duel.
- n180= .notice $2 4 $+ $nick 2has denied your battle request.
- n181= msg $chan 2[DUEL] The battle between9 $2 2and4 $nick 2has been denied.
- n182= }
- n183= elseif ($nick $+ . $+ $2 isin $read(Stats\Duel list.txt,w, $nick $+ . $+ $2)) {
- n184= .notice $nick 4ERROR:2 You have challenged4 $2 $+ 2, please wait till (s)he accepts.
- n185= }
- n186= else {
- n187= .notice $nick 4ERROR:2 You don't have a request...
- n188= }
- n189= }
- n190= else {
- n191= .notice $nick 4ERROR:2 Usage: !deny <nick>
- n192= }
- n193= }
- n194= }
- n195=}
- n196=on *:TEXT:!duelrequests:#[MM]IKKE.testing: {
- n197= if ($me == %bot4) {
- n198= rpglog $nick $1-
- n199= if (!$exists(Stats\ $+ $nick $+ .txt)) {
- n200= createaccount $nick
- n201= }
- n202= if (1 > 0) {
- n203= if ($nick isin $read(Stats\Duel list.txt,w,* $+ $nick $+ *)) {
- n204= .msg $nick 2[DUEL REQUESTS] $replace($read(Stats\Duel list.txt,w,* $+ $nick $+ *), ., $chr(32) $+ vs. $+ $chr(32))
- n205= while ($nick isin $read(Stats\Duel list.txt,w,* $+ $nick $+ *, $calc($readn + 1))) {
- n206= .msg $nick 2[DUEL REQUESTS] $replace($read(Stats\Duel list.txt, $readn), ., $chr(32) $+ vs. $+ $chr(32))
- n207= }
- n208= }
- n209= else {
- n210= .notice $nick 4ERROR:2 There are no duel requests
- n211= }
- n212= }
- n213= }
- n214=}
- n215=on *:TEXT:!autoaccept duels:#[MM]IKKE.testing: {
- n216= if ($me == %bot4) {
- n217= rpglog $nick $1-
- n218= if (!$exists(Stats\ $+ $nick $+ .txt)) {
- n219= createaccount $nick
- n220= }
- n221= if (1 > 0) {
- n222= if ($nick isin $read(Stats\Auto-accept list.txt,w, $nick)) {
- n223= .notice $nick 4ERROR:2 You're already on the Auto-Accept list!
- n224= }
- n225= elseif ($nick isin $read(Stats\Auto-deny list.txt,w, $nick)) {
- n226= .notice $nick 4ERROR:2 You're on the Auto-Deny list...Disable that first, using !disableauto
- n227= }
- n228= else {
- n229= write "Stats\Auto-accept list.txt" $nick
- n230= msg $chan 2You have been added to the Auto-Accept list. Battle will now be auto-accepted. Use !disableauto to turn this off
- n231= }
- n232= }
- n233= }
- n234=}
- n235=on *:TEXT:!autodeny duels:#[MM]IKKE.testing: {
- n236= if ($me == %bot4) {
- n237= rpglog $nick $1-
- n238= if (!$exists(Stats\ $+ $nick $+ .txt)) {
- n239= createaccount $nick
- n240= }
- n241= if (1 > 0) {
- n242= if ($nick isin $read(Stats\Auto-deny list.txt,w, $nick)) {
- n243= .notice $nick 4ERROR:2 You're already on the Auto-Deny list!
- n244= }
- n245= elseif ($nick isin $read(Stats\Auto-accept list.txt,w, $nick)) {
- n246= .notice $nick 4ERROR:2 You're on the Auto-Accept list...Disable that first, using !disableauto
- n247= }
- n248= else {
- n249= write "Stats\Auto-deny list.txt" $nick
- n250= msg $chan 2You have been added to the Auto-Deny list. Battle will now be auto-denied. Use !disableauto to turn this off
- n251= }
- n252= }
- n253= }
- n254=}
- n255=on *:TEXT:!disableauto:#[MM]IKKE.testing: {
- n256= if ($me == %bot4) {
- n257= rpglog $nick $1-
- n258= if (!$exists(Stats\ $+ $nick $+ .txt)) {
- n259= createaccount $nick
- n260= }
- n261= if (1 > 0) {
- n262= if ($nick isin $read(Stats\Auto-deny list.txt,w, $nick)) {
- n263= write -dl $+ $readn "Stats\Auto-deny list.txt"
- n264= msg $chan 2You have been deleted out of the Auto-Deny list
- n265= }
- n266= elseif ($nick isin $read(Stats\Auto-accept list.txt,w, $nick)) {
- n267= write -dl $+ $readn "Stats\Auto-accept list.txt"
- n268= msg $chan 2You have been deleted out of the Auto-Accept list
- n269= }
- n270= else {
- n271= .notice $nick 4ERROR:2 You are not in the Auto-Accept list, nor in the Auto-Deny list
- n272= }
- n273= }
- n274= }
- n275=}
- n276=on *:PART:#[MM]IKKE.testing: {
- n277= if ($me == %bot4) {
- n278= if ($nick isin $read(Stats\Duel list.txt,w,* $+ $nick $+ *)) {
- n279= write -dl $+ $readn "Stats\Duel list.txt"
- n280= while ($nick isin $read(Stats\Duel list.txt,w,* $+ $nick $+ *, $readn)) {
- n281= write -dl $+ $readn "Stats\Duel list.txt"
- n282= }
- n283= }
- n284= }
- n285=}
- n286=on *:QUIT: {
- n287= if ($me == %bot4) {
- n288= if ($nick isin $read(Stats\Duel list.txt,w,* $+ $nick $+ *)) {
- n289= write -dl $+ $readn "Stats\Duel list.txt"
- n290= while ($nick isin $read(Stats\Duel list.txt,w,* $+ $nick $+ *, $readn)) {
- n291= write -dl $+ $readn "Stats\Duel list.txt"
- n292= }
- n293= }
- n294= }
- n295=}
- n296=on *:NICK: {
- n297= if ($me == %bot4) {
- n298= if ($nick isin $read(Stats\Duel list.txt,w,* $+ $nick $+ *)) {
- n299= write -dl $+ $readn "Stats\Duel list.txt"
- n300= while ($nick isin $read(Stats\Duel list.txt,w,* $+ $nick $+ *, $readn)) {
- n301= write -dl $+ $readn "Stats\Duel list.txt"
- n302= }
- n303= }
- n304= }
- n305=}
- n306=on *:KICK:#[MM]IKKE.testing: {
- n307= if ($me == %bot4) {
- n308= if ($knick isin $read(Stats\Duel list.txt,w,* $+ $knick $+ *)) {
- n309= write -dl $+ $readn "Stats\Duel list.txt"
- n310= while ($knick isin $read(Stats\Duel list.txt,w,* $+ $knick $+ *, $readn)) {
- n311= write -dl $+ $readn "Stats\Duel list.txt"
- n312= }
- n313= }
- n314= }
- n315=}
Add Comment
Please, Sign In to add comment