• 0
Sign in to follow this  
Followers 0
Ranz

NPC script to access Database

Question

Is it possible to access database from npc script? i know yes if you are going to access the localhost
but i'm talking about other server for example i have vote_points table on other host and i wanted it to be access by server2(this is from different host). what code should i use? or is it even possible?

Share this post


Link to post
Share on other sites

5 answers to this question

  • 0

well sure but thats not RO related. you need to go to a linux forum and ask about remote ssh access, shell scripts and stuff. i doubt anyone here can answer your question about it. because what it seems you need is automated script performing SQL funcitons.

Share this post


Link to post
Share on other sites
  • 0

no no no, 
what i aim here is RO related. 
see this is my situation. Server 1 (Login,char,map) and i have Server 2 (char, map) this setup is dual server using 1 login-server
so what i aim to do is make the vote_points table (from database of server 1) be accessible to Server 2 npc script (which is from different host)

I hope you get what i'm trying to do.

Share this post


Link to post
Share on other sites
  • 0

You cant,

But you can implement that feature.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0