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