DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • September 02, 2010, 09:42:36 AM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

Pages: [1]   Go Down
  Print  
Author Topic: Roman Bath  (Read 2284 times)
0 Members and 1 Guest are viewing this topic.
sixf00t4
Mod God
*****
Offline Offline

Posts: 1916



View Profile WWW
« on: April 27, 2005, 07:09:50 AM »

http://dragonprime.net/index.php?module=Downloads;sa=dlview;id=1196

Just something someone had suggested and i kinda wrote it as i thought about what to write.  it's just a chat area (with a hook, so potential for more areas) for elite players.  you can either assign users access manually, or set it to automatically adjust for the top X dragonkillers.  as with everything i do, feedback is needed because i have low self esteem.

I guess it could also be used as a place for good Role Players to do their thing, outside of the normal banter.
« Last Edit: February 07, 2007, 12:01:51 AM by sixf00t4 » Logged

Dannic
Guest
« Reply #1 on: April 27, 2005, 04:27:27 PM »

does it count admin or keep them out?

Also, can we choose which city it shows up in?
« Last Edit: April 27, 2005, 04:28:35 PM by Dannic » Logged
Lurch
Member
Militia
**
Offline Offline

Posts: 85


I'm a llama!


View Profile WWW
« Reply #2 on: April 27, 2005, 08:36:27 PM »

Just after login  I get the following:

update module_userprefs set value=0 where value=1 and setting=bathaccess and modulename=romanbath

Unknown column 'bathaccess' in 'where clause'
Call Stack:
1: db_query("update module_userprefs s...") called from romanbath.php on line 45
2: romanbath_dohook("newday-runonce", Array()) called from modules.php on line 503
3: modulehook("newday-runonce", Array()) called from newday.php on line 310
Logged
robert
Old Dog
Mod God
*****
Offline Offline

Posts: 1009


LoGD Buff!


View Profile WWW
« Reply #3 on: April 29, 2005, 03:53:42 PM »


Has this mod been fixed yet?
Logged

sixf00t4
Mod God
*****
Offline Offline

Posts: 1916



View Profile WWW
« Reply #4 on: May 03, 2005, 07:31:47 AM »

that bug should be fixed.

i am having a problem even getting it to run on newday-runonce though, dunno why.  anyone want to show me the light?
Logged

Sichae
iMod God
SVN Users
Mod God
*
Offline Offline

Posts: 3458


If ya didn't get it by now... you're hopeless...


View Profile WWW
« Reply #5 on: May 03, 2005, 07:43:55 AM »

The Userprefs are only put into the DB, even a 0 value, when a part of the script is activated by that ID.

Therefore, you might wish to run a newday-intercept and make sure that if no value is set, to set one. Smiley
Logged

If you didn't understand anything in the above post, don't try to attempt anything suggested.

sixf00t4
Mod God
*****
Offline Offline

Posts: 1916



View Profile WWW
« Reply #6 on: May 03, 2005, 08:10:08 AM »

Code:
    case "newday-runonce":
        if(get_module_setting("dkers","romanbath")){
            $sql="update ".db_prefix("module_userprefs")." set value=0 where value=1 and setting='bathaccess' and modulename='romanbath'";
            db_query($sql);
            $sql="Select acctid from ".db_prefix("accounts")." where dragonkills>0 and locked=0 order by dragonkills DESC limit '".get_module_setting("howmany","romanbath")."'";
            $result=db_query($sql);
            for ($i=0;$i<db_num_rows($result);$i++){    
                $row = db_fetch_assoc($result);
                set_module_pref("bathaccess",1,"romanbath",$row['acctid']);
                        }
        }
        break;

...userprefs are involved in that?
Logged

Sichae
iMod God
SVN Users
Mod God
*
Offline Offline

Posts: 3458


If ya didn't get it by now... you're hopeless...


View Profile WWW
« Reply #7 on: May 03, 2005, 10:49:24 AM »

Looks like you do have an SQL query. And it WAS querying to a null value, thus the error stated.

Look at the table Sixf00t.. module_USERPREFS. Tongue
Logged

If you didn't understand anything in the above post, don't try to attempt anything suggested.

sixf00t4
Mod God
*****
Offline Offline

Posts: 1916



View Profile WWW
« Reply #8 on: May 03, 2005, 11:22:13 AM »

ah, i thought you were talking the ingame functions, like 'set_module_pref'  when i was doing it straight sql.
and even so, i put
Code:
output("why won't this work??");
as the first line after case "newday-runonce":
and nothing happenned on an inflicted new day, waiting for a game day, or uninstalling and doing it all over again. funky monkey.
Logged

Talisman
Administrator
Mod God
*****
Offline Offline

Posts: 5223



View Profile WWW
« Reply #9 on: May 03, 2005, 08:19:24 PM »

A line of text in newday-runonce will only appear once per day, if at all.
Logged

Play the latest beta version here on DragonPrime
sixf00t4
Mod God
*****
Offline Offline

Posts: 1916



View Profile WWW
« Reply #10 on: May 04, 2005, 01:59:03 AM »

Thank you Captain Obvious. Wink
Logged

sixf00t4
Mod God
*****
Offline Offline

Posts: 1916



View Profile WWW
« Reply #11 on: May 05, 2005, 03:50:03 AM »

ok, this is working perfect, and i added some options as to where it is located to appease Dannic Wink
Logged

sixf00t4
Mod God
*****
Offline Offline

Posts: 1916



View Profile WWW
« Reply #12 on: December 06, 2007, 07:05:48 PM »

nightborn made some changes to this module, should be a lot faster and changed the location to the gardens.  already in the uploads section.
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Please take the time to read the FAQ and browse the DragonPedia

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Who's Online
33 Guests, 1 User
ThricebornPhoenix
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search