read an (outside) updated global variable

04/10/2015 00:36 colonelx#1
hi
i know it's seem kind of stupid question :p
but i have global variable which is updated from
outside the game assume that i have global variable
named [X] and it's value [1]
from web page i want to update [X] value to [2]
then read the new value from the game without restart the server
any suggestion or better idea to do something like this ?
04/10/2015 00:52 marekrndr#2
You could use TelNet to execute commands in the GS, no?

Make your website save the previous value if new is detected and if new =/= old then make the website execute the TelNet command to update the value in GS.
04/10/2015 01:25 colonelx#3
could you tell me how to use telnet with web and captin herlock plz ?
cuz i haven't use it before
[EDIT]
i found this topic but i ccan not connect
[Only registered and activated users can see links. Click Here To Register...]
it's show me
[PHP Telnet] Connect failed: Login failed
although i have put the console password hash
04/10/2015 01:30 marekrndr#4
Find the TelNet tutorial/sample code by iSmokeDrow from this forum, write it over to either PHP, ASPX or what ever you use.

To sum the answer up: search epvp, there are enough threads about this.
04/10/2015 02:08 colonelx#5
i have edited my previous post maybe u haven't notice that
after the edit i said that
i found this topic but i can not connect
[Only registered and activated users can see links. Click Here To Register...]
it's show me
[PHP Telnet] Connect failed: Login failed
although i have put the console password hash
04/10/2015 02:11 ThunderNikk#6
console_allow_ip:

Or some thing like that.
04/10/2015 03:55 colonelx#7
ok now the connection established
but there is another problem
every command i excuted it's return
Invalid command...
any suggestion ?
i have checked for port i put it 4515 and it login success but can not use commands
04/10/2015 03:58 marekrndr#8
Give us an example of a command you send.
04/10/2015 04:21 colonelx#9
using the class provided in the topic i mentioned in previous comment
i used this command
TelnetCommand("#announce('WELCOME')");
note that i have tested auth on 4501 and works fine
i have sent set game.open_external 1
and its work fine
but still not work on game server although its already connected :(
[edit]:
now im confused -_-
this command SET game.chaos_drop_rate : 80
work fine just the set command work (not sure if it work)

any help plz :(

any help plz
04/12/2015 21:16 pprfds#10
first try to connect to the captain using cmd -- telnet command and see if u can execute the code

telnet 127.0.0.1 console_port

if you can execute the command and the same command not being executed while using the php telnet .. then there may be a bug in php telnet