Jump to content
  • 0

Need help with getpetinfo


Everade

Question


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  192
  • Reputation:   43
  • Joined:  12/13/11
  • Last Seen:  

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
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  80
  • Reputation:   1
  • Joined:  10/08/13
  • Last Seen:  

"PETINFO_CLASS" isn't a type. Refer to this link https://rathena.org/wiki/Getpetinfo and replace "PETINFO_CLASS" with the corresponding number for what you want to check.

Edited by Oceanid
Link to comment
Share on other sites

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