Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 [module idea] random effect item
Zeta Offline
Bored and experimenting
**
Posts: 9
Joined: Feb 2008
Post: #1
[module idea] random effect item
This is just one of those "random" thoughts I had that got pushed a bit further after looking at the demo function.

I have an idea for an item that would produce a random effect, such as decreasing or increasing the consumer's post count, decreasing or increasing a target user's post count or money, or removing all of the consumer's money (rare case, but this would also include the bank if enabled)

and also while it's fresh on my mind, ZiNgA, I think you left a trivial typo in your "simple demo module" comments:

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
// add your items in the _activate() function
function simpledemo_activate() {
	myplaza_add_item(array(
		"name"			=> 'Add 1000 to post count',
		"description"	=> 'Adds 1000 to your post count.',
		"cost"			=> 10.00,
	));
}

// remove all items we added earlier in the _deactivate() function <--shouldn't that be "_activate()", or am I completely misreading it? ~Zeta
function simpledemo_deactivate() {
	myplaza_remove_module_items();
}


(personally, I would rephrase the line in question as "remove all items we added using _activate() with the _deactivate() function")

02-23-2008 08:52 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: [module idea] random effect item
^ Yeah, you're right about that Tongue

As for a random effect item, well, it's probably best if you made one yourself, because there's simply too many possible things to include...

My Blog
02-24-2008 12:26 PM
Find all posts by this user Quote this message in a reply
blueparukia Offline
Junior Member
**
Posts: 35
Joined: Jan 2008
Post: #3
RE: [module idea] random effect item
And things such as post count would be reset anyway if you reset the configuration thingamajig.
02-24-2008 05:09 PM
Find all posts by this user Quote this message in a reply
Zeta Offline
Bored and experimenting
**
Posts: 9
Joined: Feb 2008
Post: #4
RE: [module idea] random effect item
ZiNgA BuRgA Wrote:As for a random effect item, well, it's probably best if you made one yourself, because there's simply too many possible things to include...

I don't have that much PHP experience, sadly, so unless someone gives me a crash course in PHP as it partains to MyBB and MyPlaza (and a small bit on where MySQL falls into this), I'm not gonna be able to [reliably] do this one myself. however, I do have some scripting language and programming language experience (built a few programs/games in VB6 all by myself and attempted (with some success) to debug some parts of a C++ program [StepMania, anyone?]), so if I can get the basics of what functions do what, I can probably get to the point of making the module myself. (read: I need more demo modules)

@blueparukia>>um, yeah, the only two people on my forum that have access to THAT part of the MyBB ACP is me and the domain owner himself.
(This post was last modified: 02-26-2008 08:30 AM by Zeta.)
02-26-2008 08:27 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #5
RE: [module idea] random effect item
Having programming experience will help you greatly learn PHP (if you ask me, PHP is probably one of the easiest languages - much easier than Visual Basic IMO).
I've got a quick tutorial on MyBB plugins if you want, here: http://mybbhacks.zingaburga.com/showthread.php?tid=74

My Blog
02-26-2008 09:30 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: