PtokaX forum

Archive => Archived 5.1 boards => Conversion Requests => Topic started by: -SkA- on 18 November, 2007, 20:22:46

Title: TopHubbers conversion
Post by: -SkA- on 18 November, 2007, 20:22:46
Could someone convert this script to new API, please?

Here (http://board.ptokax.ath.cx/index.php?topic=5860.0) you can find script.

Thank you in advance  :)
Title: Re: TopHubbers conversion
Post by: CrazyGuy on 19 November, 2007, 11:44:56
Attached the converted file.

Quote
   TopHubbers 2.03 - LUA 5.0/5.1 by jiten
   Updated to new PtokaX API by CrazyGuy
   Last Updated on November 19th 2007
   
   Small changes:
   -Some messages received in mainchat in previous versions,
     may now be send as PM. (done for conversion ease)

I have not tested it, so let me know if an error occurs  ;)
Title: Re: TopHubbers conversion
Post by: -SkA- on 23 November, 2007, 16:49:31
Hi CG:

Syntax TopHubbers2.03.lua:121: attempt to call global 'SetTimer' (a nil value)
Title: Re: TopHubbers conversion
Post by: CrazyGuy on 24 November, 2007, 05:28:34
Quote from: -SkA- on 23 November, 2007, 16:49:31
Hi CG:

Syntax TopHubbers2.03.lua:121: attempt to call global 'SetTimer' (a nil value)

found and fixed :)
The above attachment is updated
Title: Re: TopHubbers conversion
Post by: jiten on 24 November, 2007, 12:34:26
Hello all. Well, I had some spare time, some curiosity and tried to update this script to the new API.

It hasn't been thoroughly tested, but we'll see :P

And oh, thanks for your support, CrazyGuy!

Regards
Title: Re: TopHubbers conversion
Post by: CrazyGuy on 25 November, 2007, 14:50:04
QuoteAnd oh, thanks for your support, CrazyGuy!

No problem, good to see you back again  8)
Title: Re: TopHubbers conversion
Post by: jiten on 28 November, 2007, 18:05:03
Do you guys have problems with the file handling in the API II version?
Title: Re: TopHubbers conversion
Post by: CrazyGuy on 29 November, 2007, 14:25:22
not that i'm aware of. This isn't changed by the API
Title: Re: TopHubbers conversion
Post by: jiten on 29 November, 2007, 15:39:36
Quote from: CrazyGuy on 29 November, 2007, 14:25:22
not that i'm aware of. This isn't changed by the API

There was a file handling issue related to the [modified] Serialize function in the API II version of this script.

Seems to me that no one faced this problem, yet.

Title: Re: TopHubbers conversion
Post by: CrazyGuy on 30 November, 2007, 12:49:41
Quote from: jiten on 29 November, 2007, 15:39:36
There was a file handling issue related to the [modified] Serialize function in the API II version of this script.

Seems to me that no one faced this problem, yet.



This problem must be lua related, and cannot be API related unless you make direct API calls in the Serialize function (which isn't needed imho  ;) )