PtokaX forum

Lua 5.3/5.2/5.1 Scripts (for PtokaX 0.4.0.0 and newer) => Finished Scripts => Topic started by: Madman on 09 October, 2007, 11:47:41

Title: FunScript API2
Post by: Madman on 09 October, 2007, 11:47:41
FunScript v9 is for PtokaX 0.3.6.0f and up.
For earlier PtokaX versions use FunScript v8.
PtokaX 0.3.6.0d to 0.3.6.0e1 is not supported due to some small changes in new lua API
Title: FunScript for the new API
Post by: Vipertje on 09 October, 2007, 14:57:49
okidoki, i cant update to the newest Ptokax because me Robo doesn't work there :( To bad that the RoboCop Project doesn't continue :(
Title: FunScript for the new API
Post by: Madman on 09 October, 2007, 21:51:06
Then wait for other ppl, to update there AIO scripts...
Title: FunScript for the new API
Post by: bastya_elvtars on 10 October, 2007, 20:19:18
Quote from: Vipertje on 09 October, 2007, 14:57:49
okidoki, i cant update to the newest Ptokax because me Robo doesn't work there :( To bad that the RoboCop Project doesn't continue :(

This is called bad luck. Live with it or be prepared to change.
Oh, and welcome to the world of closed-source bots (I hate repeating myself :P).
Title: Re: FunScript for the new API
Post by: GanjaMan on 06 January, 2008, 15:50:51
Greets,

I get this error when using ASCii commands - do to a user

--------------------------------------------------------------------------------
At 2008-01-06 - 15:44:27 an error was detected
Error:   FunScriptV9.lua:1814: attempt to call global 'SendToAll' (a nil value)
--------------------------------------------------------------------------------

what to do to fix this? Thnx for help.

GanjaMan
Title: Re: FunScript for the new API
Post by: GanjaMan on 06 January, 2008, 20:01:47
i have more errors, with insult and attack

--------------------------------------------------------------------------------
At 2008-01-06 - 20:03:56 an error was detected
Error:   FunScriptV9.lua:347: attempt to index field 'Core' (a nil value)
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
At 2008-01-06 - 20:04:40 an error was detected
Error:   FunScriptV9.lua:370: attempt to index field 'Core' (a nil value)
--------------------------------------------------------------------------------
Title: Re: FunScript for the new API
Post by: Tw?sT?d-d?v on 06 January, 2008, 20:48:12
Hopefully You are using the right hubsoft Version  (From 0.3.6.0d) ? i think

my advice to you is check your settings in the settings.ini making sure you have ascii turned on ... or download again and do a fresh install
ive just got the script and all works fine here with latest beta build

[19:41:37]
         ??? ?.(*?.?( ?.? ?.??)?.?*).?? ??
    ????*?.?*??? Tw?sT?d-d?v?l ???*.??.?*? ??
        ????*?.? Just   Farted!  .??.?*? ??
             ??? ?.(?.??(?.?* *?.?) ?.?).?? ??
[19:42:03] Tw?sT?d-d?v?l just exploded
          * pop                     *          ,                         *pop
                                        `._.'              *
                            *     :    ~-=*=-~
                   *     *       `._ ,'  ,'_`.    *
                            *  ~-=+=-~    '              *                       *pop
                     *          ,'_`. `.: _ :.'  * ,. ,
                 *        `.\!/,' :   ::`._.'::   `\_/'
   *  pop              `._,'  - =FEK OFF BANG=---~~,--*--'
                   ~-+-~  ,'/!\`.     ::.'_`.::  , /_\ ,                     *                        *
              *  *  ,'_`. _\/_    \!/  .': _ :`.   ' ' `
                          /\    -=x=-            *             *                          *
   *                           *  /!\   *
                    *   *                    *            * pop               *
          *                        *                                *                   *pop
[19:47:34] <FunScript> This hub [euro-op] runs FunScript Version 9.0 made by Madman



Version: PtokaX DC Hub 0.4.0.0RC4a built on Jan  6 2008 03:53:51
Uptime: 0 days, 2 hours, 35 minutes
Users (Max/Actual Peak (Max Peak)/Logged): 2500 / 1 (141) / 1
Users shared size: 1850970364134 Bytes / 1.68 TB

Title: Re: FunScript for the new API
Post by: GanjaMan on 07 January, 2008, 19:32:20
I did a fresh install, double-checked the settings, still same errors.
Title: Re: FunScript for the new API
Post by: Tw?sT?d-d?v on 07 January, 2008, 19:48:15
I found the 3 errors
Line 1814

SendToAll(GetNames(ReadTxt(AscIICmds[cmd][1]))) return true

Should be

Core.SendToAll(GetNames(ReadTxt(AscIICmds[cmd][1]))) return true

also line 347

Core.Core.SendToAll(msg) CleanMem() return true

Should be

Core.SendToAll(msg) CleanMem() return true

Line 370

Core.Core.SendToAll(msg) CleanMem() return true

Should be

Core.SendToAll(msg) CleanMem() return true
Title: Re: FunScript for the new API
Post by: Tw?sT?d-d?v on 07 January, 2008, 19:55:01
After looking though script again i found a few more typos
Attached is (hopefully) a fixed version
Title: Re: FunScript for the new API
Post by: GanjaMan on 07 January, 2008, 21:16:06
thnx a million! working :)
Title: Re: FunScript for the new API
Post by: Madman on 07 January, 2008, 21:27:56
Rar updated, lua file uploaded to my server and TD credited =)
Title: Re: FunScript for the new API
Post by: Tw?sT?d-d?v on 07 January, 2008, 21:36:27
Nps  Glad i could finaly help some1  ;D :P
Title: Re: FunScript for the new API
Post by: Madman on 16 April, 2008, 20:11:52
When updateing to any version after 0.4.1.0RC3, you need to change the value Folder to Core.GetPtokaXPath().."scripts/FunScript"

I'm to lazy to upload such a small change...

//PPK EDIT
Fixed to what folder must be changed to work correctly.
Title: Re: FunScript for the new API
Post by: 2Ceedz on 21 April, 2008, 07:22:35
Hello,
I am using Leviathan 4.0, ptokax 0.4.0c, freshstuff, and funscriptv9 (with lua fix).  I am updating, so was testing and noticed on the ascii right click, there is a 'you do'  "tab", but not a 'do to a user' "tab".

I have moved the script up and down in the ptokax scripts GUI, but nothing changes.  If anyone can help i would greatly appreciate it, as this is the last script to "test" before opening updated hub.

I am not a scripter, though i can usually fix my own errors.  I looked in funrightclick.lua  and there are the lines for the 'Do to a User' ascii commands. 

--Core.SendToNick(curUser.sNick, "$UserCommand 1 2 " ..tSettings.zMenu..
"\\AscII Commands\\Do to a User\\Command$<%[mynick]> !command %[nick]&#124;")
   Core.SendToNick(curUser.sNick, "$UserCommand 1 2 " ..tSettings.zMenu..
"\\AscII Commands\\Do to a User\\User, I Got PC Problems$<%[mynick]> !pcprobpic %[nick]&#124;")


As i do not know lua scripting very well, i would not know where to start if it is a bug.  I know Leviathan (3.0) used to not ''like'' freshstuff, as it needed a fix to work correctly, and didnt know if maybe that could be the issue here.

Thanks to Madman, T-D, and everyone else in making this script a "necessity" (even without 'Do to a User' ascii)!!
Title: Re: FunScript for the new API
Post by: Tw?sT?d-d?v on 21 April, 2008, 19:43:17
Try clicking on a Users Nick (Not the hub tab) and see if "Do To A User" appears   ;D
Title: Re: FunScript for the new API
Post by: 2Ceedz on 21 April, 2008, 23:36:52
LoL,  yeah  now i feel stupid;  i was editing the menu's and finally got it where i want it.  Thanks m8!!!
Title: Re: FunScript for the new API
Post by: Madman on 22 April, 2008, 21:50:05
Uploaded a updated FunScriptV9.lua to server, with these changes


-- Changed: Folder value, due to change of work folder in 0.4.1.0RC3
-- Changed: Folder value again, 21.04.08
-- Fixed: bug in funprofiles, thanks Giorgos for report, 22.08.08
Title: Re: FunScript for the new API
Post by: 2Ceedz on 23 April, 2008, 02:30:32
Thanks for the update.  I have a little issue with AscII  (hope im not just being 'stupid'-like i was in earlier post).

I have been using Funscript for years (first script i got with ptokax), and have added AscII to right click before successfully.  All i had to do then was copy .txt files into the AscII folder, and add the commands/menu to FunRightClick.lua

I have almost successfully redone with the new FunScript, although none of the AscII that i added is showing in hub.  All of the original FunScript AscII is showing fine

Quote

<test> !ismkpic

test goes for some
         @...@         @...@         @...@
       (-------)     (-------)      (-------)
      _?(      )?_  _?(       )?_  _?(       )?_
        ^^^^^         ^^^^^         ^^^^^
         BUD   -        WEIS    -       ER

<test> !bambipic

My question is, is there something else (or what do i need to do) to get my AscII to show in hub? (i have added .txt files to /AscII/ and right click menu is showing beautifully).
Thanks, love the script!!

Title: Re: FunScript for the new API
Post by: Madman on 23 April, 2008, 12:15:33
Actually yes....
I havent made it so easy to add AscII, but it's possibole. You need to edit the FunScriptV9.lua file first.
Search for function AscIIFunc(curUser, data, cmd) and you will see an table with the las entry looking like this["applaudpic"] = { "Applaud", true, "No need to applaud your self", },
And an explenasion... how ever, current version has nil instead off false

-- Cmd = { "1st", 2nd, "3rd", }
-- 1st = The text file
-- 2nd = If it's vic cmd then true, it it's not then false
-- 3rd = Only needed if 2nd is true, send this text when user is doing the cmd on them self


but gtg now, hope that's enough info
Title: Re: FunScript for the new API
Post by: 2Ceedz on 23 April, 2008, 17:04:13
Perfect, thanks m8!!  :D 

Once again, Love your script, and cannot thank you enough for the info!!
8)
Title: Re: FunScript for the new API
Post by: Madman on 19 July, 2008, 23:15:25
Quote
Changelog for FunScript 9.1
-- Changed: Folder value, due to change of work folder in 0.4.1.0RC3
-- Changed: Folder value again, 21.04.08
-- Fixed: bug in funprofiles, thanks Giorgos for report, 22.06.08
-- Fixed: old bug in rightclick, thanks Rag3Rac3r for report, 19.07.08

More offical release then the last updates.... ;p
Title: Re: FunScript for the new API
Post by: kalle370 on 21 July, 2008, 15:20:26
Heey i get this: FS v9.1 in to the hub description.

can i remove it ??

Thanks and wary nice work :D
Title: Re: FunScript for the new API
Post by: Madman on 22 July, 2008, 12:12:42
Yes, you can, find

if string.find(SetMan.GetString(5), "FS v") then
local TempDescr = SetMan.GetString(5)
local NewDescr = string.gsub(TempDescr, "FS v(.*)", "FS v" ..string.sub(Version,1,3))
SetMan.SetString(5,NewDescr)
else
SetMan.SetString(5,SetMan.GetString(5).. " FS v"..string.sub(Version,1,3))
end

it's line 58-64, either comment or remove that part
Title: Re: FunScript for the new API
Post by: reider666 on 16 August, 2008, 12:10:48
Heloo.
I have this error:
--------------------------------------------------------------------------------
At 2008-08-15 - 19:43:56 an error was detected
Error:   ...imui/ptokax/scripts/FunScript/Connect.dat:15: attempt to index a nil value
--------------------------------------------------------------------------------
I use ptokax 0.4.1.1
Script works but this error  :(
Title: Re: FunScript for the new API
Post by: Madman on 17 August, 2008, 18:19:21
Fixed, Connect.dat can be found on my site.
Found some more errors

Package has NOT been updated with latest fixes.

Will do that later...
Title: Re: FunScript API2
Post by: Madman on 19 August, 2008, 08:45:28
I started working on Version 10.
So far it's only code improvements.
However, I start from scratch beacuse i'm changeing the file layout.
And also Settings.ini has been rewritten, and TableSettings.ini has been merged with it.

So if you have any thing you have written, that you wish to add, post it here, and i'll add it later on.
However, script is not opened for request, until AFTER i rewritten in.
And that's beacuse it's so big...

O and btw, it's more flexible, on what to load, for example. CustomCmds, is at defualt off, and has to be enabled to work.
Same will go for groups of Cmds, and TalkModes
Title: Re: FunScript API2
Post by: Madman on 09 October, 2008, 19:09:39
Okey.. Another news update. Commands has been grouped in to

I was thinking and insted of haveing the commands groped in Do To a User and You Do menus in the rightclick.
That i use the new cmd groups instead, of course with a nicer title, like VicCmds would be maybe Victim commands or something..

What do you guys think? Is that an good idea or should i keep the old menu layout?
Title: Re: FunScript API2
Post by: Madman on 06 December, 2008, 17:30:16
Didn't get any response on last question..
So i changed it anyway...

And now i have a new question...

There been some talk about ppl translateing FunScript to their language.
And just today i got asked if i could add Multilanguage...
Now... Since there is SO MANY LINES, that needs to be changed for that, it WON'T be added UNLESS, people respond, and tell me that they want it.
And might even want to help with the translateing...
Title: Re: FunScript API2
Post by: ?StIfFLEr?? on 07 December, 2008, 06:30:40
hello madman i just came across with your script and its awesome i need a small help if you can
actually the reg profile can use "to do"  commands where as me being master cant user those commands can u have a look at it please and let me know what to do i used ur updated right clik and connect files from your site but i get only three right click options after the main right click
you do
ascii
funversion
thats it!!!
please can you help me
Title: Re: FunScript API2
Post by: Madman on 07 December, 2008, 09:04:22
If you don't get the OpCommands, then your profile isn't set to 1 in TabelsSettings.ini > AllowedProfiles
Title: Re: FunScript API2
Post by: ?StIfFLEr?? on 07 December, 2008, 14:26:25
Quote--Core.SendToNick(curUser.sNick, "$UserCommand 1 2 " ..tSettings.zMenu.. "\\Do to a User\\Command$<%[mynick]> !command %[nick]&#124;|")
      Core.SendToNick(curUser.sNick, "$UserCommand 1 2 " ..tSettings.zMenu.. "\\Do to a User\\Slap User$<%[mynick]> !slap %[nick]&#124;|")
      Core.SendToNick(curUser.sNick, "$UserCommand 1 2 " ..tSettings.zMenu.. "\\Do to a User\\Love User$<%[mynick]> !love %[nick]&#124;|")
      Core.SendToNick(curUser.sNick, "$UserCommand 1 2 " ..tSettings.zMenu.. "\\Do to a User\\Hug User$<%[mynick]> !hugs %[nick]&#124;|")
      Core.SendToNick(curUser.sNick, "$UserCommand 1 2 " ..tSettings.zMenu.. "\\Do to a User\\Kiss User$<%[mynick]> !kisses %[nick]&#124;|")

these are the command types that are not being showed on my right click is it has something to do with which client i am using
Title: Re: FunScript API2
Post by: Madman on 08 December, 2008, 10:08:30
Uhm.. just guessing here...
You only have You Do, OpCommands and FunVersion, on your rightclick...
Witch means that you click on the hub tab...
Try clicking a user, and you will get Do to a user...
Title: FunScript v10.26 released
Post by: Madman on 08 December, 2008, 13:27:31
Atlast! Version 10 is finally here!
First of... Everything is new, so no old files are vailed anymore!

Before you start reading the Changelog i posted, you should know that, it only contains the changes, you need to know.
However in the package there is a file called  Changelog.v10.txt witch covers ALL my work on v10 step by step.
EasyChangelog is the one posted bellow. It covers, the NEW Added stuff, the Changed and Removed OLD stuff, and most of the Fixed Stuff

And since Settings.ini has been rewritten, you need to set it up again.
Also note that all cmds are disabled by default...
And finnaly... The package is now in .ace insted of .rar

Quote-- Easy overview of Changelog of 10 to 10.26
-- Removed: TabelSettings.ini, merged with Settings.ini
-- Changed: All setttings now in tConfig table
-- Changed: ProtectedUser and AllowedNicks has new layout
-- Changed: AllowBanishesUnReg,ThrowbOpUnreg merged with AllowBanishes,ThrowbOp
-- Changed: ProfileNames is now changed to ProfileNumbers
-- Changed: Version now has build nr and date
-- Changed: Swtiched change to true/false insted of 1/0
-- Changed: Size unit code rewriten
-- Changed: Switches now i a tSwitches table
-- Removed: Anti-Empty line in ChatArrival
-- Added: IsOdd for switches checking
-- Fixed: Config bug in Chatter.txt
-- Added: Enable table in tConfig
-- Added: CustomCmds key in Enable table
-- Changed: Commands has been grouped and moved to seperate files
-- Changed: Rewrote CustomCmds code some
-- Fixed: Small bug in CustomCmds
-- Changed: Rewrote ChatArrival some
-- Changed: tCmsd lay out in Cmd files
-- Added: GetVic and LodVicTxt to Functions.dat
-- Changed: Cmds now uses GetVic
-- Added: Loading of Functions.dat if Vic or Throw files are enabled
-- Added: VicTxt to load Functions.dat
-- Added: Loadcodes for adding Cmd files
-- Changed: Rewrote VicTxtCmds.lua
-- Removed: UseThrowCode,UseInbuiltStab in Settings.ini
-- Added: Enabled for HiddenCmds,ThrowCmds,VicCmds,StabCmd,TalkMode and VicTxtCmds
-- Changed: StabBot files modded to fit new layout
-- Fixed: Some bugs in StabBot
-- Removed: ChatArrival in StabBot, cmds moved to tCmds
-- Removed: funprofiles,readsettable,funcfg,regbot,pu cmds
-- Changed: Rewrote cleanerror,readerror,shpwpu
-- Changed: Updated CleanMem()
-- Changed: Rewrote i,r cmd for brain cmd
-- Fixed: OLD typo in RoulletteCmds.lua
-- Changed: curUser to user, all files and cmd updated
-- Changed: makeelite and uneliteall rewritten some
-- Added: Enable for CamUserCmds,DrunkUserCmds
-- Changed: Rewrote OpOnly code
-- Fixed: Bugs in TalkModes.lua
-- Added: More functions in TalkModes to make less code repeat
-- Fixed: More old bugs, and some new ones
-- Changed: NuttyNicks numbers, Fix is now 2, and On is 1
-- Fixed: Small bug in DrunkUserCmds.lua
-- Fixed: Bug with off cmd in TalkModes.lua
-- Fixed: Bug in IsOff
-- Fixed: Bug in CamelTalk
-- Changed: Rewrote Matrix code with bugs
-- Fixed: Bugs in Matrix code ;p
-- Fixed: Bugs with CutomCmds
-- Added: More links to bored cmd
-- Added: Functions in TableCmds.lua for less code
-- Changed: user,share,maxusers,bot,minshare,eflood = fsusers,fsshare,fsmaxusers,fsbot,fsminshare,fsflood
-- Removed: banish cmd
-- Changed: Enable key MUST be same as filename in Settings.ini
-- Fixed: Bug with if statement when checking functions cmds
-- Changed: Some Enable keys
-- Removed: Not reciving data in YouDoFunc anymore
-- Fixed: Allot of return true bugs in many cmd files
-- Fixed: New bugs in TextCmds.lua
-- Changed: Table layout of Animal.txt
-- Added: AddDescr key in Settings.ini
-- Changed: Cmd keys now in Enable.Cmds
-- Changed: LogInOutProfiles splitted to two tabels
-- Removed: HubValues code in OnStartup
-- Changed: Connect.dat was renamed to Welcome.lua
-- Changed: zMenu was changed to Menu
-- Changed: FunRightClick.lua was rename to RightClick.lua
-- Changed: Rightclick is now in tLeftClick talbe
-- Added: tStabClick for stab cmds
-- Added: SendStab function in RightClick.lua
-- Fixed: Bug in for loop in RightClick.lua
-- Changed: StabBot cmd settings are now in Settings.ini
-- Changed: UserConnected,UserDisconnectd is now SBUserConnected,SBUserDisconnected in StabBot
-- Removed: Reg/OpConnected from StabBot, handles by FunScript
-- Changed: Improved Op limits in StabBot
-- Removed: suicide, toa,tele cmd, we got die,wc,phone instead
-- Added: A menu 'Seperator' at 20 cmd in rightclick
-- Added: BuildCustomRight for sending customcmds to rightclick (Built at script start)
-- Changed: Version var to sFSVersion
-- Added: Added more moviequotes
-- Added: Advanced drunk code
-- Added: AdvancedDrunk key in Settings
-- Added: Levelup for advanced drunk (user gets more drunk, automaticly)
-- Added: Online check for me in OnError
-- Changed: layout in Settings.ini, comments are now above key, insted of after key
-- Removed: Banish code code from tConfig
Title: Re: FunScript API2
Post by: ?StIfFLEr?? on 08 December, 2008, 15:21:19
thanks a lot madman.
awesome script once again.

would surely like to try 10
read a lot of changes.
Title: Re: FunScript API2
Post by: ?StIfFLEr?? on 08 December, 2008, 15:32:33
thanks a lot for your previous help was just checking the options but still the OPCOMMANDS as per fuctionright click are missing.
Title: Re: FunScript API2
Post by: Madman on 08 December, 2008, 15:46:14
OpCommands should be there..
Aslong your profile is set to 1, it should be nothin to it..
Title: Re: FunScript API2
Post by: ?StIfFLEr?? on 09 December, 2008, 13:24:14
when will be the link for version 10 be available
Title: Re: FunScript API2
Post by: Highlander Back on 09 December, 2008, 16:14:15
when you look at post from mr madman you see a link to his website where al scripts from him can be found
Title: Re: FunScript API2
Post by: Madman on 09 December, 2008, 19:50:04
Quote from: Madman on 06 December, 2008, 17:30:16
Didn't get any response on last question..
So i changed it anyway...

And now i have a new question...

There been some talk about ppl translateing FunScript to their language.
And just today i got asked if i could add Multilanguage...
Now... Since there is SO MANY LINES, that needs to be changed for that, it WON'T be added UNLESS, people respond, and tell me that they want it.
And might even want to help with the translateing...

Since we are on a new page.. I post it again...
Title: Re: FunScript API2
Post by: ?StIfFLEr?? on 10 December, 2008, 10:04:55
Hey Madman,
I recently came across this fun script and let me tell its the best script to keep the main chat and users active.
Don't care about others but i love this script of yours.
Language by default English RoCKS.
it WON'T be added UNLESS, people respond, and tell me that they want it.
And might even want to help with the translateing...

Dont Know about translating as i can understand english.
But yes this forum will be kept alive with more ideas If you dont mind me sharing them.

Moreover when you look at post from mr madman you see a link to his website where al scripts from him can be found
I searched over there but did not found the version 10
Madman Please I need to use the newer version i am waiting for some more fun.
Thanks for creating this script.
Can we add ASCII that we have created in the script.
It would be fun if we have that command in right click to add ASCII.
Title: Re: FunScript API2
Post by: Madman on 10 December, 2008, 13:47:19
It's found here My Site > LuaSite > API 2 > FunScript > Funscript.v10.26

What do you mean by :
Quote from: †StIfFLEr†™ on 10 December, 2008, 10:04:55
Can we add ASCII that we have created in the script.
It would be fun if we have that command in right click to add ASCII.
you want a command to add an ASCII file from mainchat?
So anyone with the profile rights can add profile, instead of just the hub owner?
Title: Re: FunScript API2
Post by: ?StIfFLEr?? on 10 December, 2008, 16:26:14
No only op having the option to add ASCII in right click.
Is it possible?
Title: Re: FunScript API2
Post by: ?StIfFLEr?? on 10 December, 2008, 16:28:42
Thanks a lot for the version 10 will be using it soon.
Title: Re: FunScript API2
Post by: ?StIfFLEr?? on 10 December, 2008, 17:04:57
--------------------------------------------------------------------------------
At 2008-12-10 - 21:26:33 an error was detected
Error: .../gigabyte limits/gigabyte alpha/scripts/FunScript/Cmds/CamelUserCmds.lua:35: ')' expected near 'vUser'
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
At 2008-12-10 - 21:29:21 an error was detected
Error: .../gigabyte limits/gigabyte alpha/scripts/FunScript/Cmds/CamelUserCmds.lua:35: ')' expected near 'vUser'
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
At 2008-12-10 - 21:31:20 an error was detected
Error: ...gigabyte alpha/scripts/FunScript/Cmds/VicTxtCmds.lua:21: attempt to call global 'GetVic' (a nil value)
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
At 2008-12-10 - 21:32:10 an error was detected
Error: ...s/gigabyte alpha/scripts/FunScript/Cmds/ThrowCmd.lua:4: attempt to call global 'GetVic' (a nil value)
--------------------------------------------------------------------------------

i am getting following errors plz let me know what i have to do
Title: Re: FunScript API2
Post by: Madman on 11 December, 2008, 07:51:40
Quote
Changelog for 10.27
Fixed: missing .. at vUser.sNick in CamelUserCmds, reported by †StIfFLEr†™
Fixed: Profile bug in ThrowCmd

GetVic nil error is only posibole if Functions.dat is not in scripts\FunScript

As for the cmd. I think we are saying the same thing.
A cmd to add AscII through mainchat, and only ops are allowed. (i.e only the profiles setted up in the config later)
Title: Re: FunScript API2
Post by: ?StIfFLEr?? on 11 December, 2008, 11:09:20
Madman there are some errors i am facing would like to discuss with you.
I am unaware whether its my error or scripts error please have a look at it
--------------------------------------------------------------------------------
At 2008-12-11 - 15:02:45 an error was detected
Error: ...abyte alpha/scripts/FunScript/Cmds/CamelUserCmds.lua:11: attempt to index global 'tCamelUser' (a nil value)
--------------------------------------------------------------------------------

this is when i used camel command.
--------------------------------------------------------------------------------
At 2008-12-11 - 15:13:56 an error was detected
Error: ...gabyte alpha/scripts/FunScript/Cmds/ErrorSetCmds.lua:49: attempt to concatenate local 'name' (a boolean value)
--------------------------------------------------------------------------------

for show protected users
--------------------------------------------------------------------------------
At 2008-12-11 - 15:21:20 an error was detected
Error: ...abyte alpha/scripts/FunScript/Cmds/DrunkUserCmds.lua:129: bad argument #1 to 'RemoveTimer' (number expected, got nil)
--------------------------------------------------------------------------------

When using undrunk all command




There are many right click comands that i have set to true in the settings file so as to see the commands
These are the right click command which are giving me no response after using them.
1.FunScript--->table..
2.FunScript--->victims
3.Funscript--->ASCII
4.Funscript--->the animals, talk, you do
Title: Re: FunScript API2
Post by: Madman on 11 December, 2008, 12:49:46
I won't be home untill late tonight.
But i can confirm thoose errors... i'll fix them when i come home.

However, what do you mean by "many right click comands that i have set to true in the settings file"
Because, if tConfig.Enable.RightClick is true, any key under tConfig.Enable.Cmds that is true should show up in RC after connect
Title: Re: FunScript API2
Post by: ?StIfFLEr?? on 11 December, 2008, 12:55:45
Actually i can see the commands in my right click but i When i use them there is no response.
There is nothing happening not even any error reports.
Title: Re: FunScript API2
Post by: Madman on 11 December, 2008, 20:33:14
Ahh.. i see... then my guess is that you have script blocking mainchat, when cmds entred not belong to that script.
So try moveing FunScript to the end of script list.

*EDIT*
Quote
Changelog for version 10.28
Fixed: table typo in CamelUserCmds, reported by †StIfFLEr†™
Fixed: for loop error in ErrorSetCmds, reported by †StIfFLEr†™
Fixed: Timer errors in DrunkUserCmds, reported by †StIfFLEr†™
Changed: code improvment in DrunkUserCmds
Title: Re: FunScript API2
Post by: ?StIfFLEr?? on 12 December, 2008, 12:43:47
Error reports have been working fine now madman.
But still even after i have kept only single script on i find "victims"
not working its not giving any response in main chat.
Please can u guide me if i am doing any mistake in the script.
I kept all the options true in the settings file.
Title: Re: FunScript API2
Post by: Madman on 12 December, 2008, 21:53:23
That's really odd..
If you only have FunScript on, and have tConfig.Enable.Cmds.BasicCmds and tConfig.Enable.RightClick it should work.
If it dosent, try typing !funversion in main, if that does give a respons, it's a client error.
Title: FunScript 10.29 and 10.30 Released
Post by: Madman on 25 December, 2008, 13:58:34
Quote
changelog for version 10.29
-- Fixed: bug with sending intro at disconnect, shown by tarantula
-- Fixed: bin cmd not beeing oponly in rightclick
-- Fixed: Missing SayHi in UserConnected, Enable.Welcome didn't do anything ;p
-- Fixed: timer nil error in TalkModes, reported by HenkeDc
-- Added: Addver version numbers to error reporting
-- Changed: Better off code, when useing un*all, * beeing elite/camel/drunk
-- Fixed: bug with cmd block when not belong to funscript, or cmdfile is disabled
*Edit*
Small fix from 29...
Quote
changelog for version 10.30
-- Fixed: Missing then and end with customcmd, reported by HenkeDc
Title: Re: FunScript API2
Post by: ?StIfFLEr?? on 05 January, 2009, 10:10:18
hello madman.
sorry for being out of the forum for few weeks.
Actually i have a problem and i suppose its with the client that i am using.
I am currently running fun script 10.30v on StrongDC++ 2.21 .
There are few right clicks that i am unable to get results.
Can u suggest a appropriate client where in i can be able to test the funscript properly.
Please reply as soon as you be free.
Title: Re: FunScript API2
Post by: Madman on 05 January, 2009, 19:00:09
I'm useing Zk++ 0.666, and FunScript works prefect
Title: Re: FunScript API2
Post by: ?StIfFLEr?? on 05 January, 2009, 20:15:26
can you please provide me with the link of the setup.
Title: Re: FunScript API2
Post by: Madman on 06 January, 2009, 22:54:15
http://zkplusplus.webs.com/download.htm
Title: Re: FunScript API2
Post by: ?StIfFLEr?? on 08 January, 2009, 09:58:31
Thanks Madman  i have started using the client and started checking the script i have been comming up with some problems.
very first.
Quote--------------------------------------------------------------------------------
At 2009-01-08 - 14:25:45 an error was detected
Error:   ...limits/gigabyte tata/scripts/FunScript/Functions.dat:50: bad argument #1 to 'gsub' (string expected, got table)
Running PtokaX 0.4.0.0 and FunScript v10.30 @ 25.12.08
--------------------------------------------------------------------------------
and still some commands are not working on right click like the amimal and ascii commands i am pasting the changes i made in settings file please let me know if i have went wrong somewhere.
Quote-- Config file for Funscript

tConfig = {
   ["Bot"] = {
      -- Name of the bot
      ["Name"] = "FunScript",
      -- The description
      ["Descr"] = "FunScript " ..sFSVersion.. " made by Madman",
      -- Hmmm...
      ["Email"] = "You think a bot got an email?",
   },
   -- The bot's name when using !pill command
   -- Some nicks you can use instead Neo, Morpheus, Trinity, Tank, Dozer, Switch, Apoc, Mouse
   ["MatrixBot"] = "Morpheus",
   -- Agent Smith, Agent Brown, Agent Jones
   ["Agent"] = "Agent Smith",
   -- Be sure to write your nick here!!
   ["HubOwner"] = "Madman",
   --  Unit the shareamount should be shown in, KB, MB, GB or TB
   ["UnitCount"] = GB,
   -- Time for drunkmode and nuttynicks, standard is 10 min
   ["MinTimer"] = 10,
   -- Time for chatpart, standard is 1 hour
   ["ChatTime"] = 1,
   -- Should the bot chat? standard is true witch is on
   ["Chat"] = true,
   -- The name on the FunScript menu
   ["Menu"] = "FunScript",
   -- Reg the bot in userlist? false is no, true is yes, true is standard
   ["RegTheBot"] = true,
   -- Adds FS vX in Hub Description
   ["AddDescr"] = true,
   -- Sets protecteduser on/off true is on and is standard
   ["Protect"] = true,
   -- Set to true if you want to limt the use of this script to only Ops, standard is false
   ["OpOnly"] = false,
   -- Set to false if you want to use old style drunk, when useing DrunkUserCmds
   ["AdvancedDrunk"] = true,
   -- Set to false if you want to be able to stab, attack, insult anything, not just online users, true is standard
   ["MustBeOnline"] = true,
   --==Russian Roulette==--
   -- Should users in hub know that someone is playing, set it to true
   ["NotifyRoulette"] = true,
   -- Should the bot say if the user survived every time user writes a number, true is yes
   ["NotifyRouletteLive"] = false,
   --==Russian Roulette==--
   --**Warning**----==ThrowCmd==----**Warning**--
   -- Throw function use on own risk, users might lose slots when thrown! and user might get pissed of
   -- Want to have 50% chance to throw your self? Then leave it on true
   ["RandomThrow"] = true,
   --**Warning**----==ThrowCmd==----**Warning**--
   ["Enable"] = {
      ["Cmds"] = {
      -- Set to true if you want to use the set of cmds, false is default
         ["CustomCmds"] = true,
         ["HiddenCmds"] = true,
         --**Warning**----==ThrowCmd==----**Warning**--
         -- Throw function use on own risk, users might lose slots when thrown! and user might get pissed of
         -- Set to true if you want to use the throw code. Standard is false!
         ["ThrowCmd"] = true,
         --**Warning**----==ThrowCmd==----**Warning**--
         ["VicCmds"] = true,
         ["VicTxtCmds"] = true,
         ["ErrorSetCmds"] = true,
         ["BrainCmds"] = true,
         ["PillCmds"] = true,
         ["RoulletteCmds"] = true,
         ["EliteUserCmds"] = true,
         ["CamelUserCmds"] = true,
         ["DrunkUserCmds"] = true,
         ["TalkModes"] = true,
         ["TableCmds"] = true,
         ["BasicCmds"] = true,
         ["YouDo"] = true,
         ["TextCmds"] = true,
         ["AscIICmds"] = true,
         ["AnimalCmds"] = true,
      },
      --**Warning**--
      -- This key is CaSe SeNsEtIvE, Words must be written exactly as in Comment
      -- FunScript/StabBot, use FunScripts stab cmd or the StabBot file,
      ["StabCmd"] = "FunScript",
      -- Enable VicTxtCmds for Funscripts stabcmd
      --**Warning**--
      -- Enable random/custom login msg when users/ops enters, true is on, false is off, true is standard
      ["Login"] = false,
      -- Enable random/custom login msg when users/ops leaves, same as above
      ["Logout"] = false,
      -- Enable the sending off rightclicks on connect
      ["RightClick"] = true,
      -- Say hello to user
      ["Welcome"] = false,
   },
   ["StabBot"] = {
      --//the cmd to invoke the stab.
      ["Cmd1"] = "stabs",
      --//the cmd to invoke the total count.
      ["Cmd2"] = "deaths",
      --//the cmd to invoke the total usage.(how many times each user has used the command)
      ["Cmd3"] = "stabhappy",
      --//the cmd to invoke personal stats. (who you have stabbed and how many times)
      ["Cmd4"] = "mystabs",
      --//(ops or better only)turn the the bot on or off.
      ["Cmd5"] = "tgglbot",
      --//(ops or better only)turn the main chat stats on or off.
      ["Cmd6"] = "tgglmain",
      --// tells users what te commands are... + ops what Cmd5, Cmd6, Cmd8, & Cmd9 are...
      ["Cmd7"] = "shelp",
      --//ops may clear any. users only their own. (personal usage data only.. not death count or total usage)
      ["Cmd8"] = "clrstabs",
      --//(ops or better only)the time in seconds. limits users to 1 stab every x seconds.
      ["Cmd9"] = "setflood",
   },
   -- Add nicks on users that shouldnt be nutty nicked or drunk...
   -- Set to true to protect user
   -- All nicks should be lower cased
   ["ProtectedUser"] = {
      ["-=fakekiller=-"] = true,
      ["wildcat"] = true,
      ["[op]wildcat"] = true,
      ["madman"] = false,
   },
   -- Nicks that are allowed to do Nutty Nicks and drunk stuff
   -- Set to true to allow, false and user can't do NuttyNicks
   -- Case sensetive, if nick is TestUser, testuser won't work!
   ["AllowedNicks"] = {
      ["Madman"] = true,
   },
   -- Profiles that is allowed to do NuttyNicks and drunk stuff
   -- 1=on/0=off
   ["AllowedProfiles"] = {
      
  • = true, -- Master
          [1] = true, -- Operator
          [2] = false, -- VIP
          [3] = false, -- Reg
       },
       -- Profiles that are allowed to clean/read the errorlog and read config
       ["ConfigProfiles"] = {
          
  • = true,
          [1] = false,
          [2] = false,
          [3] = false,
       },
       --**Warning**----==ThrowCmd==----**Warning**--
       -- What profiles are allowed to throw ops
       ["ThrowbOp"] = {
          
  • = true, -- Master
          [1] = false, -- Operator
          [2] = false, -- VIP
          [3] = false, -- Reg
          [-1] = false, -- Users(unregged)
       },
       --**Warning**----==ThrowCmd==----**Warning**--
       -- Sets which profiles who gets a login/logout msg sent to all in main
       -- Only if LogInMsg and/or LogOutMsg is set to true
       ["LoginProfiles"] = {
          
  • = true,
          [1] = true,
          [2] = false,
          [3] = false,
          [-1] = false,
       },
       ["LogoutProfiles"] = {
          
  • = true,
          [1] = true,
          [2] = false,
          [3] = false,
          [-1] = false,
       },
    }
Title: Re: FunScript API2
Post by: ?StIfFLEr?? on 08 January, 2009, 10:04:08
Animal Command error
Quote[14:30:25] [ US ] [ 172.16.11.62 ] <?StIfFLEr??> !animalturkey Kai <---- when i clicked on right click to animalise (no result)
[14:30:31] <FunScript> Kai ain't animalized <------- when i tried to unamilaize it said this it means some error in animalize part


please take look into it as soon as possible and please let me know if i have to do some changes.

Title: Re: FunScript API2
Post by: Madman on 09 January, 2009, 00:13:42
Settings looks good.
i'll check on animlize,ascii and the error report tomorrow.
Title: Re: FunScript API2
Post by: ?StIfFLEr?? on 09 January, 2009, 14:04:29
Thanks Madman For having a look at it.
Title: Re: FunScript API2
Post by: Madman on 09 January, 2009, 15:00:06
QuoteChangelog for version v10.31
Fixed: Bug with Function.dat not loaded when it should
Fixed: Missing botname in !makeelite
Fixed: Wrong syntax when elited user wrote in main, reported by †StIfFLEr†™
Fixed: Typo when useing !unelite
Fixed: Bad checking of cmd key useing functions, reported by †StIfFLEr†™
Added: Missing Animal code
Fixed: Typo in rightclick on Animal

This should fix all your problems, seems it was a script error all along, but i missed it, all the times if tested it.
Client was never an issue...
Title: Re: FunScript API2
Post by: ?StIfFLEr?? on 09 January, 2009, 19:20:07
Thanks a TON for fixing my favorite script.
Will look forward for updates.
Thanks once again.
Title: Re: FunScript API2
Post by: ?StIfFLEr?? on 09 January, 2009, 19:29:02
there are some ascii that aint working well please can you take a look at it when you be free.
Quote[23:52:03] <?StIfFLEr??> !pcrobpic Mimarathi?
[23:51:20] <?StIfFLEr??> !fingerpic Mimarathi?
Title: Re: FunScript API2
Post by: ?StIfFLEr?? on 10 January, 2009, 07:19:41
Quote[11:34:38] <?StIfFLEr??> !weapons gun
hit user with a weapon giving the following result.
Title: FunScript v10.32 released
Post by: Madman on 11 January, 2009, 20:03:20
QuoteChangelog for version 10.32
Fixed: Functions.dat not loaded on AscIICmds (GetNames nil error)
Fixed: pcprobpic typo in rightclick, reported by †StIfFLEr†™
Fixed: fingerpic typo in AscIICmds, reported by †StIfFLEr†™
Fixed: weapon typo in TextCmds, reported by †StIfFLEr†™
Title: Re: FunScript API2
Post by: ?StIfFLEr?? on 12 January, 2009, 06:18:19
thanks a lot madman.
will have a look into updated script as soon as possible.
Thanks once again.
Title: Re: FunScript API2
Post by: TZB on 14 March, 2010, 18:10:22
QuoteWarning: this topic has not been posted in for at least 14 days.
Unless you're sure you want to reply, please consider starting a new topic.
Sorry :P But lets make the thread a bit lively.. :P
Madman currently i am using
Quote-- [[ Build 2 @ 20.08.08]] --
FunScript.v10.lua
So please excuse me if there is any further version am having few bugs with this version so came up here to post them.

In any Commands like if user is made a Animal,or made to be any Talk Mode when user chat on the main chat its no doubt replacing their text.. but if their chat on main chat starts with any hub commands or smiley for example ( :P, !me ) the script has no effect hence after and it can be easily crossed over..I know am bit bad in explaining so am giving a small demo of whats happening here :P

Quote[22:30:05] <.?Gigabyte?.> Roar like a lion Test, says T-z-B
[22:30:28] <Test> Raaaooor
[22:30:33] <Test> :p kkk
[22:32:14] * Test this is test line with command !me
[22:33:54] <Test> :test --[
[22:34:00] <Test> .test --| If the letter starts with any non alpha-numeric character adjoining a sentence without space the FUN IS LOST :P
[22:34:03] <Test> 'test --[

Title: Re: FunScript API2
Post by: Madman on 16 March, 2010, 19:45:22
I'll start with that is so old old.
current is 10.32   -- [[ Build 32 @ 11.01.09 ]] --
And that's is not a bug, that is a feature.
If i remove that, a user that has been animalized won't be able to use commands.

*Edit*
Or actully it is a bug, but it's good one, so I won't try to fix it ;p
Title: Re: FunScript API2
Post by: TZB on 17 March, 2010, 12:29:07
lmao...
Never mind :P but do post a manual to get the above request done by any individual if he wishes to have it :P

*** I DO WANT THE MANUAL :P
When i animal any user he shows he is smart by using that bug he talks and no animal done :P
Then i feel like a little moron :P
Do help :P
Title: Re: FunScript API2
Post by: Madman on 16 April, 2010, 20:37:41
Okey, here is manual.

1) Download attachment.
2) Enable the new NoCmdTalkModes switch in settings.

I made the update, beacuse someone asked for a dl link to FunScript, and my site is down...

QuoteChangelog for version
Fixed: bug in Text commands using text and nick as text
Fixed: bug with unanimalize cmd showing
Added: NoCmdTalkModes in Config, users in talkmode can't use cmd's requested by TZB
Changed: funversion cmd moved to mainfile, always work even when all cmd's are disabled
Title: Re: FunScript API2
Post by: TZB on 16 April, 2010, 21:09:03
QuoteAdded: NoCmdTalkModes in Config, users in talkmode can't use cmd's requested by TZB
Awesome :) Thanks a lot now its going to be a hell lot of fun...
Title: Re: FunScript API2
Post by: Mrkivi on 11 March, 2011, 18:00:25
where to get all scripts since site is down...no other dl location??  thx
Title: Re: FunScript API2
Post by: Psycho_Chihuahua on 11 March, 2011, 18:03:31
Quote from: Mrkivi on 11 March, 2011, 18:00:25
where to get all scripts since site is down...no other dl location??  thx

Have another look at Madmans first Post and READ it, you will see he has added the script as an attachment which can be downloaded  ::)
Title: Re: FunScript API2
Post by: Mrkivi on 11 March, 2011, 21:07:30
i do see that psycho  just need to get my hands on a older one since ..somehow  almost everything in that one is not working for me..still no error msges :/  time talking bot dont work for example..and join msg  dont work etc etc   ....................Not solved Cant get the chatter bot to work   tested whit new versions on win xp  win7 x86  win7x64    DiXBoT v2.1 Build 3017 for PtokaX 0.4.1.2  and funscript V10.33  but no chatter bot..and no error showing
Title: Re: FunScript API2
Post by: Madman on 27 March, 2011, 10:57:47
Have you tried to re-arrange the order of the scripts, perhaps putting at the bottom of the script list?
It might be some script blocking it.

As for older versions... Dunno if I can get any.
All older version are on the server, and it's standing in the basement.
I might have some copies on my external hardrive, I have had some HDD crashes, so alot of stuff is gone.
But the server has alla lua script's. But it's in the basement, and I don't have any room for it atm.