;------------------------------------------
;DM script by J.T and Erico |
;----------Update history------------------
;
;v1.0
;Basic DM with only !flick attack
;
;v1.1
;Added !stopdm
;Added !eat
;Fixed all found bugs
;
;v1.2
;Added Wins Counter
;Fixed more bugs
;Added !lash attack
;
;v1.3
;Added !barrage attack
;Made Barrage freeze if it hits 20+
;Added !haxp1hp/!haxp2hp command
;Added !dmversion to show off script info
;Fixed more bugs
;
;v1.4
;Made it so that color of hp is green at 70+,orange at 36+ and red at 35-
;Fixed yet more bugs
;Added !XBow attack
;Changed all variables for script to be Multi-Channable.
;Added !timeout command
;Added !Gaxe Attack
;
;v1.5
;Made Max of 5 Ice Barrages per game.
;Fixed some more bugs (omg there will always be bugs -.-)
;Added !dmstats command.
;Finally added !Dds attack
;Added aliases and change some things to tidy up output display
;Adjusted hit ratio of some attacks
;Made xbow hit with higher accuracy when frozen instead of 100% hit
;Added loses counter
;Changed !dmversion to !dminfo, and added some stuff
;Merged the death1/death2 aliases into 1 deathtest alias
;Script reached the 800 lines mark!
;
;v1.6
;Did major bug testing,and fixed the most
;Added a 30 second time limit to accept a DeathMatch
;Added !pass command
;Made so that players cant initiate a DM 15 secs after previous one.
;Dialog! :D
;Added the 3 types of DM mods.
;Added "!dm.supermod add", "!dm.advancemod add" and "!dm.mod add" admin commands
;Added "!dm.mods remove" command for removing DeathMatch Mod Status.
;Made Supermods able to !haxp1hp/!haxp2hp
;Made Advancemod+ able to stop dm
;Added refresh and clear text buttons to dialog
;
;v1.7
;
;Added Enable/Disable DeathMatchs for different channels.
;Gave the dialog a facelift
;Added !enabledm and !disabledm commands
;Added Poison Adding/Removing to dialog
;Added Wins/Loses Editor to Dialog
;Added !setdm command
;Added setdm to dialog
;Added Nick Mod Status checking to dialog
;Made Nick Mod Status Checker replace spaces with underscores
;Made (M)$nick to !stopdm if $nick has any mod status
;Fixed bugs in dialog
;Made timers "silent"(dont appear in status window)
;Added Player Voicing System if channel is #DmScript
;Added !dmchans command
;Added !dmace attack
;Made !xbow hit more accurate if opponent's "last attack was a "MAGE ATTACK" instead of "frozen"
;Made notices "silent"
;Tidied up the "Include in every new attack...." section of the script
;Added the 3 god spells(!claws of guthix,!flames of zamorak,!saradomin strike) (w00t lotsa lines ;D)
;2k lines!!758 lines of dialog O.O
;
;v1.8
;
;Increased Gaxe Hit Ratio
;condensed the 3 god spells scripting into 1 simple one
;Added !haxturn command
;Added !charge command
;Added (SA) and (A) user groups
;Upped hit rates of some attacks
;Barrage bug fixed
;Removed voicing system for #DmScript channel
;Changed !DmStaff to notice only when Dm in channel is enabled
;Removed ability to enable/disable dm for AdvanceMods
;Fixed !haxturn
;Added Pc_Dark to Admins list
;Added auto mode +B(Bot) on connect
;Changed wins saving address mask(hopefully will bypass the dynamic ip problem)
;Edited the !setdm command to check if the setdm nicks are on the channel
;Tweaked the .Do and .Say commands
;Made a player forfeit if he/she parts the channel
;
;v1.9
;
;Added HiScores system(w00t!)
;Allowed Mods to bypass the 15 second system
;Added win streaks
;Edited !DmCommands command
;Added notice on invite to say that bot is non-invitable
;Tweaked Xbow
;Added Mode +mvv(too many idiotic noobs are asking for it and its annoying, dis shud shut them up)
;Added notice to nick if he/she types !Dm within 15 secs after his/her last one
;Added Blair as admin
;Incorporated +mvv system into Dialog SetDm
;Added !wins command to view wins
;
;v2.0
;
;Added forfeit on quit, noobs on ss irc use quit more than part.
;Re adjusted almost all attacks hit rates
;Changed DmMods name to a scale of lvl 1,2 or 3 corresponding to mod,advancemod and supermods used before
;Fixed slight bug in !setdm command
;Hp bar in !status command :P
;Added Final Stats at end of dm using Hp Bars ^^
;Changed Blair to Blair_S since he uses that nick more on the Official channel
;New less spammy Hiscores output and new triggers
;added new triggers for !gaxe(!dh) and !flick(!whip) for noobs to get used to this script better
;Added Guthans attack
;Added Anti-Winstealing system to prevent players from Dm'ing themselves to get more Win Counts.
;Shortened the script
;Eliminated all traces if $readini(dmenabled.ini.....) and used $istok in place of it
;Added nick change in case players change their nick halfway
;Added !Gmaul attack
;Added recovering of hpbar by 10% each turn (15% when u do !pass)
;Added mute on spam(5 !dm in 15 seconds)
;Changed the whole wins saving system and merged into a login system using hash tables
;Made it save hash table every 15 minutes
;Added exp and level up system
;Added second hiscores, users can now use !hiscores exp/wins. Defaults to wins if second parameter is not given
;Added !users command(Admin only) to view users logged in
;Changed flick and guthans to work better at higher levels
;Added !hpbar lock for lvl 2 mods+
;Changed !dmmods command not to be so spammy
;Made lash and dds hit higher at higher levels
;upgraded !wins to support !wins <nick>
;Made it show level for exp hiscores
;
;------------------------------------------