Neverwinter Vault

Expand AllContract All -Site -My Profile -Features

Neverwinter Nights 2

-NWN2 Files -NWN2 Game Info -NWN2 Resources -NWN2 Community

Neverwinter Nights

-NWN Files -NWN Game Info -NWN Resources -NWN Community

Vault Network
RPG Vault
VN Boards
IGN Vault
Vault Wiki
· Age of Conan
· Anarchy Online
· Asheron's Call
· Dark Age of Camelot
· City of Heroes
· D&D
· EVE Online
· EverQuest
· EverQuest 2
· Final Fantasy
· Guild Wars
· Lineage 2
· Lord of the Rings Online
· Middle Earth
· Neverwinter Nights
· Pirates of the Burning Sea
· Rise of the Argonauts
· Star Wars Galaxies
· Tabula Rasa
· The Matrix Online
· The Witcher
· Titan Quest
· Two Worlds
· Vanguard
· Warhammer
· World of Warcraft

Planet Network
Planet Hub

IGN
Games
Cheats
Entertainment

The Web   The Site  



NWN SCRIPTS

- Jump to comments -
Title  game (log) to forum scripts
Author  acomputerdood
Submitted / Updated  06-05-2009 / 06-05-2009
Category  Scripting routines
Expansions  Works on all versions
View Code  

Select All Text | View Code in separate window
Format  Code Only
Type  Type - Other
Includes  Custom
Description
i'm sure many (most?) persistant worlds have forums associated with them. on my server, we have a system of player owned shops that people could put items up for sale (this post is NOT that code). in olden days, people would then manually type everything in the "for sale" section of the game forum.

i thought, wouldn't it be clever to have a 3rd party (outside the game) script parse out the contents of the shop and automagically create a posting to our forum?

so i developed a sytem where the PC talks to an NPC in the room and asks for the contents of their shop to be advertised to the furm. the NPC would then take the contents of the shop and print all of the information about the items to the game's regular log file. (this part would be too heavily module dependent for me to submit)

what i am submitting, however, is the cron job i run every 5 minutes to read through the log file, parse out the items for sale, log in to our forum, and submit (or edit) the appropriate post.

you can see what the posts look like in our forums here:

Link

hopefully this (and looking through the code) will do justice to the system.


we've since taken this idea and expanded it to work with other systems like proclamations, quest events, etc. the real content is the parts of the script that logs you in and posts to the forum, since anything that can be read from the log files (or a NWNX DB i suppose) can then be posted.

NOTE: this code works for phpBB 3. i think i may have code for phpBB 2 somewhere i can dig up if people are interested.

NOTE 2: some knowledge of perl would help a lot when trying to figure out what i'm doing here.

NOTE 3: oh, and also see my post in the phpbb3 forums about the subject. i may have more explanations there that i didn't include here:
Link

NOTE 4: i guess this is pretty non-standard to not include any code for a NWN module, but i thought this system was an interesting idea that other people might want to use.

Files

NameTypeSizeDownloads
advertise.taradvertise.tar
Submitted: 06-05-2009 / Last Updated: 06-05-2009
tar10Kb73
a scrubbed version of my autoposting script. i tried to highlight the parts that were important (and specific to) the posting.
SCORE OUT OF 10
10
3 votes
View Stats
Cast Your Vote!

PORTFOLIO
Add this entry to your portfolio so you can track it
Manage your existing portfolios or create a new one.
SCREENS
No Images




You Must Be Logged In to Participate.
Comments (3):

Posted by Jezira at 2012-06-29 11:56:00    Voted 10.00 on 06/29/12
Sounds really handy. Thanks for sharing.
_________________________
800 sci-fi placeables! *Patch 02* | Modern Secret Base | SW Heads | SW Weapons! | Whitefall Exotic flowers * Updated 1.1! * | Whitefall Heads | Modern Inventory Icons | Mass Effect gun - NEW versions! | Bloody notes! | Horse statue

Posted by Saduj at 2012-06-19 20:00:33    Voted 10.00 on 06/19/12
Great work!
_________________________
Carcerian/Saduj's Submissions: (169 Portrait/Soundset Unlocker) (12 NWN Fonts) (30 NWN Fonts) (Auto-Emotes) (Custom Dragon Disciples) (Dynamic Wildshape) (Keyring) (NPC Schedules) (Sacred Shields) (Spawning Undead) (Shayans Subrace Engine for 169)

Posted by Dante Silvertongue at 2009-06-23 14:10:31    Voted 10.00 on 06/23/09
Your scripts are sick and inventive! Good job!

You must be Logged In to post comments in this section.

 
Most recent posts on the MMO General Boards
Analyst: Star Wars: The Old Republic Could...Analyst: Star Wars: The Old Republic Could Sell 3M: more numbers
- last reply by Acao on Aug 15, 2011 06:15 PM
which class will your first character be
- last reply by Blisteringballs on Aug 15, 2011 05:50 PM
New Community Content!
- posted by Vault_News on Aug 15, 2011 05:00 PM
New Community Content!
- posted by Vault_News on Aug 15, 2011 04:00 PM
NWN Idea Database Update
- posted by Vault_News on Aug 15, 2011 03:46 PM
Missing Votes for NWN2 Hall of Fame
- posted by Vault_News on Aug 15, 2011 03:40 PM
Missing Votes for NWN Hall of Fame
- posted by Vault_News on Aug 15, 2011 03:39 PM
Random Questions and game altering suggest...Random Questions and game altering suggestions!!!
- last reply by ArkadyTepes on Aug 15, 2011 03:22 PM
State of the game?
- last reply by LyricOpera on Aug 15, 2011 01:37 PM
Yesterday streaming, now demanding downloa...Yesterday streaming, now demanding download :(
- last reply by Sinane-tk on Aug 15, 2011 10:23 AM
 

   


IGN Entertainment
By continuing past this page, and by your continued use of this site, you agree to be bound by and abide by the User Agreement.
Copyright 1996-2011, IGN Entertainment, Inc. | Support | Privacy Policy | User Agreement | RSS Feeds
IGN’s enterprise databases running Oracle, SQL and MySQL are professionally monitored and managed by Pythian Remote DBA.


NWN2 Hall of Fame

HOF NWN2 Prefab Blueprints


View all Hall of Fame entries


Neverwinter Nights 2

TOP NWN2 Modules

NEW Modules

NEW Reviews

NEW INTL. Modules

TOP Hakpaks

TOP Gameworlds

TOP Tutorials

TOP Prefab:Areas

TOP Blueprints

TOP Plugins

TOP UI

TOP Other

TOP Visual Effects

TOP Scripts

TOP Tools

TOP Movies

TOP Models

TOP Characters





Hall of Fame

HOF NWN Modules


View all Hall of Fame entries


TOP NWN Modules

NEW NWN Modules

NEW Reviews

TOP Intl. Modules

TOP NWN Hakpaks

TOP NWN Gameworlds

TOP NWN Models

TOP NWN Portraits

TOP NWN Scripts

TOP NWN Prefabs

TOP NWN Other

TOP NWN Movies

TOP Sounds

TOP NWN Textures

TOP NWN Creatures

TOP NWN Characters