Hercules Elf Bot - Dec 6, 2012 6:24
					
				
				
					Originally posted by [b]hemagx[/b]
hello ,
i found bug in Ayothaya Guide NPC
when you chose cancel just return you again and again to the menu
Edit : when you select cancel xD you go to remove map marks
				
								
					
						This post has been edited by
						hemagx
						on Dec 6, 2012 8:31					
									 
							 
									
				
					
						Hercules Elf Bot - Dec 6, 2012 8:19
					
				
				
					Originally posted by [b]Joseph[/b]
Seems like there's an extra case here.
Anyone can confirm this?
https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/npc/re/guides/guides_ayothaya.txt
[CODE]
		case 6:
			mes "[Noi]";
			mes "If you want to return home";
			mes "find ^00BFFFAibakthing^000000";
			mes "and ask him to send you back.";
			mes "Is there anything else I can do for you?";
			viewpoint 1,151,68,5,0x00BFFF;
			break;
[/CODE]
				
								
					
						This post has been edited by
						Joseph
						on Dec 6, 2012 8:19					
									 
							 
									
				
					
						Hercules Elf Bot - Dec 6, 2012 8:30
					
				
				
					Originally posted by [b]hemagx[/b]
[CODE]switch(select("[ Weapon Shop ]:[ Tool Shop ]:[ Tavern ]:[ Shrine ]:[ Fishing Spot ]:Remove Marks from Mini-Map:Cancel")) {[/CODE]
Weapon Shop = case 1
Tool Shop = case 2
Tavern = case 3
Shrine = case 4
Fishing Spot = case 5
Remove Marks from Mini-Map = case 6
cancel = case 7
[CODE]
		case 1:
			mes "[Noi]";
			mes "The ^0000FFWeapon Shop^000000";
			mes "in Ayothaya has special weapons.";
			mes "You can find great weapons there.";
			mes "Is there anything else I can do for you?";
			viewpoint 1,163,90,0,0x0A82FF;
			break;
		case 2:
			mes "[Noi]";
			mes "Our citizens purchase many products in the ^006400Tool Shop^000000.";
			mes "Make sure you get all you need there.";
			mes "Do you need anything else??";
			viewpoint 1,131,86,1,0xAAFF00;
			break;
		case 3:
			mes "[Noi]";
			mes "Part of adventuring is collecting information.";
			mes "The ^008080Tavern^000000 is crowded with lots of travelers where you can get useful information.";
			mes "Is there anything else I can do for you?";
			viewpoint 1,229,72,2,0x008080;
			break;
		case 4:
			mes "[Noi]";
			mes "To calm your heart, go to the ^FF1493Shrine^000000 and say a prayer.";
			mes "Is there anything else I can do for you?";
			viewpoint 1,208,280,3,0xFF1493;
			break;
		case 5:
			mes "[Noi]";
			mes "Ayothaya is close to the beach, so most people enjoy fishing.";
			mes "They really love to fish.";
			mes "Go ^8B4513fishing^000000 and try to grab a big fish.";
			mes "Is there anything else I can do for you?";
			viewpoint 1,255,99,4,0x8B4513;
			break;
		case 6:
			mes "[Noi]";
			mes "If you want to return home";
			mes "find ^00BFFFAibakthing^000000";
			mes "and ask him to send you back.";
			mes "Is there anything else I can do for you?";
			viewpoint 1,151,68,5,0x00BFFF;
			break;
		case 7:
			mes "[Noi]";
			mes "I'll remove all marks from your mini-map.";
			mes "Do you need anything else??";
			viewpoint 2,1,1,0,0xFFFFFF;
			viewpoint 2,1,1,1,0xFFFFFF;
			viewpoint 2,1,1,2,0xFFFFFF;
			viewpoint 2,1,1,3,0xFFFFFF;
			viewpoint 2,1,1,4,0xFFFFFF;
			viewpoint 2,1,1,5,0xFFFFFF;
			break;
		case 8:
			mes "[Noi]";
			mes "Enjoy your trip~!";
			close;[/CODE]
				
								
					
						This post has been edited by
						hemagx
						on Dec 6, 2012 8:34					
									 
							 
									
				
					
						Hercules Elf Bot - Dec 6, 2012 15:09
					
				
				
					Originally posted by [b]Muad_Dib[/b]
Updated with renewal guide style and dialogs.
[CODE]
npc "ayothaya" "Ayotaya Guide Noi#01Ayotaya" 4_F_THAIGIRL 203 169 4 0 0
dialog "[Noi]"
dialog "Hello~"
dialog "Welcome to ^8B4513Ayotaya^000000."
dialog "This town is linked to a river through the wild forest."
dialog "It's a really calm country."
dialog "Take your time to look around."
while (1)
  wait
  choose menu "[ Weapon Shop ]" "[ Tool Shop ]" "[ Tavern ]" "[ Shrine ]" "[ Fishing Spot ]" "Remove Marks from Mini-Map" "Cancel"
  case 1
   dialog "[Noi]"
   dialog "The ^0000FFWeapon Shop^000000"
   dialog "in Ayotaya has special weapons."
   dialog "You can find great weapons there."
   dialog "Is there anything else I can do for you?"
   compass 0 163 90 1 "0xFF0A82FF"
  break
  case 2
   dialog "[Noi]"
   dialog "Our citizens purchase many products in the ^006400Tool Shop^000000."
   dialog "Make sure you get all you need there."
   dialog "Do you need anything else??"
   compass 1 131 86 1 "0xFFAAFF00"
  break
  case 3
   dialog "[Noi]"
   dialog "Part of adventuring is collecting information."
   dialog "The ^008080Tavern^000000 is crowded with lots of travelers where you can get useful information."
   dialog "Is there anything else I can do for you?"
   compass 2 229 72 1 "0xFF008080"
  break
  case 4
   dialog "[Noi]"
   dialog "To calm your heart, go to the ^FF1493Shrine^000000 and say a prayer."
   dialog "Is there anything else I can do for you?"
   compass 3 208 280 1 "0xFFFF1493"
  break
  case 5
   dialog "[Noi]"
   dialog "Ayotaya is close to the beach, so most people enjoy fishing."
   dialog "They really love to fish."
   dialog "Go ^8B4513fishing^000000 and try to grab a big fish."
   dialog "Is there anything else I can do for you?"
   compass 4 255 99 1 "0xFF8B4513"
  break
  case 6
   dialog "[Noi]"
   dialog "If you want to return home"
   dialog "find ^00BFFFAibakthing^000000"
   dialog "and ask him to send you back."
   dialog "Is there anything else I can do for you?"
   compass 5 151 68 1 "0xFF00BFFF"
  break
  case 7
   dialog "[Noi]"
   dialog "I'll remove all marks from your mini-map."
   dialog "Do you need anything else??"
   compass 0 1 1 2 "0xFFFFFFFF"
   compass 1 1 1 2 "0xFFFFFFFF"
   compass 2 1 1 2 "0xFFFFFFFF"
   compass 3 1 1 2 "0xFFFFFFFF"
   compass 4 1 1 2 "0xFFFFFFFF"
   compass 5 1 1 2 "0xFFFFFFFF"
  break
  case 8
   dialog "[Noi]"
   dialog "Enjoy your trip~!"
   close
   exitwhile
  break
  endchoose
endwhile
return
npc "ayothaya" "Ayotaya Guide Noa#01ay" 4_F_THAIGIRL 146 86 4 0 0
OnClick:
dialog "[Noa]"
dialog "Hello~"
dialog "Welcome to ^8B4513Ayotaya^000000."
dialog "This town is linked to a river through the wild forest."
dialog "It's a really calm country."
dialog "Take your time to look around."
while (1)
  wait
  choose menu "[ Kafra Employee ]" "[ Weapon Shop ]" "[ Tool Shop ]" "[ Tavern ]" "[ Shrine ]" "[ Fishing Spot ]" "Remove Marks from Mini-Map" "Cancel"
  case 1
   dialog "[Noa]"
   dialog "The ^0000FFKafra Employee^000000 is"
   dialog "marked on your mini-map."
   dialog "Check your mini-map."
   dialog "Is there anything else I can do for you?"
   compass 0 212 169 1 "0xFF0A82FF"
  break
  case 2
   dialog "[Noa]"
   dialog "The ^0000FFWeapon Shop^000000"
   dialog "in Ayotaya has special weapons."
   dialog "You can find great weapons there."
   dialog "Is there anything else I can do for you?"
   compass 1 163 90 1 "0xFFAAFF00"
  break
  case 3
   dialog "[Noa]"
   dialog "Our citizens purchase many products in the ^006400Tool Shop^000000."
   dialog "Make sure you get all you need there."
   dialog "Do you need anything else??"
   compass 2 131 86 1 "0xFF008080"
  break
  case 4
   dialog "[Noa]"
   dialog "Part of adventuring is collecting information."
   dialog "The ^008080Tavern^000000 is crowded with lots of travelers where you can get useful information."
   dialog "Is there anything else I can do for you?"
   compass 3 229 72 1 "0xFFFF1493"
  break
  case 5
   dialog "[Noa]"
   dialog "To calm your heart, go to the ^FF1493Shrine^000000 and say a prayer."
   dialog "Is there anything else I can do for you?"
   compass 4 208 280 1 "0xFF8B4513"
  break
  case 6
   dialog "[Noa]"
   dialog "Ayotaya is close to the beach, so most people enjoy fishing."
   dialog "They really love to fish."
   dialog "Go ^8B4513fishing^000000 and try to grab a big fish."
   dialog "Is there anything else I can do for you?"
   compass 5 255 99 1 "0xFF9400D3"
  break
  case 7
   dialog "[Noa]"
   dialog "If you want to return home"
   dialog "find ^00BFFFAibakthing^000000"
   dialog "and ask him to send you back."
   dialog "Is there anything else I can do for you?"
   compass 6 151 68 1 "0xFF00BFFF"
  break
  case 8
   dialog "[Noa]"
   dialog "I'll remove all marks from your mini-map."
   dialog "Do you need anything else??"
   compass 0 1 1 2 "0xFFFFFFFF"
   compass 1 1 1 2 "0xFFFFFFFF"
   compass 2 1 1 2 "0xFFFFFFFF"
   compass 3 1 1 2 "0xFFFFFFFF"
   compass 4 1 1 2 "0xFFFFFFFF"
   compass 5 1 1 2 "0xFFFFFFFF"
   compass 6 1 1 2 "0xFFFFFFFF"
  break
  case 9
   dialog "[Noa]"
   dialog "Enjoy your trip~!"
   close
   exitwhile
  break
  endchoose
endwhile
return
[/CODE]