PtokaX forum

Archive => Archived 5.0 boards => Finished Scripts => Topic started by: Madman on 19 April, 2005, 16:10:14

Title: FunScript - Lua5
Post by: Madman on 19 April, 2005, 16:10:14
I know some has been waiting for this... =)

For thoose who havent used FunScript before see below
Unfortunately, no one can be....told what The FunScript is...you have to see it for yourself

lol, just kidding =)
FunScript is a script that allow you to stab, insult, throw santa and priest on users,
smoke a joint, kill IE, beat the shit out of msn and much more!

As Op you can also, make a user drunk, make all nick in main go weird, change some settings temporarly,
check current config

Please read the ReadMe file!!
It contains alot of info about the new stuff

--==------------------------------------------------------------------------------------==--
--== * * * NOTE TO EVERY ONE..* * * ==--
--== ==--
--== Most Security Enabled scripts BLOCK certain commands/chat from other scripts.. ==--
--== ==--
--== Any problems with Lost commands and none working scripts.. ==--
--== TRY Reordering the running order first. ==--
--== ==--
--== Usually putting your MAIN security script to the Bottom.. ==--
--== ==--
--== Thanks to Hawk for suppling this info ==--
--==------------------------------------------------------------------------------------==--

QuoteChangelog for FunScript version 7[/b]
-- Version 7
-- Rewritten to lua5
-- Added: Some return 1's
-- Added: A switch for the do to a user part, now we can slap, stab anything =)
-- Removed: Some of the MustBeOnline switch for some commands
-- Fixed: Bug with stab command messing up the You Do AscII commands
-- Changed: Lowcased alot of texts...
-- Added: !pill commnd (Thanks Sunnis)
-- Added: 2 new BotNames, they are for !pill, see settings.ini
---- Updates copyed from 6.3
-- Fixed: A bug in unregistering bot (Thanks Jorgo)
-- Added: 2 to RegTheBot, Regs the bot without tag
-----
-- Added: Command so bot can be regged without tag temporarly
-- Fixed: With bot not removing tag when allready regged with tag (I hope)
-- Removed: !tele from rightclick
-- Fixed: A bug in !ac, Thanks Bart who made me notice it
-- Added: !slapup (requested by Stoffy)
-- Changed: Lowcased the rightclick
-- Added: AllowedNicks, users in this table do not need to be ops..
-- Fixed: so the Bot wont talk when NN and Drunk has been used
-- Added: OnError, if error happens. ErrorLog.txt will be created
-- Added: --==ErrorCommands==--
-- Added: command for cleaning and reading the ErrorLog
-- Changed: Updated the readme
-- Added: A [ Add-On ] folder, StabBot by ?ottledHat? can be found there
-- Added: A switch for my stab command
-- Fixed: A bug in !uptime command
-- Added: RockOn AscII (Thanks WILDCAT)
-- Added: Some random stuff for !pill
-- Added: OnExit for beta...
-- SpellCheck: Some spellchecks by WILDCAT
-- Added: ConfigProfiles
-- Added: Made so ConfigProfiles and AllowedNicks can read the settings file
-- Changed: Small changes in Settings (Thanks Sunnis)
-- Added: PXVer beacuse of change in !uptime
-- Changed: --==ErrorCommands==-- to --==NewConfigCommand==--
-- Changed: Min time to MinTimer
-- Added: A command to get FunScript's config
-- Added: !food (Thanks Stoffy)
-- Changed: Moved CustomIntroTable and CustomOutroTable to CustomLogin.txt
-- Fixed: A typo in !uptime
-- Added: !eat (while eating =) )
-- Added: Random on !bored
-- Added: !inlove (Thanks Stoffy, may your love be returned =) )
-- Fixed: Hopefully fixed the problem with command showing in main when using NuttyNicks (thanks to: see link beloow)
-- http://board.univ-angers.fr/thread.php?threadid=3982&boardid=26&sid=eb8047622bc020ebe3481bf06224a05c
-- Removed: Delted manuy MustBeOnline
-- Added: Some stuff to piss of MB
-- Added: !O to my !o command ;p
-- Added: bUserCommand to rightclick for sending usercommands... is 1 if user client support it and nil if not support
-- Fixed: A stupid bug !lucknr command (Thanks TiMetraVelleR for report and Typhoon for fixing it)
-- Changed: We now get profilenames instead of profiles numbers, beacuse in 16.09 the profiles number changes when moving them up or down
-- Added: ThrowbOpUnreg because of that...
-- Changed: the pissing of MB part...
-- Added: more AscII pics thanks to (uk)jay
-- Fixed: Some bugs in AscII.txt
-- Added: RightClicks to new AscII commands
-- Removed: Some left over from the lua4 versions
-- Added: So the scripts checks it there is a ErrorLog.txt to read/clean (Thanks to Dessamator, who wrote the org code I stole ;))
-- Removed: Some unnessesary comments from settings
-- Removed: Pissing of MB part
-- Added: !screw (request by Sunnis)
-- Changed: Some stuff in OnError, added a border
-- Fixed: Some in my corner (missing return 1)
-- Added: !hero (Idea from stoffy)
-- Fixed: A problem with syntax
-- Removed: some comments
-- Changed: Made some small changes 5 min ago, no idea what... :/ bad memory...
-- Removed: PxVer, there is no reason to use and old 16.xx version ;)
-- Changed: !uptime beacuse of removing PxVer
-- Removed: PxVer check in !funcfg
-- Fixed: A spelling error (Thanks Stoffy)
-- Changed: So all Ops see OnError, limiting it to ConfigProfiles and AllowedNicks, caused a fatalerror
-- Changed: Small Change in RegTheBot 2
-- Added: Some stuff in !pill
-- Added: !microsoft, and no.. i'm not pissed on microsoft... *cough cough*
-- Changed: !showpu, lol, just noticed, that anyone could use that command, now limited to AllowedProfiles and AllowedNicks
-- SpellCheck: Corrections by WILDCAT
-- Changed: Small change in BotTag
-- Changed: Layout of the changelog ;p
-- Added: TabelSettings.ini, Moved all tables with profiles to it
-- Added: !funprofiles to import all profile names to TableSettings.ini, (credits to chill, he made the org function, i modded it)
-- Changed: !funprofiles the command now set all profiles except Master to 0
-- Added: Updated the ReadMe with info about the TableSettings.ini
-- Changed: Small change in !readset
-- Added: !readsettable, it displays the entire TableSettings.ini in PM
-- Changed: Moved OnExit to Beta.lua, it only contains stuff for Betas...
-- Changed: Made some changes with the way files where requierd
-- Added: A CustomCmd folder, put custom commands there, see the ReadMe for more info (Credits to Typhoon™ and Kepp)
-- Added: !customcmd list the available commands in FunScript\CustomCmd
-- Changed: Updated the ReadMe again... =)
-- Added: [VIC] to CustomCmd
-- Changed: Updated the ReadMe again
-- Added: !pet
-- Removed: A line in !funversion
-- Added: If i get slapped, I auto respond with never! ;p
-- Changed: RightClick, missing a word...
-- Added: A table to set which profiles gets a login/logout msg (Request by (uk)jay )
-- Added: The new table to the !funprofiles command
-- Changed: OpConnected is the same as NewUserConnected, due to some changes
-- Added: Some more randoms to !bored
Title:
Post by: Madman on 19 April, 2005, 16:56:07
Ooops...
found and small error in RightClick, package Updated =)

fixed a typo in AscII.txt thanks T?meTraveller for report, package updated once again
Title:
Post by: jadehenry04 on 19 April, 2005, 18:08:08
cheers madman like ya script im enjoying using it no probs so far :) xx
Title:
Post by: Madman on 19 April, 2005, 19:40:26
good to hear =)
Title: nice
Post by: Riptorn on 19 April, 2005, 20:50:06
nice script madman looks great ty for ya time makin it  :D
Title:
Post by: Madman on 21 April, 2005, 20:17:44
Mostly bugfixes.... =)

QuoteChangelog for FunScript version 7.1
-- Version 7.1
-- Changed: Tiny change in !hugs
-- Added: Now you can't use the !screw command on your self
-- Fixed: Everybody said Never when using !slapup, now just me ;p
-- Added: Blocked so no one can write spaces/empty lines, fixing error in CustomCmd (Thanks Typhoon)
-- Changed: Moved info to ReadMe
Title:
Post by: Bobby1999 on 24 April, 2005, 10:40:55
Nice one,cheers:)
Title:
Post by: Madman on 26 April, 2005, 16:00:17
Fixed a bug with check config
You only need to download the Cfg.dat
Package updated with new cfg.dat
Title:
Post by: MichaelD on 26 April, 2005, 17:48:26
Hi. :)

Looks like a great script, only I can't get it to work :(

The right click menu is there but when I click on anything, nothing happens.

I've changed my name in the settings.ini file for hub owner.

I'm using Ptokax 0.3.3.0 build 17.03 debug and also Xsthetic NetServer

Thanks.

Michael  ?(
Title:
Post by: Tw?sT?d-d?v on 26 April, 2005, 18:58:47
make sure you got funscript folder and funscript.lua in your ptokax script  folder or try this....
--==------------------------------------------------------------------------------------==--
--== * * * NOTE TO EVERY ONE..* * * ==--
--== ==--
--== Most Security Enabled scripts BLOCK certain commands/chat from other scripts.. ==--
--== ==--
--== Any problems with Lost commands and none working scripts.. ==--
--== TRY Reordering the running order first. ==--
--== ==--
--== Usually putting your MAIN security script to the Bottom.. ==--
--== ==--
--== Thanks to Hawk for suppling this info ==--
--==------------------------------------------------------------------------------------==--
Title:
Post by: MichaelD on 26 April, 2005, 19:43:54
Thank you. :)  It worked after I changed the order the scripts are run.  However, everytime I restarted the scripts, it wrote back to Scripts.xml and changed the order back to how it was before.  8o

I got round this by making the file read only after changing the order.

Thanks again  :D
Title:
Post by: EMIN3M on 12 May, 2005, 01:30:55
Hi, I been useing this fun script but i get this error

Syntax FunScript/Connect.dat:35: attempt to index global `players' (a nil value)
Syntax ...\EMIN3M WORLD\scripts\FunScriptV7.lua:1273: attempt to index global `Brain' (a nil value)

any ideas?
Title:
Post by: Madman on 12 May, 2005, 02:42:10
QuoteOriginally posted by EMIN3M
Hi, I been useing this fun script but i get this error

Syntax FunScript/Connect.dat:35: attempt to index global `players' (a nil value)
Syntax ...\EMIN3M WORLD\scripts\FunScriptV7.lua:1273: attempt to index global `Brain' (a nil value)

any ideas?

Yup.... for some reason you are missing thoose tabels....

just add
players = {} -- For the russian roulette
Brain = {} -- For the !brain command
some were in the function Main()
it's were i have them :p
it's in the Mainfile (FunScriptV7.lua)

Thats the only thing as i can see...

if that don't help.. and you have edited the script... try to post it... it the board let you... and i i'll try to find the error.....
Title:
Post by: hutchenky on 12 May, 2005, 02:57:00
can i use it with ptokax 1705 and rc 10.01e

cheers :hutch
Title:
Post by: Arucard on 12 May, 2005, 03:01:32
Nice as always  :D
Title:
Post by: Madman on 12 May, 2005, 03:14:02
QuoteOriginally posted by hutchenky
can i use it with ptokax 1705 and rc 10.01e

cheers :hutch

Dont know... havent tested it with 17.05 and rc 10.01e... but there shouldnt be and problems...

So give it a try and if it dont work, let me know.. and i'll have a look at it... ;)
Title:
Post by: EMIN3M on 12 May, 2005, 05:19:32
QuoteOriginally posted by madman
Yup.... for some reason you are missing thoose tabels....

just add
players = {} -- For the russian roulette
Brain = {} -- For the !brain command
some were in the function Main()
it's were i have them :p
it's in the Mainfile (FunScriptV7.lua)

Thats the only thing as i can see...

if that don't help.. and you have edited the script... try to post it... it the board let you... and i i'll try to find the error.....

Hi thanx for the fast answer.  I checked the script and they are in the right place.

What part of the script would u like me to put on the board?
Title:
Post by: Tw?sT?d-d?v on 12 May, 2005, 09:38:44
QuoteHi thanx for the fast answer. I checked the script and they are in the right place.

All working fine here m8 ......  P/X 17.05  ... RC10.01E


Try downloading a fresh copy of funscript and see if you get the same prob   =)  

If you have edited the script post the part that you have edited
Title:
Post by: EMIN3M on 13 May, 2005, 01:13:05
None of the codeing has been edited only the settings :)

I'll try a fresh install thanx :)
Title:
Post by: Madman on 13 May, 2005, 01:52:23
QuoteOriginally posted by EMIN3M
None of the codeing has been edited only the settings :)

I'll try a fresh install thanx :)

please do so... if it dont work...
Let me know...
And i'lldrop by your hub, and try to solve solve it there... ;)
beacuse the only way to have this error is of the tabels are mising... and as you said they are there....
it might be a another script f*cking it up...
Title:
Post by: Madman on 20 May, 2005, 09:52:33
Fixed an RightClick issue (I hope...)
Package has been updated...
You can also  grap just the RightClick on the site

If i have time and don't find any bugs.... I can realse v8 this weekend..... =)
Title:
Post by: EMIN3M on 20 May, 2005, 15:01:11
Kool version 7 is great :D cant wait to try version 8 hehe :D
Title:
Post by: Madman on 21 May, 2005, 18:13:00
Here we go...

The code is totally rewritten... as in..
I started with a blank file again... and started to add everything again...
Some it will probarly have some bugs...
I tested it with the standard settings... I didnt find any bugs then... ;p
And probarly re-added alot of spelling misstakes...

So please report any bugs and spelling misstakes

QuoteChangelog for FunScriptV8
-- Version 8 Complete
-- Tottaly rewritten source code
-- Due to the big changes, i made the script in diffrent BetaTest versions..
---- An summary of the BetaTests changelogs
-- Changed: My way of codeing
-- All commands from old versions added in BetaTest 1
-- Fixed: Some bugs made when adding commands
-- Added: !fire and !quote
-- Changed: The setup file, now in table form
-- Everything from all version added in BetaTest 2
-- Added: Elite, Camel
-- Added: Elite one user (Requested by Sunnis)
-- Fixed: Alot of bugs
-- Added: ProtectesUser protection to new modes
-- Fixed: A small typo in slapup
-- Changed: Updated the rightclick
-- Fixed: Priest, Thanks Didde
-- Fixed: Typo in slapup, Thanks Ctrl
---- Switched 2 Complete version... ;p
-- Fixed: Bug in CustomCmd
-- Added: Put 1 user in camel mode (Requested by Sunnis)
-- Fixed: Some Typos
-- Added: Now you can't insult/attack/stab yourself
-- Fixed: Clean mem in quote command
-- Changed: Stuff in rightclick, hope fully it will fix the bug with bcdc, (Did it in v7.1 aswell)
-- Fixed: A typo in Russian

*Edit*
I'm on a party to night.. so if any bugs found today.. they probarly wont be fixed tonight... I might be drunk... or nit.. who knows.. ;)
Title:
Post by: Tw?sT?d-d?v on 21 May, 2005, 19:22:46
great stuff as always ....  ill try and think of some more stuff to add to it over the next couple of days
Title:
Post by: Madman on 21 May, 2005, 19:27:22
QuoteOriginally posted by (uk)jay
great stuff as always ....  ill try and think of some more stuff to add to it over the next couple of days

!o i'm always open for suggestions =)
Title:
Post by: Cosmos on 23 May, 2005, 06:32:01
how can i find a list of commands for this script?  i assume they are in a help command, but i cant find that command.
Title:
Post by: Tw?sT?d-d?v on 23 May, 2005, 07:17:28
QuoteOriginally posted by Cosmos
how can i find a list of commands for this script?  i assume they are in a help command, but i cant find that command.

All the commands are in the Funscript folder (funrightclick) which should appear in your dc rightclicker when you've restarted scripts ,then reconnected to the hub(or just restart the hub) is that fails make sure you have got the funscript folder and the funscript lua in your hubs script folder... if that dont help download a fresh copy of funscript
Title:
Post by: Madman on 24 May, 2005, 18:47:52
Found a small typo/bug...
package updated

Grab the package again.. or just download the FunScriptV8.lua file =)

or for thoose who feel brave enough.. lol
find this, (In the FunScriptV8.lua ofcourse... ;p)
if EliteUser == 1 then
tEliteUsers = {}
ElitUser = 0
SendToAll(Bot.Name, "All Elite talikng users can now chat normal")
StopTimer()
end
and change it to this
if EliteUser == 1 then
tEliteUsers = {}
Elit[color=red]e[/color]User = 0
SendToAll(Bot.Name, "All Elite talikng users can now chat normal")
StopTimer()
end
Title:
Post by: yoonohoo on 27 May, 2005, 12:43:51
I'm using Guarding which has a setting.ini file just like Funscript v8.

How can I overcome this problem when using both scripts?
If possible, that is!

Thanks
Title:
Post by: Madman on 27 May, 2005, 13:44:42
That won't be a problem...

Beacuse only FunScriptV8.lua will be in the scripts folder.
All other files are placed in scripts\FunScript
Title:
Post by: yoonohoo on 28 May, 2005, 02:01:18
Many thanks madman
Title:
Post by: Madman on 31 May, 2005, 17:00:39
Updated version...

One new thing is the TableSettings.ini...
Now it only has the standard profiles...
So anybody who have more profiles then then the standard one, need to use the funprofiles command
But you don't need to extract it from the rar... just keep the one you used in Version 8...
The settings file you can keep as well, BUT then you need to  change...
the table ProtectedUser...
alll nicks in it must be written with small letters

QuoteChangelog for FunScriptV8.1
-- Version 8.1
---- Ce Edition 4 (uk)jay
-- Added: TextFunc
----
-- Fixed: A link in bored, the flash had been moved
-- Added: Commands from (uk)jay
-- Fixed: Some small fixes in the commands
-- Fixed: Some small fixes in some of my code...
-- Fixed: A typo in Moviequotes.txt
-- Added: An Error msg to the quote commands, if file not found, show errormsg
-- Changed: TableSettings.ini, Anybody who have more profiles then then the standard one, need to use the funprofiles command
-- Changed: Updated the ReadMe
-- Added: Some more quotes
-- Changed: The time code in os.date, Thanks 2 plop who told me about it... =)
-- Changed: Low cased Protected user, Nicks in that tavle, now MUST be written in lowcase a.k.a small letters
-- Added: Op's can't be banished =), requsted by (uk)jay
-- Fixed: A bug in uncamelall, Thanks stoffy for showing it... ;p
Title:
Post by: Madman on 05 June, 2005, 01:51:24
QuoteChangelog for FunScriptV8.2
-- Version 8.2
-- Removed: Connetion from bot
-- Added: Applaudpic command, lol forgot to add it, Thanks TiMeTrAVelleR for report
-- Added: Waterballoons command, request by RealExtreme
-- Changed: The TextFunc, now supports [vic], Idea by (uk)jay
-- Changed: The TextFunc again, now [text] can be more then one word
Title:
Post by: Madman on 05 June, 2005, 12:55:45
TiMeTrAVelleR found another error 4 me, package updateded, and also the FunScriptV8.lua file, has been updated =)
bah... updated again.. fixed an typo.. thanks (uk)jay 4 report
Title:
Post by: Mynttinen on 11 June, 2005, 09:20:02
Hi!
 I am using funscript 8.2 and it does not announce other users anymore when a operator enters the hub. Is it normal?

In 6.2 it was announcing " opeator burns some fakers on his way out" now it only shows the operator the phrase not others.

And i want to make the chatter chat often. Now it is 1h. How do i change it. I know that in the script there is 1 for one hour,but how do i make it 1/2 h?  0.5  or?


Thanks for answers!

The script is very fun and my hubsters like it  :)
Title:
Post by: Markos on 11 June, 2005, 12:55:31
nice one madman i dont no if this is a bug or not but Custom Login dont seem to work i still get random Logins
Title:
Post by: Mynttinen on 11 June, 2005, 18:25:14
I tested a little bit more... and the results was.

It shows the "intros" for profile master and above,but for operators it does not show a thing.

How can i change so it shows the intros(login)/outros(logout) for them too?

Using funscript 8.2 + ptokax 17.08
Title:
Post by: Scythe on 11 June, 2005, 20:34:23
I'm new with your script, and i have 2 questions
first is what the drunk part does..i set it to an user ...and nothing...and the other ..how i set the intro for the user ...i mean where i edit them and from where i start them
Title:
Post by: Madman on 12 June, 2005, 04:37:20
QuoteOriginally posted by Mynttinen
I tested a little bit more... and the results was.

It shows the "intros" for profile master and above,but for operators it does not show a thing.

How can i change so it shows the intros(login)/outros(logout) for them too?

Using funscript 8.2 + ptokax 17.08

you need to edit the TableSettings.ini
There is a table called LogInOutProfiles there...
set to 1 for the profiles you want msg for

QuoteOriginally posted by Markos
nice one madman i dont no if this is a bug or not but Custom Login dont seem to work i still get random Logins

Same goes for you.... Edit LogInOutProfiles in TableSettings.ini for the profiles you want.. and also make sure you spelled them ExaCtlY as they have there nick... =)

QuoteOriginally posted by Scythe
I'm new with your script, and i have 2 questions
first is what the drunk part does..i set it to an user ...and nothing...and the other ..how i set the intro for the user ...i mean where i edit them and from where i start them

The drunk user must write something in main... then you will see it =)
and for the Msg... Edit the settings.ini
["LogInMsg"] = 1, -- Enable random/custom login msg when users/ops enters, 1 is on, 0 is off, 1 is standard
["LogOutMsg"] = 1, -- Enable random/custom login msg when users/ops leaves, same as above
Thoose 2 lines should be 1 (as they are there.. ;p)
And then edit the TableSettings.ini
There is a table called LogInOutProfiles there...
set to 1 for the profiles you want msg for
Atm you cant have on reluglar users... they need to be atlest regged to have msg....

Hopefully i wrote everything write... i'm tierd as hell ;p
Title:
Post by: Markos on 12 June, 2005, 13:45:41
thanks madman i try it now :-)
Title:
Post by: Markos on 14 June, 2005, 18:20:50
funscript crashes ptokax :(
Title:
Post by: Madman on 14 June, 2005, 20:02:15
QuoteOriginally posted by Markos
funscript crashes ptokax :(

eh... okey..? a little more details would be good...
Title:
Post by: Tw?sT?d-d?v on 14 June, 2005, 20:04:35
QuoteOriginally posted by Markos
funscript crashes ptokax :(

No probs here  ..... running 0.3.3.1 ...  :D
Title:
Post by: Madman on 28 June, 2005, 15:15:11
Fixed a small typo...
Package updated
only file updated is FunScriptV8.lua it can be downloaded on the site..
Title:
Post by: H?LL?L?L??nG?L on 10 July, 2005, 04:08:56
No errors here  :D Dunno why i didnt try this ages ago This script is hilarious :P :P  Everyone should try it :]  :]
lots of fun MaD
NicE 1 ;)
Title:
Post by: hnr21 on 17 July, 2005, 12:03:53
I use PX v0.3.3.1 [debug], RoboCop v10.01e and FunScript v8.2

Some suggestions:
1) When displaying a question to show some predefined chars like <'>,<->,<_>,, in the question text.
2) When answer is correct to a question to display the points that have been won, the current ranking and after that the first user (and points) ranked ahead of the current user.
Example:   Kewl, "..curUser.sName.." You get ..curTriv.points.." Point(s) Total of "..self._Scores[curUser.sName].Score..", currently ranked in xth of "..table.getn(TCopy).." Players - y Point(s) behind "..aheadUser.sName.." !

This way one doesnt have to !trivmyscore everytime to c hes/shes stats !

Thank you very much for your work and support ! :)
Title:
Post by: Madman on 17 July, 2005, 15:31:19
QuoteOriginally posted by hnr21
I use PX v0.3.3.1 [debug], RoboCop v10.01e and FunScript v8.2

Some suggestions:
1) When displaying a question to show some predefined chars like <'>,<->,<_>,, in the question text.
2) When answer is correct to a question to display the points that have been won, the current ranking and after that the first user (and points) ranked ahead of the current user.
Example:   Kewl, "..curUser.sName.." You get ..curTriv.points.." Point(s) Total of "..self._Scores[curUser.sName].Score..", currently ranked in xth of "..table.getn(TCopy).." Players - y Point(s) behind "..aheadUser.sName.." !

This way one doesnt have to !trivmyscore everytime to c hes/shes stats !

Thank you very much for your work and support ! :)

That souns like the triva game... not my script...
Title:
Post by: hnr21 on 17 July, 2005, 19:51:58
Sorry for that madman .. i wish I could move this post to the right place :P

Anyway yr script is great ...i added some more quotes, moviequotes, ascii, acronyms and jokes to it, but it would be nice if the script will be more interactive ... like responding to some strings/triggers in the mainchat and also come-up with some texts in accordance with the time of the day (mornings, nite_times or even with some notify messages that could be setted by users, depending on their levels, like "C'mon user u said i should remind ya you have a hot date on 8PM. Move your ass away from this damn computer ... whats wrong with ya" or "user x nicely asked me to remind ya all that he/she would much appreciate if some1 could share some specific file, movie, music or something") :))
Similar to the TrickerBot2.lua, created by Ptaczek and Clever Janinha v1.0 !!!

Best wishes !
Title:
Post by: Madman on 18 July, 2005, 00:34:54
hmm.. maybe... IF i want to do it... it wont be yet... have more important stuff 2 do atm.... maybe.. depends on 2morrow
Title:
Post by: Madman on 18 July, 2005, 20:13:07
Script updated... small update...

QuoteChangelog for FunScriptV8.3
-- Version 8.3
-- Added: My own ut command
-- Fixed: A typo in waterballoons
-- Added: Non case sensetivite on commands
-- Removed: some return1's caousing "bugs" in my security script
-- Fixed: Fixed prob with login and custom login msg

As for hnr21's requset...
Nope... sorry..
You got TrickerBot or Clever Janinha... and i bleive seNsei is a script like that.. as for the other things.. dont sound like stuff to fit in a FunScript...
besides... I'm not sure i have the time... i finnaly got a job... just 4 a month.. but still a job... =)
Title: god work
Post by: GodLike on 18 July, 2005, 20:51:43
good work madman  :)  
you are coool  8)
Title:
Post by: kunal on 20 July, 2005, 05:55:31
hey madman can u add more features like the make user drunk.can u add the features like make user cow,ass,dog,etc.the drunk user has become boring for me now.i wanted some variation.
Title:
Post by: Madman on 20 July, 2005, 06:07:27
What would they do?
The cow cmd for example.. Should it make the user say
mooo moooo
moo mooo
or something? please explain a bit more... =)
And i'll try to add them when i have the time...
Title:
Post by: kunal on 20 July, 2005, 06:09:00
ya m8
hoping u do it soon
Title: problems
Post by: GodLike on 20 July, 2005, 11:52:27
the ascii don`t work in right click !!!!!!!!!  ;(
can you fix it ?  :(
Title: why ?
Post by: GodLike on 20 July, 2005, 13:08:37
madman why ascii in funscript don`t work when i write in main chat !  :(
!coffepic  apears to me
Sorry, AscII commands are disabeld .  ;(
or in right click menu fun script i don`t have ascii !!!  ;(
Title: madman
Post by: GodLike on 20 July, 2005, 13:10:15
I want AsCii madman  ;(
Title:
Post by: H?LL?L?L??nG?L on 20 July, 2005, 16:17:14
QuoteOriginally posted by GodLike
madman why ascii in funscript don`t work when i write in main chat !  :(
!coffepic  apears to me
Sorry, AscII commands are disabeld .  ;(
or in right click menu fun script i don`t have ascii !!!  ;(

Hi Godlike  :] when u type !coffe it says this   ]-[?LL?L?L??nG?L are getting some coffe, Anyone else want some?
and if u do it thru the right click u get the ascii pic and
]-[?LL?L?L??nG?L says, 'It's time to get some coffee *brb*.'
You need to enable the ascii in the settings ini file  :]

ascii is in the right click works fine for me  :P
hope that helps :D
Title:
Post by: Madman on 20 July, 2005, 16:38:09
Yup... you need to enable the Ascii
Set the UseAscIICmd switch in the settings file to 1

And.. Also download the FunScriptV8.lua again... found a small bug...

kunal
I'll see if i got anytime... might have some in the weekend...but it's on my todo list... trying to do it asap.. =)
Title:
Post by: Madman on 23 July, 2005, 16:06:37
QuoteChangelog for FunScriptV8.4
-- Version 8.4
-- Fixed: Another problem with Login Msg
-- Added: Animalize (Request by kunal), Animal sound stolen from Hawk's Terminator! ;)
-- Added: More sound 2 Animals
-- Added: Protected user and AllowedProfile 2 Animalize commands
-- Added: Timer stuff to Animal
-- Added: Right click for Animals
-- Fixed: Bug in unanimalize
-- Removed: Some left over code...
-- Fixed: Another bug in animalize
-- Fixed: Once again, bug fix in Animalize, Thanks to Didde for finding it
Title:
Post by: Madman on 23 July, 2005, 21:25:20
Fixed a typo.. Package updated...
only file updated is FunScriptV8.lua it can be downloaded on the site..

*Edit 05-07-24*
Bah... Same shit as above...
Title:
Post by: Syphrone-NL on 28 July, 2005, 19:00:41
I get this error:
At 2005-07-28 - 18:54:09 an error was detected
Error: ...te Hub\0.3.3.0.b17.09.nt.dbg\scripts\FunScriptV8.lua:348: attempt to index global `vUser' (a nil value)
When i do:
!insult pietje
and also when i do:
!attack pietje

my script:
["insult"] = function(curUser, data)
local s,e,vic = string.find(data, "%b<>%s+%S+%s+(%S+)")
if not vic then
curUser:SendData(Bot.Name, "Syntax: !" ..cmd.. " ")
return 1
end
if tSettings.MustBeOnline == 1 then
vUser = GetItemByName(vic)
if not vUser then
curUser:SendData(Bot.Name, "*** " ..vic.. " is not online or you need spelling lessons ;)")
return 1
end
end
if curUser.sName == vUser.sName then
curUser:SendData(Bot.Name, "Dont insult yourself!") return 1
end
if loadfile(Folder.. "/Insult.txt") then
dofile(Folder.. "/Insult.txt")
local msg = (string.gsub(string.gsub(Insults[math.random(table.getn(Insults))], "%[curuser%]", curUser.sName), "%[vic%]", vic))
SendToAll(msg) CleanMem() return 1
else
curUser:SendData(Bot.Name, "Sorry, there was an error, !" ..cmd.. " could not be executed") return 1
end
end,
["attack"] = function(curUser, data)
local s,e,vic = string.find(data, "%b<>%s+%S+%s+(%S+)")
if not vic then
curUser:SendData(Bot.Name, "Syntax: !" ..cmd.. " ")
return 1
end
if tSettings.MustBeOnline == 1 then
vUser = GetItemByName(vic)
if not vUser then
curUser:SendData(Bot.Name, "*** " ..vic.. " is not online or you need spelling lessons ;)")
end
end
if curUser.sName == vUser.sName then
curUser:SendData(Bot.Name, "Dont attack yourself!") return 1
end
if loadfile(Folder.."/Attack.txt") then
dofile(Folder.. "/Attack.txt")
local msg = (string.gsub(string.gsub(Attacks[math.random(table.getn(Attacks))], "%[curuser%]", curUser.sName), "%[vic%]", vic))
SendToAll(msg) CleanMem() return 1
else
curUser:SendData(Bot.Name, "Sorry, there was an error, !" ..cmd.. " could not be executed") return 1
end
end,
Title:
Post by: Syphrone-NL on 28 July, 2005, 19:05:13
cant post the whole script but its the original script of madman

EDIT: I added the script above with the script i think where the error is in
Title:
Post by: Madman on 28 July, 2005, 22:01:53
QuoteOriginally posted by Syphrone-NL
I get this error:
At 2005-07-28 - 18:54:09 an error was detected
Error: ...te Hub\0.3.3.0.b17.09.nt.dbg\scripts\FunScriptV8.lua:348: attempt to index global `vUser' (a nil value)

Thank you, Found and fixed
Standard Text:
Package updated...
only file updated is FunScriptV8.lua it can be downloaded on the site..
Title:
Post by: Syphrone-NL on 30 July, 2005, 21:22:28
thx madman
Title:
Post by: Madman on 06 August, 2005, 15:30:33
Fixed an small bug...
rar updated...
Only file needed is bla bla... u kno what...
Title: NonReg blocking
Post by: InfamousPlague on 22 August, 2005, 15:15:25
Hey i was wondering if the non registered users can be blocked from using the funscript?  Because I only want the REG, VIP,and all ops to be able to use the script.

If anyone can do this it would be appreciated.  Thanks.
Title:
Post by: Madman on 22 August, 2005, 15:32:44
QuoteOriginally posted by InfamousPlague
Hey i was wondering if the non registered users can be blocked from using the funscript?  Because I only want the REG, VIP,and all ops to be able to use the script.

If anyone can do this it would be appreciated.  Thanks.

Yes it can be done...but not by me... beacuse...
I don't want 2.... this is a FunScript... it's supposed to be avilbale to all...execpt some commmande who are limted to only ops..
Title:
Post by: InfamousPlague on 23 August, 2005, 01:03:09
lol...alright, i'll go through the script, i doubt i'll figure it out, so i might be back jst incase you change your mind.
Title:
Post by: Madman on 23 August, 2005, 01:15:25
QuoteOriginally posted by InfamousPlague
lol...alright, i'll go through the script, i doubt i'll figure it out, so i might be back jst incase you change your mind.

if cmd then -- If we find a command
[color=red]if not curUser.iProfile == -1 then[/color]
cmd = string.lower(cmd) -- Command can be written in both upper can lower case.. it will work anyhow

if tCmds[cmd] then -- If cmd was in table
CleanMem()
return tCmds[cmd](curUser, data) -- Show us it
else -- It was not
if VictimFunc(curUser, data, cmd) then return 1 -- Is it here?
elseif YouDoFunc(curUser, data, cmd) then return 1 -- Or here?
elseif AscIIFunc(curUser, data, cmd) then return 1 -- Maybe here
elseif TextFunc(curUser, data, cmd) then return 1 -- Here then?
elseif AnimalFunc(curUser, data, cmd) then return 1
end
end
[color=red]end[/color]
else

Un tested...
Should work in theory... if i'm not 2 tierd..
i'll do it IF more ppl request a option to limit all cmd to  diffrent profiles...
Title:
Post by: InfamousPlague on 24 August, 2005, 02:34:11
Thanks, just one more thing, could you tell me where I must insert the two codes?  

Greatly appreciated madman.
Title:
Post by: Madman on 25 August, 2005, 02:06:53
QuoteOriginally posted by InfamousPlague
Thanks, just one more thing, could you tell me where I must insert the two codes?  

Greatly appreciated madman.

Add the red lines between all the black ones i copyed.....
U shoudl see all black lines in the script... add the red ones...
in FunScriptV8.lua
Title:
Post by: Madman on 29 August, 2005, 23:13:38
QuoteChangelog for FunScriptV8.5
-- Version 8.5
-- Fixed: Typo in RR
-- Fixed: A bug in AsciCmds
-- Fixed: Typo in Vic not online
-- Added: AllowBanish stuff, Request by Bobby1999
-- Added: Above to funprofiles cmd, !Untested!
-- Changed: Some other stuff, due to boredom..
Title:
Post by: Bobby1999 on 30 August, 2005, 18:51:54
Cheers:)
Title:
Post by: Madman on 31 August, 2005, 20:51:43
FunScriptV8.lua:282: attempt to index global `AllowBanishesUnReg' (a nil value)Thanks TimeTraveller 4 report, Package updated...
Only needed is TableSettings.ini
Or if you want u can use the !funprofiles cmd..
Title:
Post by: Bobby1999 on 31 August, 2005, 21:44:55
No errors showing here running 8.5
Title:
Post by: Jitway on 05 September, 2005, 21:07:18
Just keeps getting better. Keep up the superb work. :D
Title:
Post by: Blackribbon on 06 September, 2005, 20:24:41
I can't get the external Stabbot to work. Everything exept stabbing work with the bot. So you can get amount of deaths but you can't stab anyone.

Thanx for a great script anyway.
Title:
Post by: Madman on 07 September, 2005, 00:19:06
QuoteOriginally posted by Blackribbon
I can't get the external Stabbot to work. Everything exept stabbing work with the bot. So you can get amount of deaths but you can't stab anyone.

Thanx for a great script anyway.

Have u changed
["UseInbuiltStab"] = 1,
to
["UseInbuiltStab"] = 0,
?
So Funscript dont mess with it...

If it still dont work.. i'll check it..


*Edit*

RightClick updated, fix a bug with RR...
Package updated...
Only file needed is FunRightClick.lua
Title:
Post by: Blackribbon on 07 September, 2005, 07:08:14
I had changed the

["UseInbuiltStab"] = 1,
to
["UseInbuiltStab"] = 0,

But it doesn't make any difference. I don't get any error messages from PtokaX niether.
Title:
Post by: Madman on 07 September, 2005, 20:54:18
QuoteOriginally posted by Blackribbon
I had changed the

["UseInbuiltStab"] = 1,
to
["UseInbuiltStab"] = 0,

But it doesn't make any difference. I don't get any error messages from PtokaX niether.

Found it...
It was a miss placed return 1
Package updated, and only file needed it FunScriptV8.lua
Check site for file..
Title:
Post by: Blackribbon on 27 October, 2005, 15:07:22
Works perfectly now, thanx for great script.
Title: Re: FunScript - Lua5
Post by: Madman on 28 February, 2006, 04:20:35
Quote
Changelog for FunScript 8.6
-- Version 8.6
-- Removed: The uptime command
-- Added: RegTimer...Thanks to whoever made it ;)
-- Changed: The OnTimer stuff
-- Added: Login msg is now also sent to the user loging in
-- Added: "Hidden" !f command... Credit's to the bondock saint movie... =)
-- Added: "Hidden "!o in pm, thanks lua hub 4 help
-- Removed: Prefix in settings, using %p allowing !+(*&^%$#@ to work
-- Changed: All Timers moved to Timers.lua
-- Changed: The !ut command
-- Added: "hidden" !g =)
-- Fixed: Some bugs, 28.12.05
-- Fixed: Bug in banished command, 15.01.06
-- Removed: A,I,R from the brain command, but they still works, 16.01.06
-- Added: Binary talk, use !bin <on/off>, 17.01.06
-- Fixed: Some bugs in, Elite and Camle mode, 17.01.06
-- Fixed: Unkown bug in ToArrival, 19.01.06
-- Added: Family Guy nicks to NuttyyNick, 19.01.06
-- Added: FS v8.6 to hubdescription, 19.01.06
-- Added: Talkmode, used to execute Bin,Elite and AscII talk, 19.01.06
-- Added: NuttyTalk, removed some dupe code, 19.01.06
-- Added: OpOnly in settings, request by miago, 19.01.06
-- Added: Morse Talk, 19.01.06
-- Added: Hex Talk, 19.01.06

Updateting this thread since, i realesed 8.6 after the back up...

8.7 is on it's way allready.
Only change so far is that i added !nn fg, witch takes nutty nicks from a Family Guy table.
planning to add the same 4 futurama.

Now my question is, should I a make a anime/disney cmd 4 nuttynick, pulling all kind of names from diffrent Anime/disney series
OR
should i just add some other good cartoon tv serie cmd? Like simpson and so on?

Any thought about this is appriciated. =)
Title: Re: FunScript - Lua5
Post by: Jitway on 04 April, 2006, 22:26:04
Any Chance of this being converted to Lua 5.1?
Title: Re: FunScript - Lua5
Post by: Markitos on 04 April, 2006, 23:00:27
Quote from: Jitway on 04 April, 2006, 22:26:04
Any Chance of this being converted to Lua 5.1?
Yes...
Title: Re: FunScript - Lua5
Post by: Madman on 04 April, 2006, 23:34:03
It's been done allready...

http://ptxscriptdb.psycho-chihuahua.net/download.php?view.224

v8.7 is lua 5.1 compatible, dunno when it's finished tho... ;p
Title: Re: FunScript - Lua5
Post by: Jitway on 05 April, 2006, 00:32:11
Thanks a bunch. 8)
Title: Re: FunScript - Lua5
Post by: Madman on 15 May, 2006, 20:44:37
QuoteChangelog for FunScript 8.7
-- Version 8.7
-- Added: nn fg, uses nick from Family Guy, 13.02.06
-- Added: pairs to the table loops, (5.1), 30.03.06
-- Added: GetTableSize, table.getn or table.maxn, depending on lua version, 30.03.06
-- Changed: Moved Nuttynicks tabels to a seperate file, 05.04.06
-- Added: nn futurama, uses nicks from Futurama, 05.04.06
-- Fixed: Some small bugs, 05.04.06
-- Added: New nn to RC, 05.04.06
-- Fixed: A small Hex bug, 05.04.06
-- Changed: Upgraded Russian Roulette system, Thanks 2 Typhoon™ and Mutor 4 some code Help, 05.04.06
-- Removed: RouletteTable in settings, not needed anymore, 05.04.06
-- Changed: Made all Mode talks (Bin, AscII, NN and so on) turn off all Mode talks, 05.04.06
-- Fixed: User in elite talk mode showed normal text, Thanks to [MusicClub™]????P? to [MusicClub™]?F?‡K?_K???, 26.04.06
-- Added: school and work cmd, 15.05.06

As you noticed... the updates don't come very fast..
I'm out of ideas... so this might be the last version of FunScript
I'll fix bugs that comes with this version of course...
Title: Re: FunScript - Lua5
Post by: Markitos on 16 May, 2006, 10:39:07
Quote from: Madman on 15 May, 2006, 20:44:37
QuoteChangelog for FunScript 8.6
-- Version 8.7
-- Added: nn fg, uses nick from Family Guy, 13.02.06
-- Added: pairs to the table loops, (5.1), 30.03.06
-- Added: GetTableSize, table.getn or table.maxn, depending on lua version, 30.03.06
-- Changed: Moved Nuttynicks tabels to a seperate file, 05.04.06
-- Added: nn futurama, uses nicks from Futurama, 05.04.06
-- Fixed: Some small bugs, 05.04.06
-- Added: New nn to RC, 05.04.06
-- Fixed: A small Hex bug, 05.04.06
-- Changed: Upgraded Russian Roulette system, Thanks 2 Typhoon? and Mutor 4 some code Help, 05.04.06
-- Removed: RouletteTable in settings, not needed anymore, 05.04.06
-- Changed: Made all Mode talks (Bin, AscII, NN and so on) turn off all Mode talks, 05.04.06
-- Fixed: User in elite talk mode showed normal text, Thanks to [MusicClub?]????P? to [MusicClub?]?F??K?_K???, 26.04.06
-- Added: school and work cmd, 15.05.06

As you noticed... the updates don't come very fast..
I'm out of ideas... so this might be the last version of FunScript
I'll fix bugs that comes with this version of course...
[11:33] <FunScript> Error!   FunScript/Cfg.dat:42: attempt to concatenate field `RouletteTable' (a nil value)
[11:33] <FunScript> Error has been added to FunScript/ErrorLog.txt

You forgot -- Removed: RouletteTable in settings, not needed anymore, 05.04.06
Title: Re: FunScript - Lua5
Post by: Madman on 16 May, 2006, 14:01:14
That and an lua 5.1 error fixed, the script couldnt find the files...

Package updated, adn updated files avaible on site...
Title: Re: FunScript - Lua5
Post by: Madman on 13 September, 2006, 01:12:46
QuoteChangelog for FunScript 8.8
-- Version 8.8
-- Added !reverse (reverses typed message) Example:  <C??o?y†?> tset
-- Added !reverseall (reverses nick and message)  Example:  <?†y?o??C> tset
-- Added !switched (switches nick and message) Example: <test> C??o?y†?
-- Added !revswithed (switches and reverses nick and message) Example: <tset> ?†y?o??C
-- Added more profiles to support Leviathan & Robocop
-- Added: Support for lua 5.0.3, Madman

Thanks to C??o?y†? we now got a 8.8 version ppl ;)