Genral Script commands like hub commands
 

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

Genral Script commands like hub commands

Started by ((UKSN))shad_dow, 04 February, 2004, 14:27:18

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

((UKSN))shad_dow

afternoon all .

right heres a simple Q for ya .

looked at all mutibot scripts @ the forums download site ,
 
besides the ones that are compled, i noticed that every scripter seems to code the main hub commands (do a !help on ya hubs main to see what i mean) a diffent way , anybody got a idea for were me to start as i dont realy wont to cut & paste from other scripts (not with out script owners permission first)

any advice would be most helpful  :]
creator of Therapy-X? bot

c h i l l a

well go to the how to's section and start your way there.
And if you need help or don't understand why things aint working like you want it to, then just post your code, okeys? ;)

Nice to see new scripters...

RobinHood

it's not so difficult as u think :-)

do !help in your mainchat

copy the text in 2 txt files (1 for user command and 1 for the op commands)

your commands must be scripted like this:

if (cmd=="!cmd1") then
   code cmd1
elseif (cmd=="!cmd2") then
   code cmd2
elseif (cmd=="!help") then
   if user.bOperator then
      read the ophelp.txt line by line by help-bot
   end
   read the userhelp.txt line by line by help-bot
elseif (cmd=="!cmd3") then
   code cmd3
end

now you are able to disable some commands if you want to by

elseif (cmd=="!cmd4") then
   return 1

perhaps this will help you ? ;-)

NightLitch

"tiny" Note: remeber - return 1 - otherwise the original help will show to. :-)

have a nice day everyone / NL
//NL

plop

#4
QuoteOriginally posted by ((UKSN))shad_dow

afternoon all .

right heres a simple Q for ya .

looked at all mutibot scripts @ the forums download site ,
 
besides the ones that are compled, i noticed that every scripter seems to code the main hub commands (do a !help on ya hubs main to see what i mean) a diffent way , anybody got a idea for were me to start as i dont realy wont to cut & paste from other scripts (not with out script owners permission first)

any advice would be most helpful  :]
what happens is that they replace the ptokax help menu, so they have 2 add the ptokax commands again 2 the menu from there bot.
it's nothing more then a string showing there.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

((UKSN))shad_dow

Hi All , cheers for all ya replies and i post code some where on here if i screw up LOL ;)

starting to code Therapy Hub Bot (might finnish in 3 years time PMFSL)

ttfn
creator of Therapy-X? bot

SMF spam blocked by CleanTalk