The Wave
 

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

The Wave

Started by Dessamator, 23 April, 2005, 13:55:24

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dessamator

--lua5(by Dessamator)
-- Wave by DirtyFingers
-- on/off and more.. by Hawk 
-- only ops can start/stop the wave by yepyepyep4711 (no, I don't expect anyone to be impressed ;D)

wavepart = "??..??''???``''??..??_"
--          1234567890123456789012
pos = 1
wholewave = string.rep(wavepart,4)
active = 0
function Main()
SetTimer(200)
end


function OnTimer()
if pos > 1 then 
pos = pos-1
else 
pos = 22
end
local c = string.sub(wavepart,pos,pos)
wholewave = c..string.sub(wholewave,1,string.len(wholewave)-1)
--SendToAll("",c.."\t"..string.sub(wholewave,string.len(wholewave)-1,string.len(wholewave)-1))
SendToAll("*",wholewave.." <*>")
end


function ChatArrival (curUser, sData)
		command=string.sub(sData,1,string.len(sData)-1)
		s,e,cmd = string.find(command,"%b<>%s+(%S+)")
			if curUser.bOperator then
				if cmd=="+waveon" then
					StartTimer()
					active = 1
				elseif cmd=="+waveoff" then
  					StopTimer()
					active = 0
				end
			end
				if active ~= 0 then
					local s,i
					_,i = (string.find(sData,"<"..curUser.sName.."> "))
						if i ~= nil then
							s = string.sub(sData,i+1,string.len(sData)-1)
								if ( string.sub(sData, 1, 4) == "$To:" ) then
									s,e,g,h,j = string.find(sData,"$To:%s+(%S+)%s+From:%s+(%S+)%s+$%b<>%s+(.*)")
									j = string.sub(j,1,string.len(j)-1)
									SendPmToNick(g,h,j)			
 								else	
									if string.len(s) < string.len(wholewave) then
										wholewave = s .. string.sub(wholewave,string.len(s))
									else
										wholewave = string.sub(s,string.len(wholewave))
									end
								end
						end
						return 1
				end
end
Ignorance is Bliss.

~~~~?Master?~~~~

i keep getting this message


wave.lua:8: function arguments expected near `='

Dessamator

QuoteOriginally posted by ~~~~?Master?~~~~
i keep getting this message


wave.lua:8: function arguments expected near `='

no errors here, try to copy the script again !!
Ignorance is Bliss.

~~~~?Master?~~~~

i tryed butt kept getting the same msg


strange.....

btw there are a lote of scripts that don't work at my ptokax...

Dessamator

QuoteOriginally posted by jiten
QuoteOriginally posted by ~~~~?Master?~~~~
i'm keep getting this msg function arguments expected near `=' in line 8


can you help me??



thnx greetzz
What PtokaX version are you using?
Btw, the code to copy is the one between the
Best regards,

jiten
Ignorance is Bliss.

BeeR

QuoteOriginally posted by ~~~~?Master?~~~~
i keep getting this message


wave.lua:8: function arguments expected near `='

must be u that copy it wrong
works perfect for me :]
A cold BeeR is stunning !!

~~~~?Master?~~~~

it works i found the problem.......jumble was messing with the script..... thnx  anyway

??']['??l?

\scripts\wave.lua:43: malformed pattern (missing `]')

I get this error in ptokax script editor, when i start the wave...

Anybody knows what`s the problem?

Thanks... ;)

SMF spam blocked by CleanTalk