View previous topic :: View next topic |
Author |
Message |
NamesDontMatter
Joined: 13 Dec 2005 Posts: 2
|
Posted: Tue Dec 13, 2005 22:50 Post subject: Ladder System |
|
|
Hi, I'm new to your forums.
I would like to create a PvP ladder system that can be viewed via php web page. I would also like to have this ladder be upgraded with character scores pvp kills deaths, and possibly even make up a KillDeath ratio for them. I would also like it to place them from first place to last. I was tld that this was the place to get the help for doing something like this. Furthermore I would like it to display characters stats when their not only on the module, but when their not on it as well. I asked some guys on Letoscript and they sent me over here so if you guys could assist me I would greatly appreciate it.
Here is the link to the Letoscript discussion on this subject.
http://weathersong.infopop.cc/groupee/forums/a/tpc/f/9616039431/m/7261004253
thankyou |
|
Back to top |
|
|
Papillon x-man
Joined: 28 Dec 2004 Posts: 1060 Location: Germany
|
Posted: Wed Dec 14, 2005 11:48 Post subject: |
|
|
Nice idea. What do you want to know ? _________________ Papillon |
|
Back to top |
|
|
NamesDontMatter
Joined: 13 Dec 2005 Posts: 2
|
Posted: Wed Dec 14, 2005 13:07 Post subject: |
|
|
basically how do I implement it? I'm slowly learning scripting, and I was hoping you guys could help me with this one. |
|
Back to top |
|
|
Papillon x-man
Joined: 28 Dec 2004 Posts: 1060 Location: Germany
|
Posted: Thu Dec 15, 2005 1:30 Post subject: |
|
|
Uhm... how should I put this... I guess you will not find someone that creates the entire script for you here. If you have specific questions on how to use certain queries or how a certain data structure should be defined, this is the place to ask.
If you do not know how to script something like this, your best option would be to find a capable scripter for your world. _________________ Papillon |
|
Back to top |
|
|
Moridin
Joined: 15 Dec 2005 Posts: 2
|
Posted: Thu Dec 15, 2005 4:53 Post subject: |
|
|
hello Papillon.
I am working with NamesDontMatter on this module. We really don't know where to go at the moment. I am sure we can gather the resources needed for this to work, we just do not know where to start.
Our best guess is that it works like this:
Scoreboard script in NWN assigns a temp variable for all players, and tracks kills, and deaths, and who they belong to
Some NWN script sends these variables to NWNX at a set interval or when a player logs off (to avoid lag), which then sends them to a PHP scoreboard script. This script adds these variable to the list posted of all characters scores.
I am sure we can gather most of the scripts, but we really have no clue how to make all the different programs and script work together. Somebody also mentioned NWNX using a mySQL database, and I have no idea what that is or how to set one up...or if it is even needed for that matter.
Any help you could give would be most appreciated, whether it is a link or anything. Thanks. |
|
Back to top |
|
|
Xildjian
Joined: 08 Jan 2005 Posts: 100
|
Posted: Thu Dec 15, 2005 5:04 Post subject: |
|
|
A quick brain storm:
What you want is a nwn script in the ondeath event that collects and records the information you want, and then sends it off to the database. I'm assuming the data you really want to store in the database are death and kill counters.
This should be a failrly quick process and not cause any lag. Then you can have the php script query the database and create a web page to show the scoreboard. If you have someone who knows php and database queries well you can get the database to do all the work for you.
I hope this helps. _________________ Member Shadow of Iniquity development team |
|
Back to top |
|
|
Moridin
Joined: 15 Dec 2005 Posts: 2
|
Posted: Thu Dec 15, 2005 7:42 Post subject: |
|
|
sweet, that is exactly what I needed to know. Some details lol. I think a friend of mine knows how to work with php so I will ask him. Maybe I can find the NWscript on the vault. |
|
Back to top |
|
|
|