Vending

Discussion about everything RO and OpenKore related. This place is NOT for ANY kind of support questions.

Moderator: Moderators

springbreaker
Noob
Noob
Posts: 6
Joined: 13 Feb 2011, 00:27
Noob?: Yes

Vending

#1 Post by springbreaker »

How do I make kore open the shop after the items are all bought? The thing is, I keep on checking it if it is still vending or not. Help please :|
KoreGhost
Developers
Developers
Posts: 124
Joined: 28 Mar 2011, 12:48
Noob?: No
Location: Brazil

Re: Vending

#2 Post by KoreGhost »

Use macros.

Code: Select all

http://openkore.com/index.php/Macro
Example:

Code: Select all

automacro Vendeu_Folha_Aloe {
   console /^(Estoque esgotado: Folha de Aloe)/i
   macro_delay 0.1
   exclusive 1
   timeout 5
   call {
   		do eval Utils::Win32::playSound('C:\Sons\system.wav')
		$p = @random ("15","19","26","18","25","10","18","12")
		log -----
		log pausando por $p segundos para fechar a loja
		log -----
		pause $p
		do closeshop
		pause 2
		do talknpc 282 200 c r1 n
		pause 5
		do storage gettocart Folha de Aloe 3900
		log -----
		log pausando por $p segundos para abrir a loja
		log -----
		pause $p
		do openshop
	}
}