Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Rappelz > Rappelz Private Server
You last visited: Today at 08:11

  • Please register to post and access all features, it's quick, easy and FREE!

 

read an (outside) updated global variable

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2014
Posts: 82
Received Thanks: 13
read an (outside) updated global variable

hi
i know it's seem kind of stupid question
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 ?



colonelx is offline  
Old   #2
 
elite*gold: 0
Join Date: Aug 2011
Posts: 535
Received Thanks: 231
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.


marekrndr is offline  
Thanks
1 User
Old   #3
 
elite*gold: 0
Join Date: Aug 2014
Posts: 82
Received Thanks: 13
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

it's show me
[PHP Telnet] Connect failed: Login failed
although i have put the console password hash
colonelx is offline  
Old   #4
 
elite*gold: 0
Join Date: Aug 2011
Posts: 535
Received Thanks: 231
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.


marekrndr is offline  
Old   #5
 
elite*gold: 0
Join Date: Aug 2014
Posts: 82
Received Thanks: 13
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

it's show me
[PHP Telnet] Connect failed: Login failed
although i have put the console password hash
colonelx is offline  
Old   #6
Moderator
 
elite*gold: 1
Join Date: Dec 2012
Posts: 3,043
Received Thanks: 978
console_allow_ip:

Or some thing like that.
ThunderNikk is offline  
Old   #7
 
elite*gold: 0
Join Date: Aug 2014
Posts: 82
Received Thanks: 13
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
colonelx is offline  
Old   #8
 
elite*gold: 0
Join Date: Aug 2011
Posts: 535
Received Thanks: 231
Give us an example of a command you send.
marekrndr is offline  
Old   #9
 
elite*gold: 0
Join Date: Aug 2014
Posts: 82
Received Thanks: 13
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
colonelx is offline  
Old   #10
 
elite*gold: 0
Join Date: Oct 2011
Posts: 84
Received Thanks: 11
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


pprfds is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
[C#] Global Variable
Program.cs: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace project { class Program ...
5 Replies - .NET Languages
[C#] Global Variable
Program.cs: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace project { class Program ...
2 Replies - C/C++
Cost of accessing a casted variable vs. assigning the casted variable? (C#)
I know that in unmanaged C++, casting is at compile-time, so it's better to avoid the assignment and simply access it for all instances. However, in...
5 Replies - CO2 Programming
Überprüfen ob Variable Eine Variable ist
Hey leute ich wollte fragen ob/wie man überprüfen kann ob eine Variable eine Variable ist z.b. so $k = 1 $i = $k if $i = VARIABLE Then ...
26 Replies - AutoIt
READ BEFORE YOU DO ANYTHING Updated
Hi, if u are going to post a trojan / keylogger read this: 1st) Don't have any hopes to get someone who's stupit enough to let him hack you, every...
27 Replies - SRO Hacks, Bots, Cheats & Exploits



All times are GMT +2. The time now is 08:11.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2017 elitepvpers All Rights Reserved.