A request for a little bit of scripting?
 

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

A request for a little bit of scripting?

Started by Kiss_me, 19 April, 2006, 20:49:36

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Kiss_me

If this isnt in the right section please do move.

Hey mutor u know the Right clicker in Rulers hub i use same one.
And i wanted a catergory in right clicker like e.g Messages , Redirects, Bans < then they have a menu off of them

I wanted the catergory to Be DcHubAd then the menu to be Advertise, Client Help

so it would 'look like this'

DcHubAd > Advertise
? ? ? ? ? ? ? ? ?Client Help

Then once clicked on either advertise or client help it sends the web address in pm to user??

Soz this mite make no sense but i know nout bout scripting lol , i would also like the code so i could add things to my right clicker in future ect ect.

If ya could help much appreciated! x

Oh i forgot to mention i dont want to run a seperate script for this i just want tobe able to slip it into my bot script if possible?

Kiss_me

rite cant post or pm u it as it exceeds maximum length so i send it in one of the hubs ok?

Markitos

Quote from: Kiss_me on 19 April, 2006, 22:26:36
rite cant post or pm u it as it exceeds maximum length so i send it in one of the hubs ok?
Attach...

Kiss_me


Kiss_me

u is a star :P cheers much appreciated!!!!!

Markitos

#5
I got this function (wich i mod it)
if (cmd=="!showredirects") then
			local RedirAdress,ShareRedir,SlotRedir,RatioRedir,MaxHubRedir,NoTagRedir,BanRedir = frmHub:GetRedirectAddress(),frmHub:GetShareRedirAddr(),frmHub:GetSlotsRedirAddr(),frmHub:GetRatioRedirAddr(),frmHub:GetMaxHubsRedirAddr(),frmHub:GetNoTagRedirAddr(),frmHub:GetBanRedirAddr()
			return user:SendData("*** Present Redirect Settings are: \r\n "..
								"\r\n On Hub Full Redirect: \t"..RedirAdress..
								"\r\n On Max/Min Share Redirect: \t"..ShareRedir..
								"\r\n On Min/Max Slots Redirect: \t"..SlotRedir..
								"\r\n On Slot Ratio Redirect: \t"..RatioRedir..
								"\r\n On Max Hub Redirect: \t"..MaxHubRedir..
								"\r\n On No Tag Redirect: \t"..NoTagRedir..
								"\r\n On Banned User Redirect: \t"..BanRedir.."\r\n"),1
		end

but when for example the ptokax user didnt set the On Max/Min Share Redirect, i would want to add *N/A*...i got no sucess in adding or "*N/A*" "\r\n On Max/Min Share Redirect: \t"..ShareRedir..

Help plz  :-\

Edit//- By the way whos create this script?

jiten

Quote from: Markitos on 21 April, 2006, 15:10:13
but when for example the ptokax user didnt set the On Max/Min Share Redirect, i would want to add *N/A*...i got no sucess in adding or "*N/A*" "\r\n On Max/Min Share Redirect: \t"..ShareRedir..

Just follow this syntax:

(sVar or "*N/A*")


You may have noticed that your code was missing those two parenthesis.

Kiss_me

ruler scripted this script for the hubs we use & run.

Markitos

Quote from: jiten on 21 April, 2006, 15:19:05
Quote from: Markitos on 21 April, 2006, 15:10:13
but when for example the ptokax user didnt set the On Max/Min Share Redirect, i would want to add *N/A*...i got no sucess in adding or "*N/A*" "\r\n On Max/Min Share Redirect: \t"..ShareRedir..

Just follow this syntax:

(sVar or "*N/A*")


You may have noticed that your code was missing those two parenthesis.

Nop were???

jiten

Quote from: Markitos on 21 April, 2006, 16:23:55
Nop were???

It was just an example. The correct syntax for that situation would be:

"\r\n On Max/Min Share Redirect: \t"..(ShareRedir or "*N/A*")..


As you can see, you will need parenthesis to use the "or" keyword.

Markitos

Quote from: jiten on 21 April, 2006, 16:45:42
Quote from: Markitos on 21 April, 2006, 16:23:55
Nop were???

It was just an example. The correct syntax for that situation would be:

"\r\n On Max/Min Share Redirect: \t"..(ShareRedir or "*N/A*")..


As you can see, you will need parenthesis to use the "or" keyword.
:D

Kiss_me

hey any 1 know why this is?

Im runing the modified version of my script by mutor (my lover) , and ive lost a few things off my right clicker>
Mass message to unreg (seperate script)
Dvd_Quiz (seperate script)

But..? my other master still has them (its wierd she has them though)? i restarted dc, & hub. but they havent returned :S any ideas?

Is the modified script interfering with those other 2? or is it jus me? as i had them b4 on right clicker! x

Kiss_me

#12
seriously its screwed up lol its just happened & i dont know why :(

Could it be my client playng up?

Kiss_me


SMF spam blocked by CleanTalk