The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PETS REFERENCE
Author Message
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #1
PETS REFERENCE
im playing with hunger event with pets and i'd like to know if there is a flag when a pet is stabled or shrunk?, in those states is the memory_ipet.link the only reference to its owner???

thats all for now, thank you.
08-20-2014 11:09 AM
Find all posts by this user Like Post Quote this message in a reply
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #2
RE: PETS REFERENCE
Nevermind, i think i got but i need some help... when a pet is stabled what exactly happens to it??? as i said im working with hunger event and there's a few things i must know.

is there any event associated when a pet is stabled or retreived??? or when its shrunk or unshrunk?
and an action or event associated when a char becomes a pet when tamed??

i'd be very greatfull if you can help me with some of this... thank you very much!
08-20-2014 03:16 PM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #3
RE: PETS REFERENCE
In both cases the pet will have statf_ridden.

There's no default 'event' for that, however you can do yours easily tweaking the shrink potion and typedef t_figurine. For stabler ... in speech/jobAnimal.scp you can add your code.
08-20-2014 04:32 PM
Find all posts by this user Like Post Quote this message in a reply
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #4
RE: PETS REFERENCE
So, shrink potion and t_figurine for shrinking/unshrinking

in speech/jobAnimal.scp for stabler

and skillsuccess 35 act beeing the target for taming would make the job?
-----------------------------------

PD: what does ithis mean?
t_figurine 37 This type is used for shrunk NPCs (essentially magic figurines), that turn into a "pet" creature when double clicked. It leverages the following properties:
MORE2 = The UID of the off-line creature (in "stable master" inventory)

And one more thing, i need to make a reference to the UID that the t_figurine will turn when dclicked but dunno how.. what i want is that when t_figurine is dclicked, pet FOOD points change to a new value
same thing about the stable,
with ON=*petstable* i cannot make the reference to the targetted creature :/
(This post was last modified: 08-21-2014 02:30 AM by kn4tseb.)
08-21-2014 12:33 AM
Find all posts by this user Like Post Quote this message in a reply
admin phoenix
Master
**

Posts: 354
Likes Given: 1
Likes Received: 23 in 13 posts
Joined: Mar 2012
Reputation: 3



Post: #5
RE: PETS REFERENCE
I shared a stabler script in the script submission section.
maybe it will help you?
08-21-2014 07:27 PM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #6
RE: PETS REFERENCE
Create a mount, .info on it, remember it's UID, .Shrink (or use a shrink potion), .info on the t_figurine that appeared, you got all the info you asked Smile

And for PetStable I believe its hardcoded ... maybe you want to take a look on Admin Phoenix's script.
08-21-2014 08:44 PM
Find all posts by this user Like Post Quote this message in a reply
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #7
RE: PETS REFERENCE
Thanks, i think its great phoenix that you were sharing high quality scripts with us, i downloaded yesterday as soon as i saw it heheheh i will take a look a it...

i need to understand only one thing more.. when a pet is shrunk or stabled, what exacly happens to the pet character??? it disspaears??? its stored somewhere in the server memory??
because the t_figurine is just an item with pet's memory data.
thats all ^^
08-22-2014 02:06 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #8
RE: PETS REFERENCE
After you stable an animal, type .xbank and target the stabler Big Grin
08-22-2014 03:11 AM
Find all posts by this user Like Post Quote this message in a reply
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #9
RE: PETS REFERENCE
OH!!! lool hehee, ok, thanks!

This is interesting, while stabled, the pet (t_figurine) keeps the link from its master, but when shrinked, it's not... why is that? =]
(This post was last modified: 08-22-2014 04:47 AM by kn4tseb.)
08-22-2014 04:28 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #10
Re: RE: PETS REFERENCE
(08-22-2014 04:28 AM)kn4tseb Wrote:  OH!!! lool hehee, ok, thanks!

This is interesting, while stabled, the pet (t_figurine) keeps the link from its master, but when shrinked, it's not... why is that? =]

To know who is the owner..
A t_figurine (shrinked) item don't have owner because it can be opened by anyone.

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
08-22-2014 04:50 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)