浏览代码

- Fixed the Juice Maker's "As many as I can" option. (bugreport:4155)
- Removed a duplicate 'next' in Kiel Hyre Quest. (bugreport:4222)
- Fixed 'checkequipedcard' not counter-checking for signed items. (bugreport:4231)

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

brianluau 15 年之前
父节点
当前提交
2dbc188909
共有 5 个文件被更改,包括 6 次插入2 次删除
  1. 1 0
      conf/atcommand_athena.conf
  2. 0 1
      npc/quests/Kiel_Hyre_Quest.txt
  3. 2 0
      npc/quests/juice_maker.txt
  4. 1 1
      src/map/atcommand.c
  5. 2 0
      src/map/script.c

+ 1 - 0
conf/atcommand_athena.conf

@@ -269,6 +269,7 @@ size: 20,20
 
 
 // Can command what other npcs (by name) can say.
 // Can command what other npcs (by name) can say.
 npctalk: 20,20
 npctalk: 20,20
+npctalkc: 20,20
 
 
 //--------------------
 //--------------------
 // 40: Sub-GM commands
 // 40: Sub-GM commands

+ 0 - 1
npc/quests/Kiel_Hyre_Quest.txt

@@ -1714,7 +1714,6 @@ kh_school,178,180,4	script	Elly	895,{
 			mes "Grey Box you found inside";
 			mes "Grey Box you found inside";
 			mes "Kiel Hyre's Cottage.^000000";
 			mes "Kiel Hyre's Cottage.^000000";
 			next;
 			next;
-			next;
 			mes "^3355FFYou successfully open the";
 			mes "^3355FFYou successfully open the";
 			mes "Grey Box with the Golden Key,";
 			mes "Grey Box with the Golden Key,";
 			mes "and find a Blue Keycard, along";
 			mes "and find a Blue Keycard, along";

+ 2 - 0
npc/quests/juice_maker.txt

@@ -228,6 +228,8 @@ payon_in03,188,146,5	script	Marx Hansen#juice	86,{
 			switch(select("As many as I can.:I want a certain amount.:Cancel.")) {
 			switch(select("As many as I can.:I want a certain amount.:Cancel.")) {
 			case 1:
 			case 1:
 				set .@make,countitem(.@fruit);
 				set .@make,countitem(.@fruit);
+				if (countitem(713) < .@make) set .@make, countitem(713);
+				if (Zeny/3 < .@make) set .@make, Zeny/3;
 				break;
 				break;
 			case 2:
 			case 2:
 				mes "[Merchant Marx Hansen]";
 				mes "[Merchant Marx Hansen]";

+ 1 - 1
src/map/atcommand.c

@@ -8746,7 +8746,7 @@ AtCommandInfo atcommand_info[] = {
 	{ "mobsearch",         10,10,     atcommand_mobsearch },
 	{ "mobsearch",         10,10,     atcommand_mobsearch },
 	{ "cleanmap",          40,40,     atcommand_cleanmap },
 	{ "cleanmap",          40,40,     atcommand_cleanmap },
 	{ "npctalk",           20,20,     atcommand_npctalk },
 	{ "npctalk",           20,20,     atcommand_npctalk },
-	{ "npctalkc",           20,20,     atcommand_npctalk },
+	{ "npctalkc",          20,20,     atcommand_npctalk },
 	{ "pettalk",           10,10,     atcommand_pettalk },
 	{ "pettalk",           10,10,     atcommand_pettalk },
 	{ "users",             40,40,     atcommand_users },
 	{ "users",             40,40,     atcommand_users },
 	{ "reset",             40,40,     atcommand_reset },
 	{ "reset",             40,40,     atcommand_reset },

+ 2 - 0
src/map/script.c

@@ -11151,6 +11151,8 @@ BUILDIN_FUNC(checkequipedcard)
 	if(sd){
 	if(sd){
 		for(i=0;i<MAX_INVENTORY;i++){
 		for(i=0;i<MAX_INVENTORY;i++){
 			if(sd->status.inventory[i].nameid > 0 && sd->status.inventory[i].amount && sd->inventory_data[i]){
 			if(sd->status.inventory[i].nameid > 0 && sd->status.inventory[i].amount && sd->inventory_data[i]){
+				if (itemdb_isspecial(sd->status.inventory[i].card[0]))
+					continue;
 				for(n=0;n<sd->inventory_data[i]->slot;n++){
 				for(n=0;n<sd->inventory_data[i]->slot;n++){
 					if(sd->status.inventory[i].card[n]==c){
 					if(sd->status.inventory[i].card[n]==c){
 						script_pushint(st,1);
 						script_pushint(st,1);