Author Topic: New items: Red Balls  (Read 46700 times)

Offline dothacker

Re: New items: Red Balls
« Reply #45 on: December 26, 2007, 10:40:20 am »
Looks like you worked hard on this but I want to know, what does this do exactly? Screenshots too please? Thanks.

Offline David

Re: New items: Red Balls
« Reply #46 on: December 26, 2007, 02:37:48 pm »
Just like any mod the best way for you to know what it does is to put it on a test forum and try it out...you'll know more that way than any explanation or screenshot could give you.

Offline dothacker

Re: New items: Red Balls
« Reply #47 on: December 26, 2007, 03:19:42 pm »
Sorry, I've only got one forum. If you have a test forum setup I would like to see, if not oh well.

Offline Bandit

Re: An idea of Item Redball
« Reply #48 on: December 30, 2007, 11:03:56 am »
Redball2 does sent a PM but only to the one you threw it to, if I sent the ball to some one i don't know what it did, of the receiver of theball, and that's annoying

so if I throw a ball at my victim, I too want to know if I win or lose... how can this be done ?

FIND:
Code: [Select]
return "You've thrown the ball to {$_POST['stealfrom']} if he catches it he'll gain money, else he'll lose it!!!";
REPLACE WITH
Code: [Select]
return "You've thrown the ball to {$_POST['stealfrom']} he gain/lost ".formatMoney($amount)." credit!!!";


And you know what would be really nice? is if when the ball is thrown to someone, a PM well be send, BUT there is a xx second wait, and if the person reply the PM with in the xx second wait, he catchs the ball, he gain money and the ball. if he dosn't, he loses money and no one get the ball.

Think that could be done?

I used this code in my site, and it works great, but is there a way for it to say whether the credits were gained or lost instead of "...gained/lost xxx credits"? It tells me the number of credits, but it doesn't say whether or not the credits were given to the recipient or taken from them.

Offline zsw007

Re: An idea of Item Redball
« Reply #49 on: December 31, 2007, 09:53:36 am »
Redball2 does sent a PM but only to the one you threw it to, if I sent the ball to some one i don't know what it did, of the receiver of theball, and that's annoying

so if I throw a ball at my victim, I too want to know if I win or lose... how can this be done ?

FIND:
Code: [Select]
return "You've thrown the ball to {$_POST['stealfrom']} if he catches it he'll gain money, else he'll lose it!!!";
REPLACE WITH
Code: [Select]
return "You've thrown the ball to {$_POST['stealfrom']} he gain/lost ".formatMoney($amount)." credit!!!";


And you know what would be really nice? is if when the ball is thrown to someone, a PM well be send, BUT there is a xx second wait, and if the person reply the PM with in the xx second wait, he catchs the ball, he gain money and the ball. if he dosn't, he loses money and no one get the ball.

Think that could be done?

I used this code in my site, and it works great, but is there a way for it to say whether the credits were gained or lost instead of "...gained/lost xxx credits"? It tells me the number of credits, but it doesn't say whether or not the credits were given to the recipient or taken from them.

what do u mean?

do u mean you want it  just say  he gain

or just say  he

or if he gain it says  he gain  and if he lost,  it says  he lost

can u give an example?
Quote from: zsw007
im not an expert yet,sorry

Applaud me if you like my post(which means i helped you), i like Applauds :P

Offline Bandit

Re: New items: Red Balls
« Reply #50 on: December 31, 2007, 01:41:56 pm »
That's exactly what I mean. If the recipient lost credits, it should say he lost XX credits. If he gained credits, then it should say he gained XX credits. The message I get after I throw the ball should say that as well as the PM the recipient gets should also tell them whether they won or lost.

Offline zsw007

Re: New items: Red Balls
« Reply #51 on: January 01, 2008, 06:15:44 am »
That's exactly what I mean. If the recipient lost credits, it should say he lost XX credits. If he gained credits, then it should say he gained XX credits. The message I get after I throw the ball should say that as well as the PM the recipient gets should also tell them whether they won or lost.

well... im not a PHP person, im more of a VB person.

Probaly there can be a check where if the number is negative it says lots, and if is positive it says gain. But i don't know how to do that yet. sorry.
Quote from: zsw007
im not an expert yet,sorry

Applaud me if you like my post(which means i helped you), i like Applauds :P

Offline Ricardo-san

Re: New items: Red Balls
« Reply #52 on: March 25, 2008, 01:55:56 am »
I got a problem here. Says:
Parse error: syntax error, unexpected T_STRING in /home/*****/public_html/phorum/Sources/shop/items/Redball2.php on line 81 :(
« Last Edit: March 25, 2008, 02:18:02 am by Ricardo-san »

Offline Masterhand

Re: New items: Red Balls
« Reply #53 on: April 08, 2008, 07:11:57 am »
Wow. I haven't really been here / coded with SMF in a long time. I have a few things I need to sort out first. Then I can fix up the code.
~If at first you don't succed, hide all evidence that you tried.~ - Homer Simpson

Offline City Builder

Re: New items: Red Balls
« Reply #54 on: May 19, 2008, 04:29:53 am »
I think this would be more interesting to our users if instead of reducing their post count it took away xx amount of credits from them.  Our users all tell me the same thing about karma and post count, "They mean nothing to us" is what they tell me, and "if anybody judges me and my writings by my post count or my karma then they are a fool" is also what they say.

So anyway, I wonder if there is a way to take away credits from user instead of dropping post count.

Offline spearfish

Re: New items: Red Balls
« Reply #55 on: May 19, 2008, 08:25:34 am »
Should be easy enough.... replace "posts" with "money" or something like that.

Offline bgwebmistress

Re: New items: Red Balls
« Reply #56 on: June 15, 2008, 02:15:52 am »
Hi!  I am getting this error with both of the redball scripts.
Quote
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/.elvee/bgwebmistress/www.burn-gorman.com/smf/Sources/shop/items/RedBall.php on line 2

Parse error: syntax error, unexpected T_STRING in /home/.elvee/bgwebmistress/www.burn-gorman.com/smf/Sources/shop/items/RedBall.php on line 2

AND....

Quote
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/.elvee/bgwebmistress/www.burn-gorman.com/smf/Sources/shop/items/Redball2.php on line 2

Parse error: syntax error, unexpected T_STRING in /home/.elvee/bgwebmistress/www.burn-gorman.com/smf/Sources/shop/items/Redball2.php on line 2

Offline Masterhand

Re: New items: Red Balls
« Reply #57 on: June 25, 2008, 02:00:18 am »
Hi!  I am getting this error with both of the redball scripts.
Quote
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/.elvee/bgwebmistress/www.burn-gorman.com/smf/Sources/shop/items/RedBall.php on line 2

Parse error: syntax error, unexpected T_STRING in /home/.elvee/bgwebmistress/www.burn-gorman.com/smf/Sources/shop/items/RedBall.php on line 2

AND....

Quote
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/.elvee/bgwebmistress/www.burn-gorman.com/smf/Sources/shop/items/Redball2.php on line 2

Parse error: syntax error, unexpected T_STRING in /home/.elvee/bgwebmistress/www.burn-gorman.com/smf/Sources/shop/items/Redball2.php on line 2

Warning: Unexpected character in input: '\' Means that you put an invalid character into the input field. [I think]. Does that error happen after you hit submit? Also, what is the name of the user you're putting in if you are?

I think this would be more interesting to our users if instead of reducing their post count it took away xx amount of credits from them.  Our users all tell me the same thing about karma and post count, "They mean nothing to us" is what they tell me, and "if anybody judges me and my writings by my post count or my karma then they are a fool" is also what they say.

So anyway, I wonder if there is a way to take away credits from user instead of dropping post count.

Redball2 does that  :P.
« Last Edit: June 25, 2008, 02:03:12 am by Masterhand »
~If at first you don't succed, hide all evidence that you tried.~ - Homer Simpson

Offline triforceguy1

Re: New items: Red Balls
« Reply #58 on: August 07, 2009, 08:03:18 pm »
Hi,

This may not be possible but I'll ask anyway, I was wondering if it's possible for members that catch it have the choice to throw it to someone else and so forth until someone drops the ball and every time someone catches the ball they earn money and every time it's dropped that member looses money and it has a different pm message when it's cached or dropped.

Thanks
Leon J. Fletcher

Offline marching elite

Re: An idea of Item Redball
« Reply #59 on: September 15, 2009, 07:38:33 pm »
Redball2 does sent a PM but only to the one you threw it to, if I sent the ball to some one i don't know what it did, of the receiver of theball, and that's annoying

so if I throw a ball at my victim, I too want to know if I win or lose... how can this be done ?

FIND:
Code: [Select]
return "You've thrown the ball to {$_POST['stealfrom']} if he catches it he'll gain money, else he'll lose it!!!";
REPLACE WITH
Code: [Select]
return "You've thrown the ball to {$_POST['stealfrom']} he gain/lost ".formatMoney($amount)." credit!!!";


And you know what would be really nice? is if when the ball is thrown to someone, a PM well be send, BUT there is a xx second wait, and if the person reply the PM with in the xx second wait, he catchs the ball, he gain money and the ball. if he dosn't, he loses money and no one get the ball.

Think that could be done?

I used this code in my site, and it works great, but is there a way for it to say whether the credits were gained or lost instead of "...gained/lost xxx credits"? It tells me the number of credits, but it doesn't say whether or not the credits were given to the recipient or taken from them.

I too would also like to know how you change the code so it either says you gain the credits or you lose instead of both?