Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   requesttext() etc. (https://forums.graalonline.com/forums/showthread.php?t=67550)

xXziroXx 07-23-2006 05:57 PM

requesttext() etc.
 
How the heck does it work? Since I dont have a clue, I tried (serversided ofcourse):


PHP Code:

this.temp.requesttext("weaponlist""");
echo(
"Test [" SPC this.temp SPC "]"); 

And that gives me:

PHP Code:

Test [] 


I tried alot of request thingies, but like I said - I dont know how it works!

Skyld 07-23-2006 06:45 PM

PHP Code:

requesttext("texttype""textoption");
sendtext("texttype""textoption""textlines"); 

A response is sent to you like so:
PHP Code:

function onReceiveText(texttypetextoptiontextlines)
{
  
//



xXziroXx 07-23-2006 06:49 PM

Aha! Thanks.

ForgottenLegacy 07-23-2006 09:16 PM

To use most (maybe all?) of these, you need to designate the weapon to be a client RC, so put this in the onCreated bracket:

PHP Code:

requestText("clientrc"true); 

'true' means you are logging onto a client RC. 'false' would sign you off of client-rc if you were already signed in.


All times are GMT +2. The time now is 04:12 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.