Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - feildmaster

Pages: 1 ... 7 8 [9]
121
Items / Re: Item request: Lotery
« on: June 25, 2007, 01:38:47 am »
An option? Wouldn't that be the only way it could work...?


cuz really... That's how it works right now...

122
Items / Re: Item request: Lotery
« on: June 06, 2007, 01:07:05 pm »
Actually I have been working on an item like this... I like the ideas you have for it and once i get the basics, I will make it do that stuff... package it all up.. n post it here.

123
Modifications / Re: SMFPets Version 0.2
« on: May 31, 2007, 02:00:19 am »
and hunger does down 1-2 a day, u can feed it as much as you want... there is currently no limit..

umm... w/e else i can prolly find out n tell u... >.>

124
Requested additions / Re: Refer a friend, get credits?
« on: May 31, 2007, 01:56:59 am »
do you not know of the refferal mod...? I have it as an attachment. if you want it... Oo

it works as


http://www.d3scene.com/forum/index.php?action=register;refferal= (then the persons ID number goes here)

125
Requested additions / Re: Refer a friend, get credits?
« on: May 30, 2007, 03:10:22 am »
K, sorry for double posting but I would rather not edit my first post yet AGAIN...

Here is the CORRECT code... it gives half of the "Register Points" to the person who referred the guy, into his bank account, use the second code to give it to the persons pocket. And like before, if you don't use the register points they get 500 (or change the 500 to something else)

This code goes into Register.php above

Code: (Search For) [Select]
// Registration options are always default options...
Code: (Referrer gets credits to bank) [Select]
if($referrer > 0)
{
$query = db_query("SELECT value FROM {$db_prefix}settings WHERE variable = 'shopRegAmount'", __FILE__, __LINE__);
$refural= mysql_fetch_assoc($query);
$ammountGiven = $refural['value']/'2';
$query2 = db_query ("SELECT moneyBank FROM {$db_prefix}members WHERE ID_MEMBER = '$referrer'", __FILE__, __LINE__);
$result = mysql_fetch_assoc($query2);
$bank = $result['moneyBank'];
if ($ammountGiven == 0) $ammountGiven = 500;
$newBank= $bank+$ammountGiven;
$query = db_query ("UPDATE {$db_prefix}members
SET moneyBank = '$newBank'
WHERE ID_MEMBER = '$referrer'", __FILE__, __LINE__);
}

Code: (Referrer gets credits to pocket) [Select]
if($referrer > 0)
{
$query = db_query("SELECT value FROM {$db_prefix}settings WHERE variable = 'shopRegAmount'", __FILE__, __LINE__);
$refural= mysql_fetch_assoc($query);
$ammountGiven = $refural['value']/'2';
$query2 = db_query ("SELECT money FROM {$db_prefix}members WHERE ID_MEMBER = '$referrer'", __FILE__, __LINE__);
$result = mysql_fetch_assoc($query2);
$pocket = $result['money'];
if ($ammountGiven == 0) $ammountGiven = 500;
$newPocket= $pocket+$ammountGiven;
$query = db_query ("UPDATE {$db_prefix}members
SET money= '$newPocket'
WHERE ID_MEMBER = '$referrer'", __FILE__, __LINE__);
}

The above codes work 100% correctly... Tested by me, of course.

126
Modifications / Re: SMFPets Version 0.2
« on: May 30, 2007, 01:34:47 am »
check your mysql... wait.. let me get a better look at .2...

lets see, it doesn't let u buy if you don't have more than the price in your pocket... hmm... but the log out.. that doesn't make any sense... sorry, can't help u. Oo

127
Modifications / Re: SMFPets Version 0.2
« on: May 30, 2007, 12:51:45 am »
the installation only includes "Blank Pet".

You have to change the breed in pets_breeds and make more for each one.. follow the template.

and the only reason i can think of for the permissions is...

the database failed to install correctly...

128
Requested additions / Re: Refer a friend, get credits?
« on: May 29, 2007, 04:14:03 pm »
That would be something like this...

On Register.php under sources...

Find this
// Registration options are always default options...

add this before that...
Code: [Select]
if($referrer > 0)
{
$query = db_query("SELECT * FROM {$db_prefix}settings", __FILE__, __LINE__);
$refural= mysql_fetch_assoc($query);
$ammountGiven = $refural['shopRegAmount']/2;
$query2 = db_query ("SELECT * FROM {$db_prefix}members WHERE ID_MEMBER = '$referrer'", __FILE__, __LINE__);
$result = mysql_fetch_assoc($query2);
$bank = $result['moneyBank'];
if ($ammountGiven == 0) $ammountGiven = 500;
$newBank= $bank+$ammountGiven;
$query = db_query ("UPDATE {$db_prefix}members
SET moneyBank = '$newBank'
WHERE ID_MEMBER = '$referrer'", __FILE__, __LINE__);
}

It will give half of the "Register amount Credits" or 500 if you don't have that set... should work... didn't get to fully test it. It will only give the credits if they register...

EDIT: it HAS been tested by me, and it does work.

EDIT 2: Ok, i forgot to make it do something... 1 moment b4 i get you the right code... (Forgot to make it convert some things...)

129
Modifications / Re: SMFPets Version 0.2
« on: May 28, 2007, 03:27:48 am »
hmm... dunno.

wrong "food.php" is the only thing i can think of... anyway... I just made this and figured i could share it... if you all want...

Code: (Top Pet) [Select]
global $boardurl, $db_prefix, $scripturl;

$result = db_query("
SELECT name, level, age, ownerid, breed
FROM {$db_prefix}shop_pets
ORDER BY level
DESC LIMIT 0,1", __FILE__, __LINE__);

$StrongestPet= mysql_fetch_assoc($result);

$ForumMember = mysql_query("
SELECT realName
FROM {$db_prefix}members
WHERE ID_MEMBER = $StrongestPet[ownerid]");
$MemberName = mysql_fetch_assoc($ForumMember);

echo '
   <table width="100%" height="100%">
     <tr>
        <td align="center">'.$StrongestPet['name'].' the '.$StrongestPet[breed].'
        </td>
     </tr>
        <td align="center">
            <img src="'.$boardurl.'/Sources/shop/pet_images/'.$StrongestPet[breed].'.gif">
        </td>
     </tr>
     <tr>
        <td align="center">
             Level:'.$StrongestPet['level'].'
        </td>
     </tr>
     <tr>
     <tr>
       <td>
         Owner: <a href="'.$scripturl.'?action=profile;u='.$StrongestPet['ownerid'].'">'.$MemberName['realName'].'</a>
       </td>
     </tr>
</table>';

(click on attachment to view a preview.)... It requires people to have their pets images the same name as the breed...

130
Modifications / Re: SMFPets Version 0.2
« on: May 23, 2007, 09:51:38 am »
ok! Thx for the fast reply!

131
Modifications / Re: SMFPets Version 0.2
« on: May 23, 2007, 09:05:39 am »
Hey umm... How would I go about downloading the mod? I can't ever access the download.

Any help would be appreciated. =)

Pages: 1 ... 7 8 [9]