Lua but not Spring. Important.

Lua but not Spring. Important.

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
Complicated
Posts: 369
Joined: 06 Jun 2007, 18:51

Lua but not Spring. Important.

Post by Complicated »

Anyone able to write a luascript that'll display big letters "UPDATE YOUR ADOBE" on the screen if the currently installed Adobeflash is not 9.0.124.0?

It's a anti-hack related problem as the previous adobe flash has a huge hole in it that allows people to take passwords, this problem is currently exsisting on Worldofwarcraft, but wish for this to be implimented on a private server.

Yes anyone that helps with this will be credited
Posts
Posts: 63
Joined: 02 Oct 2007, 04:00

Re: Lua but not Spring. Important.

Post by Posts »

not exactly what you wanted, though it seems unclear that you know what you want, what i'm going to show you is javascript + html

In this post i present to you a modified form of what you can find at this URL: URL

I've improved your version logic, "less than" applied to only certain major versions, 9 and 8, http://www.securityfocus.com/bid/28695

note to self: keyword search URL

see attachment for second part

Code: Select all

<html>
<script type="text/javascript" src="SWFObject.js"></script>
<body>
<script type="text/javascript">
	var version = deconcept.SWFObjectUtil.getPlayerVersion();
	if((version['major'] == 9 && version['minor'] == 0 && version['rev'] < 124)
		|| (version['major'] == 8 && version['minor'] == 0 && version['rev'] < 42))
			document.write('<font size="7">--- This website has detected that you are using an '
						+ 'old version of Adobe Flash(google it)'
						+ ' that is being attacked in-the-wild, upgrade now (version you are using: '
						+ version['major'] +"."+ version['minor'] +"."+ version['rev']+') ---</font>');
</script>
<p>
hi there
</p>
</body>  
</html>
Attachments
SWFObject.js
(6.69 KiB) Downloaded 15 times
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Re: Lua but not Spring. Important.

Post by KDR_11k »

Lua has no input/output functions by default I think, you'll need to look into the documentation of the Lua interface you're writing it for.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Lua but not Spring. Important.

Post by AF »

Im not sure he is writing it for an interface, or that he intends to write anything other than the download this post
Post Reply

Return to “Lua Scripts”