Please...Hel me out
 

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

Please...Hel me out

Started by monnie, 02 August, 2004, 19:33:24

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

monnie

Hello scripters...
Greetings

I've seen some triggies (trug chats), but i wanted if it's possible, have one just like the old neo modus trigguie:

We can add or remove trigs;
Users, if not op's maybe disconected when they fire a trig or even fire an special one;
the ansers maybe of two kinds... on main chat or some (predifened) in PM

Is it too much to ask folks??
Hope note if you need more details or if you don't understand something, please ask me

Thanks for now...

                             monnie

NightLitch

-- TrickerBot.lua, created by Ptaczek Dec-24,2002
-- Just see how to implement the NMDC TriggerBot in LUA :)

botname = "TrickerBot"
trigs = {
		lol="Yeah, that was funny [USER]. Haha.",
		bye="See ya [USER]",
		help="What do you need help with [USER]? away? opcommands?",
		away="Type #a to set status to AWAY, #b to to turn of AWAY",
		opcommands="Type !help or +help for command list [USER]",
		vandel="Vandel!?!? WHERE??!",
		ptokax="Oh Yeah, PtokaX ;)",
		fuck="Watch IT [USER]! One more line of code and i could kick your ass!",
		["shut up"]="Make me [USER] !"
	}
	

function DataArrival(user, data)
	if( strsub(data, 1, 1) == "<" ) then
		-- get the msg only using regular expression
		s,e,msg = strfind(data, "%b<> ([%w ]*)")

		-- look in the table
		for key, value in trigs do
			if( strfind( strlower(msg), key) ) then
				answer, x = gsub(value, "%b[]", user.sName) 
				SendToAll( botname, answer )
				break
			end
		end
	end
end

/NL
//NL

monnie

I believe this may be a start!!!
Thanks

..but for me isn't enough..
Can anyone continue this Sudden Script??
lol

Thanks NightLitch

                          monnie

plop

check out sensi from guibs,

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

IsoD

That senssi2.lua is workin fine but there is one problem. I'm from Finland an here in Scandinavia we use special characters ? and ?. If I make a trigger with those it doesn't work, like ["hyv?? y?t?"]="Hyvi? unosia [USER] ja toivottavasti n?et makoisia unia :)",  
(means that good night, and the bot says "sleep well [USER]")

So is there any way to get those work

thnx.....
You born and you die. YOU  decide what happens in between....

Catch me in action from Dannyluola -= [FIN]Empire Hubs =-

SMF spam blocked by CleanTalk