DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • August 29, 2016, 04:26:11 PM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

Pages: [1]   Go Down
  Print  
Author Topic: Pets Addon - Wild Pets  (Read 5100 times)
0 Members and 1 Guest are viewing this topic.
Eth
Member
Codemeister
****
Offline Offline

Posts: 302


Shameless Drunk


View Profile
« on: February 24, 2005, 10:09:06 PM »

My first addon for the pet shop module, this forest special will give you a chance to encounter a wild animal in the forest and attempt to make it your pet. Comes with 7 default pets and utilizes the third category for pets in  the Pet Editor, the one labeled as "Special".

Edit: Any pet you add to the Special category in the editor will be able to be found via this special event. That's pretty much why the category exists.

Edit Two: Only users who don't have a pet can have a chance at capturing a wild animal.

Edit Three: You shouldn't get SQL errors anymore. Small oversight, on my part.

Edit Four: Updated to work with Lonny's Module Updater thingy.

Note
You need to have the Pet Shop module v1.5 installed and active for this to work. You can find the relevant thread over here.

Version 1.1 Linkage:
http://dragonprime.net/users/Eth/wildpets.zip
« Last Edit: February 27, 2005, 09:25:10 PM by Eth » Logged

Purveyor of fine cloaks, gloves, boots, gerbils, and Siamese cats.
Lightbringer
Member
Codemeister
****
Offline Offline

Posts: 267


Life's a lich and then you don't die...damn unlife


View Profile
« Reply #1 on: February 24, 2005, 11:54:18 PM »

Was wondering about the special part lol...

Will take a look...the players love the Pet Shop
Logged

________________________ _____________________

Lightbringer
PHP/SQL/VB.NET/C#/AJAX Developer
Lurch
Guest
« Reply #2 on: February 25, 2005, 05:14:36 PM »

INSERT INTO pets VALUES (0, '`QFox', 2, 300, 0, 50, 1, 0, 0, 1, 'A small, wily fox which makes it\'s home in the deep, dark forest.', 'With a small yawn, the fox stretches and is ready for the day\'s adventure.', 'Your fox looks about the village with much apprehension', 'Your fox decides to take a nap among the bushes.', 'Tail between it\'s legs, your fox retreats to the underbrush.', 15);

Column count doesn't match value count at row 1
Logged
Jim
Guest
« Reply #3 on: February 25, 2005, 05:20:59 PM »

Got the same thing....
Logged
Eth
Member
Codemeister
****
Offline Offline

Posts: 302


Shameless Drunk


View Profile
« Reply #4 on: February 25, 2005, 08:05:10 PM »

Edit: You need to be running the newest version of the pets module for this one to work. There's a new field in the pets table, which is why you're encountering that error.

See the relevant thread in the module forum. Hell, just follow the link I have in my first post up top. Upgrade, and everything will be running just peachy for ya.

« Last Edit: February 25, 2005, 08:15:09 PM by Eth » Logged

Purveyor of fine cloaks, gloves, boots, gerbils, and Siamese cats.
Lurch
Guest
« Reply #5 on: February 25, 2005, 08:41:57 PM »

Okay so I have the latest petpack and have upgraded., but still get the same error.

Might try adding it manually Smiley
Logged
Eth
Member
Codemeister
****
Offline Offline

Posts: 302


Shameless Drunk


View Profile
« Reply #6 on: February 25, 2005, 09:00:26 PM »

Alright, that should do it. The turns were being tacked on at the end, when they should've been just before the the shop description in the SQL inserts.

Updated to v1.1 to reflect my little oversight.
Logged

Purveyor of fine cloaks, gloves, boots, gerbils, and Siamese cats.
Forge
Guest
« Reply #7 on: February 25, 2005, 10:10:21 PM »

looks like you got it straightened out as far as the install goes. good work. and thanks for the quick response to the problem.
Logged
Lurch
Guest
« Reply #8 on: February 26, 2005, 12:59:45 PM »

Eth is the man Smiley
Logged
sixf00t4
Mod God
*****
Offline Offline

Posts: 1916



View Profile WWW
« Reply #9 on: May 03, 2005, 04:31:25 AM »

you need a
Code:
require_once("lib/showform.php");
before line 181
« Last Edit: May 03, 2005, 06:00:50 AM by sixf00t4 » Logged

Interloper
Guest
« Reply #10 on: May 04, 2005, 08:16:48 PM »


This looks mega-cool. I definitely think I'll be using it.

 Cheesy
Logged
Freeze
Guest
« Reply #11 on: May 24, 2005, 04:32:34 AM »

I dont know if its ok to post this here, since Eth is MIA, but me and my usres are getting the same problem-

When we find a wild pet, when we click yes, we get this error-

Fatal error: Call to undefined function: showform() in /home/lotgdre/public_html/modules/wildpets.php on line 181


And when we click no, it becomes ours, but its unnamed, and here is a copy/past Tech Support Forum Post in my forums-

-=-=-=-=-
 I was in the forest and found a wild animal for a pet but everytime I click yes to keep I get this error:


Fatal error: Call to undefined function: showform() in /home/lotgdre/public_html/modules/wildpets.php on line 181


and when I click no it becomes mine but is unnamed.
-=-=-=-=-
Logged
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #12 on: May 24, 2005, 05:08:50 AM »

you need a
Code:
require_once("lib/showform.php");
before line 181


You have read about this fix before posting, haven't you?
Logged

Running for more than three years now:
Freeze
Guest
« Reply #13 on: May 24, 2005, 01:07:08 PM »

Yeah, but I didn't do it *right* *of course*.

I put a require_once("lib/form.php");

Blah, thanks. *Copies pastes this time*

Logged
Eth
Member
Codemeister
****
Offline Offline

Posts: 302


Shameless Drunk


View Profile
« Reply #14 on: June 04, 2005, 02:45:52 AM »

You could most likely consider this spam, but the above problem has been added to my to-do list and will be worked on shortly. My main priority right now though is getting the new version of the Pet Shop out.

But how on earth did I ever miss adding that snippet of code and never once encounter that error myself... Shocked
Logged

Purveyor of fine cloaks, gloves, boots, gerbils, and Siamese cats.
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Please take the time to read the FAQ and browse the DragonPedia

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Who's Online
39 Guests, 1 User
Mitochondria
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search