Welcome, Guest. Please Login or Register.
May 14, 2025, 08:38:42 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  RPG Mod Defined « previous next »
Pages: 1 2 [3] 4 5 ... 7 Reply Ignore Print
Author Topic: RPG Mod Defined  (Read 6876 times)
irbrian
Sr. Member
****
Posts: 489


I create. Therefore I am.

brian@inverse-reality.com WWW
Re:RPG Mod Defined
« Reply #30 on: December 31, 2001, 11:01:39 PM »
Reply with quote

Thanks for the link scx, it really helped (well, along with some assistance from the PHP.Net manuals). ;D Its amazing how much I accomplish when I'm slacking off at my job!! ::)

But hey, here it is, in all its [unperfected] glory. SCX, please look over it and make sure I didn't make any critical mistakes -- and PLEASE, if you get a chance, try this out on your test board. I need to know if it really works. If it does I'll feel like a genius. :)

[b]In Post.pl[/b]:

   if($username != 'Guest') {
      /* If member isn't a guest, then update their Posts total. */
      ++$settings[6];
      $request = mysql_query("UPDATE {$db_prefix}members SET posts=posts+1 WHERE ID_MEMBER=$ID_MEMBER $doLimitOne");

      /* RPG MOD - beginning */

      // Request this member's info from Database.
      $request = mysql_query ("SELECT * FROM {$db_prefix}members WHERE ID_MEMBER=$ID_MEMBER $doLimitOne");

      // Store the info in an array called $row
      $row = mysql_fetch_array($request);

      // Calculate the karma balance (in case using "+/-" Karma mode).
      $expKarma = $row[karmaGood] - exp$row[karmaBad];

      // Experience to be added = Default + (Karma Doubled).
      // Note: Default "100" will later be added as an admin setting
      $addExp = 100 + ($expKarma * 2);

      // If the amount would be less than zero, don't award any exp points. :)
      if ($addExp <= 0) {
         $addExp = 0;
      }

      // Add the calculated value ($addExp) to the member's current experience.
      $request = mysql_query("UPDATE {$db_prefix}members SET exp=exp+{$addExp} WHERE ID_MEMBER=$ID_MEMBER $doLimitOne");

      /* RPG MOD - end */

Update: I had to make a couple changes to the code tonight, I realized a couple things I did stupid. Not so much wrong (although they were) as just stupid.

Update: More changes. Now much closer to being typo-free.
« Last Edit: January 01, 2002, 08:45:55 PM by irbrian » Logged

Imparting great wisdom daily to those who will mistake my words as such.
scx
Full Member
***
Posts: 218


Re:RPG Mod Defined
« Reply #31 on: January 01, 2002, 12:31:58 PM »
Reply with quote

I send you IM already, sorry about that + exp$row thing, I havent looked here first ;D
Logged
irbrian
Sr. Member
****
Posts: 489


I create. Therefore I am.

brian@inverse-reality.com WWW
Re:RPG Mod Defined
« Reply #32 on: January 01, 2002, 08:47:47 PM »
Reply with quote

This is great! Now all we need to do is figure out how to add options in the admin panel and then package it. "Installed mods and settings" would be the best place for the settings, but I don't know how to add them, or package as a mod :(
Logged

Imparting great wisdom daily to those who will mistake my words as such.
scx
Full Member
***
Posts: 218


Re:RPG Mod Defined
« Reply #33 on: January 03, 2002, 06:52:27 PM »
Reply with quote

I guess this mod has to wait untill developers release service pack or something they're talking about. ;D
Logged
irbrian
Sr. Member
****
Posts: 489


I create. Therefore I am.

brian@inverse-reality.com WWW
Re:RPG Mod Defined
« Reply #34 on: January 03, 2002, 10:07:50 PM »
Reply with quote

yeah, it sounds like it would be a bad idea to release ANY mod yet.
Logged

Imparting great wisdom daily to those who will mistake my words as such.
Kalin Somphane
YaBB God
*****
Posts: 555


I am personal text!

ICQ - 20280987 WWW
Re:RPG Mod Defined
« Reply #35 on: January 06, 2002, 11:38:44 PM »
Reply with quote

This mod sounds like Diablo 2: Expansion but without all the fancy graphics.
Logged

EZTARCH - The Original YaBBSE PHP Portal
Unlike many others, I accept support requests, in exchange for godly worship every weekday including saturday and sunday.
irbrian
Sr. Member
****
Posts: 489


I create. Therefore I am.

brian@inverse-reality.com WWW
Re:RPG Mod Defined
« Reply #36 on: January 07, 2002, 02:32:49 AM »
Reply with quote

Yes, tarch, because Diablo 2 is an RPG. :) Actually it sounds pretty much like any RPG.. almost all RPGs use "experience" to determine when a player should reach a new level.

But I take it, by your comment, that you are interested. If thats the case, I'm glad to hear it and thanks for your support. Hope to hear more from ya.
Logged

Imparting great wisdom daily to those who will mistake my words as such.
Wiedo
Jr. Member
**
Posts: 50


I love YaBB SE - sure I do baby!

ICQ - 14949685 WWW
Re:RPG Mod Defined
« Reply #37 on: January 07, 2002, 02:55:44 PM »
Reply with quote

http://www.yabb.info/community/index.php?board=141;action=display;threadid=3652

See this one... maybe you can include this to?
Logged
Kalin Somphane
YaBB God
*****
Posts: 555


I am personal text!

ICQ - 20280987 WWW
Re:RPG Mod Defined
« Reply #38 on: January 07, 2002, 04:18:25 PM »
Reply with quote

I would beta it on my alpha board :)
Logged

EZTARCH - The Original YaBBSE PHP Portal
Unlike many others, I accept support requests, in exchange for godly worship every weekday including saturday and sunday.
DiabloRex
Full Member
***
Posts: 103


ICQ - 11560069 WWW
Re:RPG Mod Defined
« Reply #39 on: January 07, 2002, 04:49:17 PM »
Reply with quote

Quote from: irbrian on January 07, 2002, 02:32:49 AMYes, tarch, because Diablo 2 is an RPG. :)

Diablo 2 can hardly be classifed as an RPG, but lets not have that discussion now ;)


I am definitely interested in this mod, but for my forum it would be great if it can be limited to a number of boards instead of the whole forum
Logged
irbrian
Sr. Member
****
Posts: 489


I create. Therefore I am.

brian@inverse-reality.com WWW
Re:RPG Mod Defined
« Reply #40 on: January 07, 2002, 04:55:55 PM »
Reply with quote

There are far too many things yet that cannot be confined to individual boards as opposed to categories or an entire forum. When the mod is released it will be a modification that will apply to the forum as a whole. In the future things might be different... and they might not.

As for Diablo 2 not being an RPG, I agree with you.. partially. It depends on your definition of RPG. But as you said, lets not get into that now. :) My point was that this system bears no resemblance specifically to any one particular game or series of games... it is a simple form of RPG Style advancement within a message board forum setting. Nothing more, nothing less. If someone tells you otherwise, they are lying to you and you should threaten to cut out their tongue. :)
Logged

Imparting great wisdom daily to those who will mistake my words as such.
scx
Full Member
***
Posts: 218


Re:RPG Mod Defined
« Reply #41 on: January 07, 2002, 05:07:23 PM »
Reply with quote

Everything I have done for this mod (this isnt much yet ;)) is based on my knowledge from Baldur's Gate and thus D&D style:
I took exp points for levels from the class druid and mostly this is it. :( I also tried to add strenght, constitution, dexterity, wisdom, intelligence and charisma to it, but it's not very useful yet. ;)

I wanted also to set up test board, and I did that at coolfreepages but the server is very slow sometimes and it took about an hour at 128 kb/s to upload files. I'll probably do it at another free host in the near future. ;D
Logged
irbrian
Sr. Member
****
Posts: 489


I create. Therefore I am.

brian@inverse-reality.com WWW
Re:RPG Mod Defined
« Reply #42 on: January 07, 2002, 07:23:43 PM »
Reply with quote

SCX -- I could probably give you an FTP account hosted on our server. I can also go ahead and install YaBB SE there for you. Heck I can set it up right now if you're interested.

I'd have to ask you to just upload things related to the board itself though, as our server space is draining rapidly. I'm not concerned though as we still have about 100 mb left.

Send me an IM with your desired username (aka URL directory) and password, and I'll send back the info you need to get in. :)
Logged

Imparting great wisdom daily to those who will mistake my words as such.
Wiedo
Jr. Member
**
Posts: 50


I love YaBB SE - sure I do baby!

ICQ - 14949685 WWW
Re:RPG Mod Defined
« Reply #43 on: January 09, 2002, 10:03:30 PM »
Reply with quote

Can I see an example of it already?
Logged
scx
Full Member
***
Posts: 218


Re:RPG Mod Defined
« Reply #44 on: January 11, 2002, 04:16:20 PM »
Reply with quote

If irbrian allows, you'll can see it soon. (After I upload files. ;D)
Is that OK with you irbrian?
Logged
Pages: 1 2 [3] 4 5 ... 7 Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  RPG Mod Defined « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.163 seconds with 20 queries.