Pārlūkot izejas kodu

- Follow up to r17272, added friendly message when you can't return your pet to egg.
The hell, been listening too much Bryan Adams..

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@17273 54d463be-8e91-2dee-dedb-b68131a5f0ec

momacabu 12 gadi atpakaļ
vecāks
revīzija
cb098d5126

+ 3 - 0
conf/msg_conf/map_msg.conf

@@ -443,6 +443,9 @@
 // Homunculus messages
 450: You already have a homunculus
 
+// Return pet to egg message
+451: You can't return your pet because your inventory is full.
+
 // Message System
 460: Please enter a valid language (usage: @langtype <language>).
 461: Language is now set to %s.

+ 3 - 0
conf/msg_conf/map_msg_por.conf

@@ -448,6 +448,9 @@
 // Mensagens de homunculus
 450: Você já possui um homunculus
 
+// Mensagem de retorno do pet ao ovo
+451: Você não pode retornar o seu bichinho de estimação para o ovo pois o seu inventário está lotado.
+
 // Sistema de Mensagens
 460: Digite um idioma válido (uso: @langtype <idioma>).
 461: O seu idioma agora está definido para %s.

+ 3 - 0
conf/msg_conf/map_msg_spn.conf

@@ -451,6 +451,9 @@
 // Homunculus messages
 450: Ya tienes un homúnculo.
 
+// Return pet to egg message
+451: No puedes retornar tu pet porque tu inventory está llena.
+
 // Message System
 460: Por favor, especifica una lengua válida (uso: @langtype <lengua>).
 461: Se ha cambiado tu lengua a %s.

+ 1 - 1
src/common/mmo.h

@@ -47,7 +47,7 @@
 // 20120307 - 2012-03-07aRagexeRE+ - 0x970
 
 #ifndef PACKETVER
-	#define PACKETVER 20100730
+	#define PACKETVER 20120410
 	//#define PACKETVER 20111116
 #endif
 

+ 1 - 1
src/map/pet.c

@@ -595,7 +595,7 @@ int pet_menu(struct map_session_data *sd,int menunum)
 	egg_id = itemdb_exists(sd->pd->petDB->EggID);
 	if (egg_id) {
 		if ((egg_id->flag.trade_restriction&0x01) && !pc_inventoryblank(sd)) {
-			printf ("THERE WILL NEVER BE ANOTHER TONIGHT = %d.\n", ARRAYLENGTH(sd->status.inventory));
+			clif_displaymessage(sd->fd, msg_txt(sd, 451)); // You can't return your pet because your inventory is full.
 			return 1;
 		}
 	}