PtokaX forum

Lua 5.3/5.2/5.1 Scripts (for PtokaX 0.4.0.0 and newer) => Finished Scripts => Topic started by: Rincewind on 27 March, 2008, 19:43:01

Title: Rincewind's Hangman v2.0.0 Lua 5.1 API2 Edition
Post by: Rincewind on 27 March, 2008, 19:43:01
Here (http://www.darknexus.co.uk/scripts/download.php?view.340) for download is Rincewind's Hangman v2.0.0 Lua 5.1 API2 Edition cut from Rincewind's Grimoire v5.0.0 Lua 5.1 API2 Edition

CHANGES
----------------------
• near total rewrite of script and GUI
• added option to play Hangman in PM
Title: Re: Rincewind's Hangman v2.0.0 Lua 5.1 API2 Edition
Post by: RPGamer on 14 September, 2015, 09:26:17
Hi, new member here.
Just started maintaining a hub few days back and wanted some fun game scripts to keep the hub active. The download link seems to be invalid now, so is there any alternate?
Also, are the forums not active anymore? It's sad to see inactivity of forums  :ermm:
Title: Re: Rincewind's Hangman v2.0.0 Lua 5.1 API2 Edition
Post by: the-master on 17 September, 2015, 08:00:52
This forum isn't inactive, only some scripters are  :)
Title: Re: Rincewind's Hangman v2.0.0 Lua 5.1 API2 Edition
Post by: RPGamer on 18 September, 2015, 10:58:20
@the-master
I've browsed through the forums, but it seems like it was most active back in '06 and '07.
Rincewind's scripts were a gem, from what I saw about his contribution to the forum. However I can't even access one of them since the linked sites for his script downloads are gone.
Wanted his anagrams script (Lua 5.1) so I could learn and then modify it to make it a hangman script, even guess animal or national capitals.
So is there any source remaining for his script?
TIA
Title: Re: Rincewind's Hangman v2.0.0 Lua 5.1 API2 Edition
Post by: the-master on 18 September, 2015, 18:24:41
You'll stumble into a few problems, First, it's compiled, so not readable without decompiling.
second, all I could find was old API, won't work on new API unless translated :(
check http://script-bot.dcstuff.nl/index.php?dir=PtokaX/ (http://script-bot.dcstuff.nl/index.php?dir=PtokaX/) for more scripts.
Title: Re: Rincewind's Hangman v2.0.0 Lua 5.1 API2 Edition
Post by: the-master on 18 September, 2015, 18:48:56
Found this script somewhere, perhaps useable
Title: Re: Rincewind's Hangman v2.0.0 Lua 5.1 API2 Edition
Post by: the-master on 18 September, 2015, 19:08:27
Seems your very lucky, found this original (I think) not compiled in rince's grimoire script  :D
Title: Re: Rincewind's Hangman v2.0.0 Lua 5.1 API2 Edition
Post by: RPGamer on 18 September, 2015, 21:20:19
@the-master
How'd you find it? :O
I took 3+ hours trying to find good scripts, essential for running hub. Had !regme and !tophubbers, thanks to the 1st link.
Dayum, now I can implement guess country and animal, with hangman itself! Maybe I'll include movies too! :D
Are there any tutorials available to make 5.x scripts from scratch for Ptokax? Will help speed up the learning process.
:up:

PS: Is there a common site where I can upload my scripts in future, or is this the only forum where people post scripts?
Title: Re: Rincewind's Hangman v2.0.0 Lua 5.1 API2 Edition
Post by: the-master on 19 September, 2015, 09:01:59
I was lucky to find a user with a copy 8) some of us got several scripts in share to.
This site and some russian site are the most common sites for help, uploads etc.
For help we got the lua site, http://www.lua.org/manual/5.3/ (http://www.lua.org/manual/5.3/) , and scripting files comming with dl PtokaX.
Atm we got 2 hubs running for help, the old admin hub is still online and the new hub to (adresses on this forum  ;) )
Title: Re: Rincewind's Hangman v2.0.0 Lua 5.1 API2 Edition
Post by: RPGamer on 19 September, 2015, 14:24:32
@the-master
About the scripts sent earlier:
The hangman game has a nice documentation about how to start the script, and what all necessities are required.
However, the anagrams script doesn't have the documentation. I started the script, but it looks like I need something more and possibly need to edit the script. Is there a version with full documentation?
EDIT: It looks like Anagrams is integrated with Grimoire, which I don't have.
Are there any video/text tutorials for scripts?
Title: Re: Rincewind's Hangman v2.0.0 Lua 5.1 API2 Edition
Post by: the-master on 19 September, 2015, 15:54:50
Like I said, Grimoire is compiled, the lua I posted was a copy before compiling done.
The Grimoire I got won't work on latest hubsofts. :(
More info about lua on: http://lua-users.org/wiki/SampleCode (http://lua-users.org/wiki/SampleCode)
Title: Re: Rincewind's Hangman v2.0.0 Lua 5.1 API2 Edition
Post by: PPK on 19 September, 2015, 17:42:41
Quote from: RPGamer on 19 September, 2015, 14:24:32
Are there any video/text tutorials for scripts?
For scripting is used programming language Lua (http://www.lua.org/).
You can try to learn it fast way with Learn Lua in 15 Minutes (http://tylerneylon.com/a/learn-lua/) or slower way with Lua Tutorial (http://www.tutorialspoint.com/lua/index.htm) ;) Missing things can be found in Lua manual (http://www.lua.org/manual/5.3/manual.html) and things specific for PtokaX Lua api can be found in PtokaX wiki (http://wiki.ptokax.org/doku.php?id=luaapi)  :)
Title: Re: Rincewind's Hangman v2.0.0 Lua 5.1 API2 Edition
Post by: RPGamer on 19 September, 2015, 21:31:26
Thanks for the heads up @PPK and @the-master    :up:
I've created a new forum topic (Script Requests-Hub Sharer Graph). Don't give any code, just help me guide in the right direction whenever I post a section of the code. As in if that's the right logic, or if there is an efficient method, things like that.