Helpdesk Script
 

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

Helpdesk Script

Started by [HE]Newbie, 01 March, 2006, 16:05:07

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

[HE]Newbie

Hi,
I was wondering if someon1 can make a script like this:

when u type !helpdesk it opens a new PM wherer the user can chat to evrey OP
When the user has joined the helpdesk in the helpdesk will show a message that user <name> has joined the helpdesk.
and when he wants to leave the helpdesk he typs !hstop and then a message will shown that the user has left the helpdesk.

Greedz Newbie , i really apreciate this! ;D
There will be 1 day, that i learn

nlgezel.hopto.org:411

Herodes

I think it is a chatrooms scirpts you need for that...
try using the search function on the board for 'Chatroom' ...

[HE]Newbie

Quote from: Herodes on 01 March, 2006, 17:51:25
I think it is a chatrooms scirpts you need for that...
try using the search function on the board for 'Chatroom' ...
Yes it is an chatroom but a little modified i can edit lua5 but dont know how to do this, maybe someon1 can mod or make me that script as i request.. maybe mod the pm2ops from robocop

EDIT://
This script is never made before i believe, or is not given public. so i think more people will apreciate this script if someon1 makes it!
There will be 1 day, that i learn

nlgezel.hopto.org:411

Herodes

Quote from: [HE]Newbie on 01 March, 2006, 17:53:19
Yes it is an chatroom but a little modified i can edit lua5 but dont know how to do this, maybe someon1 can mod or make me that script as i request.. maybe mod the pm2ops from robocop
hmm..
Robocop from what I know can't be compiled.. so forget about that..

give the chatroom script a try and report back ..
( you can set many many permissions and configuration options in the script i know of )


[HE]Newbie

i want a little modding script of Pm2OPS see above my request.. its just same but a little bit text more:P maybe u can mod it like that.

(sorry for my bad English, if u dont understand it i will try to explain it on a other way
There will be 1 day, that i learn

nlgezel.hopto.org:411

Troubadour

Quote from: Herodes on 01 March, 2006, 17:56:03
Quote from: [HE]Newbie on 01 March, 2006, 17:53:19
Yes it is an chatroom but a little modified i can edit lua5 but dont know how to do this, maybe someon1 can mod or make me that script as i request.. maybe mod the pm2ops from robocop
hmm..
Robocop from what I know can't be compiled.. so forget about that..

give the chatroom script a try and report back ..
( you can set many many permissions and configuration options in the script i know of )



Just like Herodes says, first try something with the chatroom script and then report back.
Little adjustments can also be made by users themselves in the configuration for instance!
Regards,

Troubadour

** Guardian Forum **

hubaddy:   nederfun.no-ip.com

[HE]Newbie

i lookt at a extra chat, but i dont know where to put the cmnds
There will be 1 day, that i learn

nlgezel.hopto.org:411

jiten

Quote from: [HE]Newbie on 01 March, 2006, 18:18:36
i lookt at a extra chat, but i dont know where to put the cmnds
If you're using Chatrooms, type the commands in PM to the created/desired chatroom.

[HE]Newbie

jiten your script looks pretty same but needs a little mod. for my req.
There will be 1 day, that i learn

nlgezel.hopto.org:411

jiten

Quote from: [HE]Newbie on 01 March, 2006, 18:30:02
jiten your script looks pretty same but needs a little mod. for my req.
Tell me about it ;)

[HE]Newbie

i have someon1 who gots the script i request but he wodnt give it:( take look at: diganet9.no-ip.info:4221) thats what i request:P, but the maker dosnt gives it public:(
There will be 1 day, that i learn

nlgezel.hopto.org:411

Herodes

[20:27:41] <Herodes> hello
[20:27:42] <[_HeLPDeSK_]> Type help!
[20:27:45] <Herodes> !help
[20:27:46] <[_HeLPDeSK_]> Type help!
[20:27:48] <Herodes> help
[20:27:49] <[_HeLPDeSK_]> Type help!
[20:27:52] <Herodes> help
[20:27:52] <[_HeLPDeSK_]> Type help!
[20:28:04] <Herodes> +help
[20:28:04] <[_HeLPDeSK_]> Type help!
[20:28:09] <Herodes> help!
[20:28:10] <[_HeLPDeSK_]> Type help!


that sould be easy as
function ToArrival( user, data )
...
if to == bot then
user:SendPM( bot, "Type help!" )
end
...
end
  ;D

[HE]Newbie

lol , its a begin indeed ;D
There will be 1 day, that i learn

nlgezel.hopto.org:411

[HE]Newbie

Come on guys, i know more guys wants it.. and please can someon1 make me this request :o
There will be 1 day, that i learn

nlgezel.hopto.org:411

Herodes

Quote from: [HE]Newbie on 02 March, 2006, 00:59:16
Come on guys, i know more guys wants it.. and please can someon1 make me this request :o
HEY~! did you try the Chatrooms script by jiten ? if not don't continue posting pls !...

bastya_elvtars

Do I really need to make a 'How to ask' announcement?
Everything could have been anything else and it would have just as much meaning.

[HE]Newbie

#16
i have tryed to add things in the script and stuff and asked much guys for helping and shit.. much of them are also saying its not the easyest script and i am also not a fanatic scripter but i sometimes edit scripts..

Greedz newbie

EDIT:\\

Sorry for the style how i asked it :-[
There will be 1 day, that i learn

nlgezel.hopto.org:411

Herodes

there is nothing to edit...
you find me in a dizzy mood ... so there you go I'll spell it out for you..


  • Step 1: get this script in the scripts forlder of your ptokax...
  • Step 2: startup Ptx or reload the scripts if it is running already...
  • Step 3: logon with the nick of the owner and type '!mkchat -HelpDesk-'
  • Step 4: go in the pm mode with the -HelpDesk-
  • Step 5: type in the pm '!lock on'
  • Step 6: type in the pm '!autologin on'
  • Step 7: type in the pm '!invite <nick_name of any Op you want to be able to provide help advice>'

now the Helpdesk chatroom is ready..

add users by pm to the -HelpDesk- typing '!invite <nick of the user that needs help>'
and remove them with '!remove <nick to remove>'

if you want to see which users are there are on the chatroom type in pm to the HelpDesk : '!members'

if you want the chatroom to be hidden from users type in the pm '!hide'

if you want to delete the Chatroom type in the mainchat '!delchat <name of the chatroom>'

....... pls don't tell me that you don't understand ..  goodnight

jiten

Quote from: [HE]Newbie on 02 March, 2006, 01:09:37
i have tryed to add things in the script and stuff and asked much guys for helping and shit.. much of them are also saying its not the easyest script and i am also not a fanatic scripter but i sometimes edit scripts..

Greedz newbie

EDIT:\\

Sorry for the style how i asked it :-[
If I get some free time today, I'll make it. If not, probably tomorrow.

Cheers

[HE]Newbie

@ herodes
Ok Herodes its a good script but not probably what i am looking for: i am looking for this:
here is what it does-
You type !helpdesk and you are logged into a private chatroom with all Ops, you recieve this message -
[17:40:10] <[_HeLPDeSK_]>
If you have any questions or problems write it here, maybe we can help you. If nobody answers then try again later.
Type !stop: To leave the helpdesk

But thnx so far m8, i really apreciate !!

[17:40:11] <[_HeLPDeSK_]> Toobster?? has joined the helpdesk!

@jiten

Thnx jiten that would be cool.. if u need more help for how it needs to be then just pm me!
There will be 1 day, that i learn

nlgezel.hopto.org:411

jiten

Haven't tested much, but, here it goes a quick mod. Feel free to report problems.

--[[

	HelpDesk by jiten (3/2/2006)

]]--

tSettings = {
	sBot = "[_HeLPDeSK_]",
	fHelp = "tHelpDesk.tbl",
}
tMembers = {}

Main = function()
	frmHub:RegBot(tSettings.sBot)
	for a,b in pairs(frmHub:GetOperators()) do
		tMembers[b.sNick] = tMembers[b.sNick] or 1
		SaveToFile(tSettings.fHelp,tMembers,"tHelpDesk")
	end
end

ToArrival = function(user,data)
	local s,e,to,msg = string.find(data, "^$To:%s+(%S+)%s+From:%s+%S+%s+$%b<>%s+(.*)|$")
	if to == tSettings.sBot then
		local s,e,cmd = string.find(msg, "^%!(%a+)")
		if not user.bOperator and cmd and tCmds[cmd] then
			return tCmds[cmd](user),1
		end
		if tMembers[user.sName] or user.bOperator then
			tMembers[user.sName] = tMembers[user.sName] or 1
			PM(msg, user.sName)
		else
			user:SendPM(tSettings.sBot, "*** Type !helpdesk to login.")
		end
		return 1
	end
end

tCmds = {
	["leave"] = function(user)
		if tMembers[user.sName] then
			tMembers[user.sName] = nil
			user:SendPM(tSettings.sBot,"*** You have left the HelpDesk!")
			PM(user.sName.." left!",user.sName)
			SaveToFile(tSettings.fHelp,tMembers,"tHelpDesk")
		end
	end,
	["helpdesk"] = function(user)
		if not tMembers[user.sName] then
			tMembers[user.sName] = 1
			user:SendPM(tSettings.sBot,"*** You have joined the HelpDesk!")
			PM(user.sName.." joined!",user.sName)
			SaveToFile(tSettings.fHelp,tMembers,"tHelpDesk")
		end
	end,
}

PM = function(msg, from)
	for nick, id in pairs(tMembers) do
		if nick ~= from then
			SendToNick(nick, "$To: "..nick.." From: "..tSettings.sBot.." $<"..from.."> "..msg)
		end
	end
end

Serialize = function(tTable,sTableName,hFile,sTab)
	sTab = sTab or "";
	hFile:write(sTab..sTableName.." = {\n");
	for key,value in tTable do
		if (type(value) ~= "function") then
			local sKey = (type(key) == "string") and string.format("[%q]",key) or string.format("[%d]",key);
			if(type(value) == "table") then
				Serialize(value,sKey,hFile,sTab.."\t");
			else
				local sValue = (type(value) == "string") and string.format("%q",value) or tostring(value);
				hFile:write(sTab.."\t"..sKey.." = "..sValue);
			end
			hFile:write(",\n");
		end
	end
	hFile:write(sTab.."}");
end

SaveToFile = function(file,table,tablename)
	local hFile = io.open(file,"w+") Serialize(table,tablename,hFile); hFile:close() 
end

[HE]Newbie

#21
Ok jiten i am gonna test it now..! will report ! looks on first look very sweet man

Bug 01

when u type !helpdesk nothing happens at me:S
There will be 1 day, that i learn

nlgezel.hopto.org:411

bastya_elvtars

Quote from: [HE]Newbie on 02 March, 2006, 22:04:40
Ok jiten i am gonna test it now..! will report ! looks on first look very sweet man

Bug 01

when u type !helpdesk nothing happens at me:S

Only works in PM.
Everything could have been anything else and it would have just as much meaning.

DJ Bert

Also tested it to. Working only in pm to helpdesk. Have tryed all profiles. Profiles ops, masters, mod and netfounder don't see pm from Helpdesk (*** You have joined the HelpDesk!)

bastya_elvtars

Quote from: DJ Bert on 03 March, 2006, 00:20:30
Working only in pm to helpdesk

Yep, there's no ChatArrival... :P
Everything could have been anything else and it would have just as much meaning.

SMF spam blocked by CleanTalk