Jump to content
  • 0
Sign in to follow this  
Guest Aurela

@petinfo command request

Question

Guest Aurela

Hello~

 

If anyone is able to create a @petinfo command I'd be very thankful.

The command works the same as @hominfo. (status,level,affection)

Thanks!

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0
ACMD(petinfo) {	struct pet_data *pd;		if( !sd->status.pet_id || !sd->pd ) {		clif->message(fd, msg_txt(184)); // Sorry, but you have no pet.		return false;	}		pd = sd->pd;		snprintf(atcmd_output, sizeof(atcmd_output), "Pet name: %s", // Pet Name		pd->pet.name);	clif->message(fd, atcmd_output);		snprintf(atcmd_output, sizeof(atcmd_output), "Intimate: %u", // Intimate		pd->pet.intimate/100);	clif->message(fd, atcmd_output);		snprintf(atcmd_output, sizeof(atcmd_output), "Hungry: %d", // Hungry		pd->pet.hungry);	clif->message(fd, atcmd_output);		return true;}

 

ACMD_DEF(petinfo),

 

You can add more, but valid type here:

 

	int pet_id;	short class_;	short level;	short egg_id;//pet egg id	short equip;//pet equip name_id	short intimate;//pet friendly	short hungry;//pet hungry	char name[NAME_LENGTH];	char rename_flag;
Edited by Gerz

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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