Jump to content
  • 0
Everade

Need help with getpetinfo

Question

I've had an old script which worked some years ago, which used:

 

if (petstat(PET_CLASS) != 3065) {
mes [email protected]$;
mes "Where is my love?";
close;
}
 
if (petstat(PET_CLASS) == 3065) {
set [email protected]$,"[Lady Solace]";
mes [email protected]$;
mes "Oh Lady Solace!";
mes "My wonder,";
mes "My delightfulness!";
next;
 
However petstat is deprecated, so i tried to update the script to the new one i've found in the script doc file:
A_BringLadySolace:
if (getpetinfo(PETINFO_CLASS) != 3065) {
mes [email protected]$;
mes "Where is my love?";
close;
}
 
if (getpetinfo(PETINFO_CLASS) == 3065) {
set [email protected]$,"[Lady Solace]";
mes [email protected]$;
mes "Oh Lady Solace!";
mes "My wonder,";
mes "My delightfulness!";
next;
 
But it does not work anymore.
The npc always ends with the "Where is my love?" part.
Even if i have the pet with the pet_db id 3065 currently in use.
 
 
Am i doing anything wrong, or is this script command broken?
I simply want to check if i have the pet with the db id 3065 currently HATCHED
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.