FunScript API2
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

FunScript API2

Started by Madman, 09 October, 2007, 11:47:41

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Madman

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
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

Vipertje

okidoki, i cant update to the newest Ptokax because me Robo doesn't work there :( To bad that the RoboCop Project doesn't continue :(

Madman

Then wait for other ppl, to update there AIO scripts...
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

bastya_elvtars

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).
Everything could have been anything else and it would have just as much meaning.

GanjaMan

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

GanjaMan

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)
--------------------------------------------------------------------------------

Tw?sT?d-d?v

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


GanjaMan

I did a fresh install, double-checked the settings, still same errors.

Tw?sT?d-d?v

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

Tw?sT?d-d?v

#9
After looking though script again i found a few more typos
Attached is (hopefully) a fixed version

GanjaMan


Madman

Rar updated, lua file uploaded to my server and TD credited =)
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

Tw?sT?d-d?v

Nps  Glad i could finaly help some1  ;D :P

Madman

#13
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.
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

2Ceedz

#14
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)!!

Tw?sT?d-d?v

Try clicking on a Users Nick (Not the hub tab) and see if "Do To A User" appears   ;D

2Ceedz

LoL,  yeah  now i feel stupid;  i was editing the menu's and finally got it where i want it.  Thanks m8!!!

Madman

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
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

2Ceedz

#18
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!!


Madman

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
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

2Ceedz

Perfect, thanks m8!!  :D 

Once again, Love your script, and cannot thank you enough for the info!!
8)

Madman

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
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

kalle370

Heey i get this: FS v9.1 in to the hub description.

can i remove it ??

Thanks and wary nice work :D

Madman

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
We suffer in silence, we lurk in the shadows, we kill in the night
Site currently down, ETA of returning online is 2099 ;p

reider666

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  :(

SMF spam blocked by CleanTalk