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 - littleone

Pages: 1 [2] 3
16
General SMFShop Discussion / Re: SMFPets is Finally Here (0.1 out)
« on: March 24, 2007, 01:54:01 pm »
is it normal for the use skill area to disappear?

17
General SMFShop Discussion / Re: SMFPets is Finally Here
« on: March 07, 2007, 12:49:34 am »
ok, first the two files, one restores used akill points rather than wait until the next day...the max ap (skill oints) raises the maximum number of skill points your pet can have.


Ok I am still confused.  The Pets come with a Max skill points they have?  Where is that set, I didnt notice any such thing.  My last skill (of 4 skills) on one of my pets requires 20 points.  So i am a bit confused as to the difference between the max and the cur.  Basically the owner would need 20 points to reach the final skill.  Is there a limit someplace that would stop them from reaching 20 unless they used the one to raise the maxap?

Thanks

Code: [Select]
<?php
if (!class_exists(pet_Siamese_pet)) { //Make sure name matches php file
class pet_Siamese_pet extends petTemplate //Make sure name matches php file
function load_breed() {
$this->breed 'Siamese Cat'//The name of the breed(Use _ instead of whitespace or else Baby Jesus will cry)
$this->breed_desc 'This is a Siamese Cat'//The description of the breed.
    
$this->price 2000//The price to purchase one of these pets
    
$this->breed_img 'siamese.gif'//The img file of the breed
    
$this->skills_cnt 4//The number of skills the pet can use
        
    //Sample skill. For each addtional skill, increase the index by one.(So your next skill would be $this->skill[1])
$this->skill[0] = new skill;       //Required for making new skills. 
$this->skill[0]->name "Purr";   //Name of skill
$this->skill[0]->level_learn 1;  //Level the pet learns the skill
$this->skill[0]->level_max 2;    //Level the pet masters the skill
$this->skill[0]->cost 1;         //Cost, in skill points, of the skill.
$this->skill[1] = new skill;
$this->skill[1]->name "Use Litter Box";
$this->skill[1]->level_learn 2;
$this->skill[1]->level_max 4;
$this->skill[1]->cost 3;
$this->skill[2] = new skill;
$this->skill[2]->name "Tree Climb";
$this->skill[2]->level_learn 5;
$this->skill[2]->level_max 10;
$this->skill[2]->cost 8;
$this->skill[3] = new skill;
$this->skill[3]->name "Premier Cat Show Worthy";
$this->skill[3]->level_learn 10;
$this->skill[3]->level_max 20;
$this->skill[3]->cost 20;
}

//Sample skill function. A different function is needed for each skill. Skill function should be named "use_skill_i" where i is that skills index.
//Code these skills like you would code the action part of items. Currently input cannot be given into skills. Sorry.
function use_skill_0() {
global $db_prefix$ID_MEMBER;
return "{$this->name} has learned to Purr!";
}
function use_skill_1() {
global $db_prefix$ID_MEMBER;
$value mt_rand(30,600);
$result db_query("UPDATE {$db_prefix}members SET money = money + {$value} WHERE ID_MEMBER = {$ID_MEMBER}"__FILE____LINE__);
return ($this->name 'learned to use the litter box and "materialized"' formatMoney($value) / ' tokens for you!');
}
        function 
use_skill_2() {
global $db_prefix$ID_MEMBER;
$value mt_rand(80,1600);
$result db_query("UPDATE {$db_prefix}members SET money = money + {$value} WHERE ID_MEMBER = {$ID_MEMBER}"__FILE____LINE__);
return "{$this->name} climbs a near-by tree and drops down ".formatMoney($value)." tokens!";
}
function use_skill_3() {
global $db_prefix$ID_MEMBER;
$value mt_rand(200,4000);
$result db_query("UPDATE {$db_prefix}members SET money = money + {$value} WHERE ID_MEMBER = {$ID_MEMBER}"__FILE____LINE__);
return "{$this->name} place in a Premier Cat Show and earned you ".formatMoney($value)." tokens!";
}
}
}
?>

18
General SMFShop Discussion / Re: SMFPets is Finally Here
« on: March 06, 2007, 01:28:00 pm »
Also.... what does this refer to:

$this->skills_cnt = 1; //The number of skills the pet can use

as in the skill[0] would mean the count should be one and if you have skill[1] or [2] the count should be 2 or 3 respectively?




Another thing...

What is the difference between the Increase Skill and the Restore Skill files? The only thing I noticed different between the two was maxap and curap.

Does that mean that a user can only have so many skill points?  Like I have certain skills that require 25 points, would that not work or am i just missing something in the 2 files that makes them difference?

19
General SMFShop Discussion / Re: SMFPets is Finally Here
« on: March 06, 2007, 01:12:55 pm »
Will this work or am I off here ?  I think the return statement is wrong I didnt know what to do lol

Code: [Select]
function use_skill_2() {
global $db_prefix, $ID_MEMBER;
$value = mt_rand(1,5);
$result = db_query("UPDATE {$db_prefix}members SET maxap = maxap + {$value} WHERE ID_MEMBER = {$ID_MEMBER}", __FILE__, __LINE__);
return "{$this->name} climbs a near-by tree and drops down ".$value." to your skill points!";
}

20
Items / Re: User Icons
« on: March 04, 2007, 12:23:00 pm »
Well I created this item using a variant of Daniel's Flag item.  So if you have the flag item then you CANT use my version.  But I have a bunch of icons there, and they displace underneath your signature.  I added it via the package manager but it seems to have a problem doing the modificiation of the template so you will have to do that manually yourself, its only a couple of lines and all ur doing is adding it in, but it works perfectly other than that.

Its attached, download it, upload it via package manager, it WILL give you an error on Display.template.php, go ahead and do the install anyways.  Once done, go to your Display.template.php and find

Code: [Select]
<div class="signature">', $message['member']['signature'], '</div>';
After that add:

Code: [Select]
//BEGIN SMFShop Profile Images Item 0.1 Beta
    global $db_prefix, $boardurl;
$result_flag = db_query("SELECT shop_Flag
FROM {$db_prefix}members
WHERE ID_MEMBER = {$message['member']['id']}
LIMIT 1", __FILE__, __LINE__);
$row_flag = mysql_fetch_assoc($result_flag);

// Is there a flag set?
if ($row_flag['shop_Flag'] !== '')
{
// Output the text at the start
echo '
<hr width="100%" size="1" class="hrcolor" />';
                                echo 'Icons: <br />' ;

// Get the flags into an array
$flags = explode(',', $row_flag['shop_Flag']);
// Loop through the array
foreach ($flags as $flag)
{
// Is the flag real (not a blank string)?
if ($flag != '')
echo '<img src="', $boardurl, '/Sources/shop/flag_images/', $flag, '"> ';
}

// Insert a line break
echo '<br />';
}
//END SMFShop Icon Item

AGAIN!  If you have the FLAG Item that was provided by Daniel installed, do NOT attempt to install this item.  I did not bother to rename any of the tables or otherwise.  If someone wants to do so please feel free.  This is my first attempt at php coding and all i really did was modify the flag item's code.

The item comes with over 100 icons already in place.  If you want to add ur own, just FTP to the flag_images folder on ur server and add the images.  They will automatically appear on the drop down list of icon selections.

There isnt a way to remove an icon ones a member has purchased and added it to their name unless u go into the MySQL data base and find the member and manually remove it.  Once its there its pretty much permanent.

21
Items / Re: User Selected Awards
« on: February 06, 2007, 01:36:18 am »
Actually this code is quite dangerous in the sense that the awards mod doesnt randomize anything.  I am the one who paid jay for the mod and worked one on one with him to get it to work.  If you ranomize it your run the risk of duplicating the award number which will either cause u errors or over writing something you dont want over run.  here is the way it assigns the awards:

It combines the award # with the member # and places 3 zeros in the middle to avoid duplications....

So if you have member 25 and award 3 you gets 250003 or either 300025 (dont remember what order its in)  We had the problem originally of having not having zeros which lead to a problem.  Some members were not getting awards because the award # had already been assigned. So it was 253 meaning if you were member 2 you couldnt get award 53 and if you were member 25 you couldnt get award 3 so we fixed that with adding the three 000s in the middle.  Hope that helps you fix your code, otherwise you will have issues with randomizing.

22
SMFShop Announcements / Re: SMFShop 3.0 now out!
« on: January 20, 2007, 01:04:07 am »
I need to know what file this is in.  It showed up twice for some reason so i need to go in and remove it.  I'll be able to figure out the duplication, just need to know what file.
 Thanks


23
Coding / Re: Need help with making an Item
« on: January 08, 2007, 06:56:49 am »
Its probably due to the fact that you have to had the "permissions" to add an award to a members album.  I was the one requested Jay make this mod.  Sorry have little experience with PHP but I know quite about about the Awards mod since it was made entirely to my specifications ;)

24
Items / Re: 'Profile Image' item
« on: January 07, 2007, 05:00:54 pm »
Say I want to modify this to display more than one image.  What do i do?  Do I just remove the Limit 1? or do have to set it at like Limit 10 or whatever?

How would you go about removing an image once purchased and placed next to their name?  In the Database? and if so where in the DB?

25
Items / Re: User Icons
« on: January 07, 2007, 04:50:15 pm »
Yes this look awesome.  No offense but this shop mod is one of the best mods out there but there is practically nothing to it. Daniel I know your busy and stuff, but you have done the Askmet and the Flash integration mods, how about some items for the shop now, like a lottery system, that long asked for Pets mod, or these icon things.  These icons look like a fantastic idea, although Id rather see them under the signature than on the left side.

26
General SMFShop Discussion / Re: Send Email to Admin NOT WORKING
« on: September 06, 2006, 07:19:19 am »
What do you mean by "not working"?

If its something like, you send the mail, but it doesnt arrive, are you using Hotmail? For some reason, Hotmail likes to delete emails from some servers. Still havent looked into how to get around this.

Yea I figured it out about an hour after I made the post.  It was hotmail.  Thats completely dumb of hotmail.  Anyway I am pretty sure its because it coming from "Nobody" so since hotmail dont recognize a sender, is probably why its deleting it.

27
General SMFShop Discussion / Send Email to Admin NOT WORKING
« on: September 05, 2006, 02:31:48 am »
For some reason the "Send email to admin" does not work.  Any reason for this?  I am using 2.2

28
General SMFShop Discussion / Re: RC 3?
« on: August 28, 2006, 12:53:48 pm »
I cant change the CMOD on the shop or shop/items folder.  I keep getting a permission denied error, and therefore I am unable to move or paste my Change_All.php into the shop/items folder.  Any suggestions would help a bunch!

29
General SMFShop Discussion / Re: RC 3?
« on: August 28, 2006, 03:00:09 am »
Ok I am trying to upload the Change_All to the sources/shop/items folder but it wont let me.  I keep getting an error saying its now allowed or that there is some kind of timeout.  I didnt have this problem last time

30
General SMFShop Discussion / Re: RC 3?
« on: August 27, 2006, 08:23:57 am »
When I look all I see is Arcade 2.2 with a last updated date of in July.  I see it says under the news its been updated but no where do I see a 1.1 RC 3 only 1.1 RC 2?  Help please ;)

Pages: 1 [2] 3