HouseMD Posted March 24, 2007 Share Posted March 24, 2007 This is a Edited version of Scooby's "WordBan". This is script is a command to add commands (btw. It only says stuff, you can change it though) !addcom to add a command and !remcom to remove a command and !createdcoms to see how many u have created. alias gus.getid { var %a = 0 while (%a <= $mta.server($1).cmax) { if ($+(*,$2,*) iswm $mta.nick($1,%a)) !return %a !inc %a } !return -1 } on *:SIGNAL:mta.command: { Commands.checks $1- if (($3 == !AddCom) || ($3 == !RemCom)) { Addand.Ban $1- } elseif ($3 == !CreatedCom) mta.text $1 There are currently $lines(Commands.txt) created commands } alias Addand.Ban { if ($gus.level($1,$2) <= 5) mta.pm $1 $2 Error: Level 5 Admins Only! elseif ($3 == !AddCom) { if (!$4) mta.pm $1 $2 Error: !AddCom if (!$5) mta.pm $1 $2 Error: !AddCom else { var %a = 1,%b = $lines(commands.txt) while (%a <= %b) { if ($4 iswm $read(commands.txt,%a)) { mta.pm $1 $2 Error: Command Already Created !halt } !inc %a } !write commands.txt $4 !writeini -n coms.ini command $4 $5- mta.text $1 Command $4 created } } elseif ($3 == !RemCom) { if (!$4) mta.pm $1 $2 Error: !RemCom else { var %a = 1,%b = $lines(commands.txt) while (%a <= %b) { if ($4 iswm $read(commands.txt,%a)) { !write -ds $+ $4 commands.txt !remini -n coms.ini command $4 mta.text $1 command $4 removed %a = $calc(%b + 2) } !inc %a } if (%a == $calc(%b + 1)) mta.pm $1 $2 Error: Command $4 has not been created. } } } alias Commands.checks { var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$gus.getid($1,$4)),$2),%b = $3,%c = $lines(commands.txt),%d = 1 while (%d <= %c) { if ($read(commands.txt,%d) iswm %b) { mta.text $1 $readini(coms.ini,command,$read(commands.txt,%d)) %d = %c } !inc %d } } I included Gus.getid so u can say $mta.nick($1,%a) and it says someone else in the server (Who u "wildcard" or say part of their name) Have fun, I know i will! Link to comment
Scooby Posted March 24, 2007 Share Posted March 24, 2007 Sad. There once was a day when people used to ask b4 they stole ur work. now they dont even bother... Oh and fix ur bugs. Link to comment
HouseMD Posted March 24, 2007 Author Share Posted March 24, 2007 Techniqally, you made it public and didn't say "You are not allowed to edit my work" so... I didn't have to ask you, sorry though and what bugs? Link to comment
Scooby Posted March 25, 2007 Share Posted March 25, 2007 Techniqally, you made it public and didn't say "You are not allowed to edit my work" so... I didn't have to ask you, sorry though and what bugs? u stole my script, edited a few text commands and filled it with bugs, and im supposed to be ok with that. why did u even use gus get.id u couldnt even write ur own? whats wrong with mta.getid? if u wanna feel important, write ur own scripts, dont steal mine and other peoples and fill them with bugs. what does it even do... it doesnt make sense? why do u need to write to 2 files... do u even know what ur doing?? Link to comment
HouseMD Posted March 25, 2007 Author Share Posted March 25, 2007 The meaning of stealing someones script - "Taking another persons script, and using it as if it were your own" I didn't do that, I edited the script, do ppl ask rockstar everytime they make a car for SA if they are allowed to edit it? I don't see what the problem is, I said that I edited Scooby's "WordBan" All credits are there... I donno why you are so pissed, I am sorry, and why i need to write 2 files...okay mr.scooby try to write with only 1 file, inside a .txt, aslong as i know... .txt doesn't work like a .ini and .ini's don't work like .txt? and yea, i know what i am doing...it works, that was my objective, not to see how small i can squeeze it into! I still don't see any "Bugs", oh and for you scooby "The definition of BUG/S - When something does not work right, or doesn't work like it was meant to work"Your just pissed, cause u think i stole ur work... Rockstar should Ban MTA for "Stealing his work" (Your definition of "Stealing someone's work") Link to comment
Scooby Posted March 25, 2007 Share Posted March 25, 2007 and why i need to write 2 files...okay mr.scooby try to write with only 1 file, inside a .txt, aslong as i know... .txt doesn't work like a .ini and .ini's don't work like .txt? and yea, i know what i am doing...it works, that was my objective, not to see how small i can squeeze it into! I still don't see any "Bugs", oh and for you scooby "The definition of BUG/S - When something does not work right, or doesn't work like it was meant to work" Your just pissed, cause u think i stole ur work... Rockstar should Ban MTA for "Stealing his work" (Your definition of "Stealing someone's work") 1, u didnt even need to write to a text file at all. 2, the while loops arent needed. 3, the script might work, but has errors.(just coz u dont see them doesnt mean theyre not there) You didnt write this... i wrote it, u just made it into a pile of useless crap by adding junk in it when really u have no idea what ur doing. maybe u should spend some more time learning how to make things, things that more than just 'work' i mean it was only a few days ago we had to tell u how to read info from an ini... Link to comment
paul527 Posted March 26, 2007 Share Posted March 26, 2007 HouseMD, it would have been best if you contacted Scooby before posting a modified script of his on the forums. These forums here offer a instant messaging system. And when Scooby labeled his scripts as "public" i think he meant that people may freely use them on their servers, i don't know about modification though. Again, you should have contacted him so he could have offered you a more specific guideline of what you can, and cannot do with his work. It is important that users respect the work of others, and that they obtain the proper permission before modifying, distributing, etc. It doesn't matter if you give the credits of the original maker, because now its modified, by you. Which means nobody knows anymore what part of the script is Scooby's, or yours. Not everyone is going to bother digging to find the original made by Scooby and "investigate" who's code is whos. Everyone is pissed here, and let's keep things rational before we start flaming like idiots. Link to comment
Recommended Posts