PtokaX forum

Archive => Archived 5.0 boards => Help with scripts => Topic started by: Kiss_me on 19 April, 2006, 20:49:36

Title: A request for a little bit of scripting?
Post by: Kiss_me on 19 April, 2006, 20:49:36
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?
Title: Re: A request for a little bit of scripting?
Post by: 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?
Title: Re: A request for a little bit of scripting?
Post by: Markitos on 20 April, 2006, 09:49:37
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...
Title: Re: A request for a little bit of scripting?
Post by: Kiss_me on 20 April, 2006, 19:07:42
here u go >>
Title: Re: A request for a little bit of scripting?
Post by: Kiss_me on 20 April, 2006, 22:15:42
u is a star :P cheers much appreciated!!!!!
Title: Re: A request for a little bit of scripting?
Post by: Markitos on 21 April, 2006, 15:10:13
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?
Title: Re: A request for a little bit of scripting?
Post by: 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.
Title: Re: A request for a little bit of scripting?
Post by: Kiss_me on 21 April, 2006, 15:42:19
ruler scripted this script for the hubs we use & run.
Title: Re: A request for a little bit of scripting?
Post by: Markitos on 21 April, 2006, 16:23:55
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???
Title: Re: A request for a little bit of scripting?
Post by: 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.
Title: Re: A request for a little bit of scripting?
Post by: Markitos on 21 April, 2006, 20:32:19
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
Title: Re: A request for a little bit of scripting?
Post by: Kiss_me on 21 April, 2006, 20:38:39
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
Title: Re: A request for a little bit of scripting?
Post by: Kiss_me on 22 April, 2006, 07:40:25
seriously its screwed up lol its just happened & i dont know why :(

Could it be my client playng up?
Title: Re: A request for a little bit of scripting?
Post by: Kiss_me on 23 April, 2006, 20:32:42
no one knows then??