!!!!!!!!!!!!!!!!!!!!!!
 

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

!!!!!!!!!!!!!!!!!!!!!!

Started by ?Tr??T_????, 21 July, 2005, 00:19:12

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

?Tr??T_????

Hello
Does someone knows if its posible to create commands??
like !somethinghere

Thanx in advance :)

Northwind

hmhm let's think!

allmoust every script has a command, u have to say what is the specific meaning what commands has to do.

!rules
!time
!timed message


you have to just re-search and use search button... dont spam with annoyin !!!!!! topics...

and if u want to do own command... just watch others script and learn.... like others have to do...


?Tr??T_????

i want a commnd like this !about

Northwind

what is purpose of that ???? about of what ???

I RECOMMEND YOU TO USE SEARCH BUTTON!


?Tr??T_????

open a window and then i put the text i want

Northwind

#5
Maybe this is what u want

-- Simple TXT / file viewer by TTB

-- Requested by Pingelmonster

-- Made: 06-05-05

----------------------------------



-- ## Settings ## --



bot = "#SimpleTXT"   -- botname

path = "txt"      -- path for your txt file(s)



File1= "mytext.txt"   -- filename

cmd1 = "!mycommand"      -- command



regbot = "1"          -- Reg your bot?

PM = "1"         -- Send your message by PM or in MAIN chat? 1 = PM, 0 = Main Chat.



-- NOTE: If you choose to send by PM, your bot will be REGGED anyway (can't send PM without sender).



-- ## Don't change below! ## --



function Main()

   if regbot == "1" or PM == "1" then

      frmHub:RegBot(bot)

   end

end



function ChatArrival(curUser,data)

data = string.sub(data,1,string.len(data)-1)

s,e,cmd = string.find(data,"%b<>%s+(%S+)")

   if cmd and cmd == cmd1 then

      local sdata = LoadFile(File1)

      if PM == "1" then

         curUser:SendPM(bot,"\r\n"..sdata)

      else

         curUser:SendData(bot,"\r\n\r\n"..sdata.."\r\n")

      end

      return 1

   end

end



function LoadFile(file)

   local handle = io.open(path.."/"..file,"r")

   if handle then

      local sdata = ""

      local line = ""

      for line in handle:lines() do

         sdata = sdata..line.."\r\n"

      end

      return sdata

   else

      sdata = "File / command not available!"

      return sdata

   end

   handle:close()

end


?Tr??T_????

where i put !about

Northwind

check it now again and u see, i post correct version of it


?Tr??T_????

thanx thanx thanx :D  :D  :D  :D  ?(  ?(  ?(  8)  8)  :]  :]  :P  :P  ;)

Northwind

np, but i still recommend you to learn how to use search button...


?Tr??T_????

i use but i didnt know what will i type in serache i tried some but not enough

CaSaNoVa

If u want that a file txt goes by a command, new version of ptokax has that into.
Create file txt,than put it on texts and restart file txt by
!reloadtxt.

Example :

Do about.txt and put on texts.
then !reloadtxt in main chat
Do !about on main and file txt appears to you.

?Tr??T_????

the old dont do it???

HillyBilly

or use an ascii bot for it

Cheers HB

?Tr??T_????

finally i understood its workin many many thanx :P  :P  :P  :D  :D  :D

NightLitch

2 thing:

1. Learn to post in the right SECTION, this is finished scripts not request scripts or help

2. Move the thread moderators...

/ NL
//NL

SMF spam blocked by CleanTalk