Jump to content
  • 0

Need help with getpetinfo


Question

Posted

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

 

if (petstat(PET_CLASS) != 3065) {
mes .@n$;
mes "Where is my love?";
close;
}
 
if (petstat(PET_CLASS) == 3065) {
set .@pi$,"[Lady Solace]";
mes .@n$;
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 .@n$;
mes "Where is my love?";
close;
}
 
if (getpetinfo(PETINFO_CLASS) == 3065) {
set .@pi$,"[Lady Solace]";
mes .@n$;
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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...