PDA

View Full Version : HowTo!


Gai-Luron
10th November 2009, 16:17
Hello, because somes persons are better than me in using LFSLapper ( yes, yes, i'am a dev man not a parameter man :razz:) i need your help for writing a HowTo for LFSLapper. I think this howto must contain somes sections like ( not complete, if you have another ideas ).



Quick Start Guide ( how to install and start LFSLapper for newbee ) (http://www.lfsforum.net/showthread.php?p=1305869#post1305869)
Configuring multiple LFS server on one LFSLapper (http://www.lfsforum.net/showthread.php?p=1305870#post1305870)
Basic LFSLapper configuration. lpr file (http://www.lfsforum.net/showthread.php?p=1305873#post1305873)
GLScript overview (http://www.lfsforum.net/showthread.php?p=1305874#post1305874)
Event overview (http://www.lfsforum.net/showthread.php?p=1305875#post1305875)
Control Struct in LFSLapper (http://www.lfsforum.net/showthread.php?p=1305877#post1305877)
Reference language guide (http://www.lfsforum.net/showthread.php?p=1305888#post1305888)
Replacing Event or Multiple catching event (http://www.lfsforum.net/showthread.php?p=1305878#post1305878) ( very soon to coming :nod: )
Multi Language management (http://www.lfsforum.net/showthread.php?p=1305879#post1305879)
Web connectivity (http://www.lfsforum.net/showthread.php?p=1305880#post1305880)
Upload Feature (http://www.lfsforum.net/showthread.php?p=1305881#post1305881)
Qualification feature (http://www.lfsforum.net/showthread.php?p=1305882#post1305882)


If you have time to write a part of one or more sections, this will be a very good thing for all the community. Put you reply here, i update the correct post in this HowTo as soon i receive your contribution.

Thank's

Gai-Luron

Gai-Luron
10th November 2009, 16:17
Quick Start Guide

Gai-Luron
10th November 2009, 16:17
Configuring multiple LFS server on one LFSLapper

Gai-Luron
10th November 2009, 16:18
Basic LFSLapper configuration. lpr file

Gai-Luron
10th November 2009, 16:18
GLScript overview

Gai-Luron
10th November 2009, 16:18
Event overview

Gai-Luron
10th November 2009, 16:18
Control Struct in LFSLapper

Gai-Luron
10th November 2009, 16:19
Replacing Event or Multiple catching event

Gai-Luron
10th November 2009, 16:19
Multi Language management

Gai-Luron
10th November 2009, 16:19
Web connectivity

When you send a request to a web server LFSLapper attemps to receive a GLScript code and execute it.

Example
You send a request to know if player is allowed, http("http://www.demourl.nl/lfs_plugin.php?u=". GetCurrentPlayerVar("UserName") );
and GetCurrentPlayerVar("UserName") -> "gai-luron"

web response can contain this glScript lines:

$allowed = 1;
$userName = "gai-luron";
doMyCode( $userName,$allowed );

OR

doMyCode( "gai-luron",1 );

LFSLapper interpret this GLScript code and in this code you can see you have a call to subroutine. This subroutine can be declared in lpr file.

In you lpr file tou have:
SUB doMyCode( $userName,$allowed )
... Do what you want if lpr file
IF( $allowed == 0 ) THEN
cmdlfs( "/kick " . $userName );
ELSE
privMsg("Allowed");
ENDIF

ENDSUB


And other way is to put all code in the returned webcommand
Request = http("http://www.demourl.nl/lfs_plugin.php?u=". GetCurrentPlayerVar("UserName") );

Returning web commands if allowed:

privMsg("Allowed");

Returning web commands if not allowed:

cmdlfs( "/kick gai-luron");



Gai-Luron

PS: You can put any GLScript command in returned web, like top(), topuser(), etc...

Gai-Luron
10th November 2009, 16:20
Upload Feature

Gai-Luron
10th November 2009, 16:20
Qualification feature

Gai-Luron
10th November 2009, 16:24
Reference language guide