Aegis Support Board: Alchemist Trader - Aegis Support Board

Jump to content

ASB News! ASB 5.0 Beta V2 has now been released!. See here for more Info.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Alchemist Trader

#1 User is offline   Dracus 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 08-June 05

Posted 15 January 2007 - 11:33 PM

Hey there well I been looking all over the search adn the stickies and I cannot find script for a trader that sells the mats that alchemists need to make their potions. I did find an npc that helps them with their laboratory but that guy does not seem to sell the items the alchemists need.

Please I'd like to know if there is one made or should I start on my own. :thrilled:
0

#2 User is offline   Kasuha 

  • Average Member
  • PipPipPipPip
  • Group: Members
  • Posts: 195
  • Joined: 08-February 05

Posted 16 January 2007 - 02:14 PM

View PostDracus, on Jan 16 2007, 07:33 AM, said:

Hey there well I been looking all over the search adn the stickies and I cannot find script for a trader that sells the mats that alchemists need to make their potions. I did find an npc that helps them with their laboratory but that guy does not seem to sell the items the alchemists need.

Please I'd like to know if there is one made or should I start on my own. :thrilled:

This one is custom made but it's based on iRO dialogs (at least those I was able to reach).
Enjoy!
npc "alde_alche" "Guild Dealer" 2_M_ALCHE 24 187 2 0 0
OnClick:
	dialog "[Gever Al Sharp]"
	dialog "Welcome to the Alchemist Union."
	dialog "How can I assist you today?"
	wait
	choose menu "Purchase materials" "Purchase production manual" "Quit"
	case 1
		dialog "[Gever Al Sharp]"
		dialog "What would you like?"
		wait
		choose menu "Medicine Bowl - 8 Zeny" "Cancel"
		case 1
			dialog "[Gever Al Sharp]"
			dialog "How many do you want?"
			dialog "Enter '0' if you want to quit."
			wait
			dlgwrite 1 10000
			if input == 0
				dialog "[Gever Al Sharp]"
				dialog "Well then, come again when you need to purchase materials related to Alchemy, alright?"
				close
				return
			elseif error
				dialog "[Gever Al Sharp]"
				dialog "You should only enter number between 1 and 10000, okay?"
				close
				return
			endif
			
			var cnt = input

			var price = cnt * 8
			
			if v[VAR_MONEY] < price			
				dialog "[Gever Al Sharp]"
				dialog "You don't have enough zeny. Check how much zeny you have first."
				close
				return
			endif

			var chk = CheckMaxCount Medicine_Bowl cnt
			
			if chk == 1
				dialog "[Gever Al Sharp]"
				dialog "Your inventory is too full. Please make some room before you make a purchase."
				close
				return
			endif

			var now_weight = v[VAR_MAXWEIGHT] - v[VAR_WEIGHT]
			var item_weight = cnt * 10

			if item_weight > now_weight
				dialog "[Gever Al Sharp]"
				dialog "You cannot carry that many items. Please lower your weight or enter a smaller number."
				close
				return
			endif

			getitem Medicine_Bowl cnt
			dropgold price
			
			dialog "[Gever Al Sharp]"
			dialog "Thank you."
			dialog "Come again."
			close
			
			break
		case 2
			dialog "[Gever Al Sharp]"
			dialog "Well then, come again when you need to purchase materials related to Alchemy, alright?"
			close
			break
		endchoose
		break
	case 2
		dialog "[Gever Al Sharp]"
		dialog "Which one do you need?"
		dialog "Condensed Potion Creation Guide costs 240,000 zeny, all other manuals cost 100,000 zeny."
		wait
		var manual
		var price
		choose menu "Potion Creation Guide" "Alcohol Creation Guide" "Bottle Grenade Creation Guide" "Acid Bottle Creation Guide" "Plant Bottle Creation Guide" "Marine Sphere Bottle Creation Guide" "Glistening Coat Creation Guide" "Condensed Potion Creation Guide" "Cancel Deal"
		case 1 
			// "Potion Creation Guide" 
			manual = Normal_Potion_Book
			price = 100000
			break
		case 2 
			// "Alcohol Creation Guide" 
			manual = Alcol_Create_Book
			price = 100000
			break
		case 3 
			// "Bottle Grenade Creation Guide" 
			manual = FireBottle_Create_Book
			price = 100000
			break
		case 4 
			// "Acid Bottle Creation Guide" 
			manual = Acid_Create_Book
			price = 100000
			break
		case 5 
			// "Plant Bottle Creation Guide" 
			manual = Plant_Create_Book
			price = 100000
			break
		case 6 
			// "Marine Sphere Bottle Creation Guide" 
			manual = Mine_Create_Book
			price = 100000
			break
		case 7 
			// "Glistening Coat Creation Guide" 
			manual = Coating_Create_Book
			price = 100000
			break
		case 8 
			// "Condensed Potion Creation Guide" 
			manual = Slim_Potion_Create_Book
			price = 240000
			break
		case 9 
			// "Cancel Deal"
			dialog "[Gever Al Sharp]"
			dialog "Well then..."
			dialog "Come back if you ever need to buy a production manual."
			close
			return
		endchoose
		
		if v[VAR_MONEY] < price
			dialog "[Gever Al Sharp]"
			dialog "You don't have enough zeny."
			dialog "Check how much zeny you have first."
			close
			return
		endif

		var chk = CheckMaxCount manual 1

		if chk == 1
			dialog "[Gever Al Sharp]"
			dialog "Your inventory is too full. Please make some room before you make a purchase."
			close
			return
		endif
		
		var now_weight = v[VAR_MAXWEIGHT] - v[VAR_WEIGHT]
		var item_weight = 10

		if item_weight > now_weight
			dialog "[Gever Al Sharp]"
			dialog "You cannot carry that many items. Please lower your weight."
			close
			return
		endif

		getitem manual 1
		dropgold price
		
		dialog "[Gever Al Sharp]"
		dialog "Thank you."
		dialog "Come again."
		close

		break
	case 3
		dialog "[Gever Al Sharp]"
		dialog "Alright then, have a good day."
		close
		break
	endchoose
	return


Oh, I just noticed there is one in the ASB4 package in npcdata/job/2-2/job_alchemist/alchemist_npc.sc
Somewhat illogical, but anyway...
0

#3 User is offline   Dracus 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 08-June 05

Posted 16 January 2007 - 10:16 PM

Thank you man. I tried some of the scripts out there and I was having problems with em, but anyways thank you its time to make some alchemists happy ^_^. :happy: :)

View PostKasuha, on Jan 16 2007, 09:14 PM, said:

View PostDracus, on Jan 16 2007, 07:33 AM, said:

Hey there well I been looking all over the search adn the stickies and I cannot find script for a trader that sells the mats that alchemists need to make their potions. I did find an npc that helps them with their laboratory but that guy does not seem to sell the items the alchemists need.

Please I'd like to know if there is one made or should I start on my own. :happy:

This one is custom made but it's based on iRO dialogs (at least those I was able to reach).
Enjoy!
npc "alde_alche" "Guild Dealer" 2_M_ALCHE 24 187 2 0 0
OnClick:
	dialog "[Gever Al Sharp]"
	dialog "Welcome to the Alchemist Union."
	dialog "How can I assist you today?"
	wait
	choose menu "Purchase materials" "Purchase production manual" "Quit"
	case 1
		dialog "[Gever Al Sharp]"
		dialog "What would you like?"
		wait
		choose menu "Medicine Bowl - 8 Zeny" "Cancel"
		case 1
			dialog "[Gever Al Sharp]"
			dialog "How many do you want?"
			dialog "Enter '0' if you want to quit."
			wait
			dlgwrite 1 10000
			if input == 0
				dialog "[Gever Al Sharp]"
				dialog "Well then, come again when you need to purchase materials related to Alchemy, alright?"
				close
				return
			elseif error
				dialog "[Gever Al Sharp]"
				dialog "You should only enter number between 1 and 10000, okay?"
				close
				return
			endif
			
			var cnt = input

			var price = cnt * 8
			
			if v[VAR_MONEY] < price			
				dialog "[Gever Al Sharp]"
				dialog "You don't have enough zeny. Check how much zeny you have first."
				close
				return
			endif

			var chk = CheckMaxCount Medicine_Bowl cnt
			
			if chk == 1
				dialog "[Gever Al Sharp]"
				dialog "Your inventory is too full. Please make some room before you make a purchase."
				close
				return
			endif

			var now_weight = v[VAR_MAXWEIGHT] - v[VAR_WEIGHT]
			var item_weight = cnt * 10

			if item_weight > now_weight
				dialog "[Gever Al Sharp]"
				dialog "You cannot carry that many items. Please lower your weight or enter a smaller number."
				close
				return
			endif

			getitem Medicine_Bowl cnt
			dropgold price
			
			dialog "[Gever Al Sharp]"
			dialog "Thank you."
			dialog "Come again."
			close
			
			break
		case 2
			dialog "[Gever Al Sharp]"
			dialog "Well then, come again when you need to purchase materials related to Alchemy, alright?"
			close
			break
		endchoose
		break
	case 2
		dialog "[Gever Al Sharp]"
		dialog "Which one do you need?"
		dialog "Condensed Potion Creation Guide costs 240,000 zeny, all other manuals cost 100,000 zeny."
		wait
		var manual
		var price
		choose menu "Potion Creation Guide" "Alcohol Creation Guide" "Bottle Grenade Creation Guide" "Acid Bottle Creation Guide" "Plant Bottle Creation Guide" "Marine Sphere Bottle Creation Guide" "Glistening Coat Creation Guide" "Condensed Potion Creation Guide" "Cancel Deal"
		case 1 
			// "Potion Creation Guide" 
			manual = Normal_Potion_Book
			price = 100000
			break
		case 2 
			// "Alcohol Creation Guide" 
			manual = Alcol_Create_Book
			price = 100000
			break
		case 3 
			// "Bottle Grenade Creation Guide" 
			manual = FireBottle_Create_Book
			price = 100000
			break
		case 4 
			// "Acid Bottle Creation Guide" 
			manual = Acid_Create_Book
			price = 100000
			break
		case 5 
			// "Plant Bottle Creation Guide" 
			manual = Plant_Create_Book
			price = 100000
			break
		case 6 
			// "Marine Sphere Bottle Creation Guide" 
			manual = Mine_Create_Book
			price = 100000
			break
		case 7 
			// "Glistening Coat Creation Guide" 
			manual = Coating_Create_Book
			price = 100000
			break
		case 8 
			// "Condensed Potion Creation Guide" 
			manual = Slim_Potion_Create_Book
			price = 240000
			break
		case 9 
			// "Cancel Deal"
			dialog "[Gever Al Sharp]"
			dialog "Well then..."
			dialog "Come back if you ever need to buy a production manual."
			close
			return
		endchoose
		
		if v[VAR_MONEY] < price
			dialog "[Gever Al Sharp]"
			dialog "You don't have enough zeny."
			dialog "Check how much zeny you have first."
			close
			return
		endif

		var chk = CheckMaxCount manual 1

		if chk == 1
			dialog "[Gever Al Sharp]"
			dialog "Your inventory is too full. Please make some room before you make a purchase."
			close
			return
		endif
		
		var now_weight = v[VAR_MAXWEIGHT] - v[VAR_WEIGHT]
		var item_weight = 10

		if item_weight > now_weight
			dialog "[Gever Al Sharp]"
			dialog "You cannot carry that many items. Please lower your weight."
			close
			return
		endif

		getitem manual 1
		dropgold price
		
		dialog "[Gever Al Sharp]"
		dialog "Thank you."
		dialog "Come again."
		close

		break
	case 3
		dialog "[Gever Al Sharp]"
		dialog "Alright then, have a good day."
		close
		break
	endchoose
	return


Oh, I just noticed there is one in the ASB4 package in npcdata/job/2-2/job_alchemist/alchemist_npc.sc
Somewhat illogical, but anyway...

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users