Username: Password:

Author Topic: [SHARE] Aurea Minotaur Village + Rugnarak quest  (Read 189 times)

Offline =Mindee=

  • Commander Shepard
  • BOT Developer Administrator
  • Vampire
  • *****
  • Posts: 2,405
  • Cookies 9011
  • We'll bang, OKAY?
    • View Profile
    • http://mindee-bot.com
[SHARE] Aurea Minotaur Village + Rugnarak quest
« on: January 01, 2020, 01:39:55 PM »
I am sharing a script for Aurea Minotaur village.

How it works:
- Character hunts 200 minotaurs (or until quest log update is received).
- Goes to npc and receives a reward.
- Goes to hunting ground and hunts 200 minotaurs again.
- And so on.

Script:
Code: [Select]
# Variables
spot = (31899, 32060, 11)
npc = (31896, 32068, 8)
kill = 300 # 200 + 100 to avoid miscalculation

# 0 - to mino, 1 - to npc, 2 - hunt
def onChangeLocation(x, y, z):
if x == spot[0] and y == spot[1] and z == spot[2]:
if script.GetVar('killed_Minotaur') >= kill:
script.StatusMessage('Going to Rugnarak to retrieve reward!')
script.SetWay(1, 2)
elif script.GetWay() == 0:
script.StatusMessage('Hunt started!')
script.SetWay(2, 2)
elif x == npc[0] and y == npc[1] and z == npc[2]:
if script.GetVar('killed_Minotaur') < kill:
script.SetWay(2, 2) # not enough kills, go to hunting ground.
elif script.GoToNpc('Rugnarak', 4):
script.StatusMessage('Going to Rugnarak.')
else:
script.StatusMessage('Can\'t find Rugnarak.')
script.Alarm('Can\'t find Rugnarak.')

def onReachedNpc(name):
script.StatusMessage('Reached: ' + name)

def onReceiveNpcAnswer(text, option):
if text == 'Yes.':
script.StatusMessage('Telling Yes.')
script.ChooseNpcOption(option) # picks the option which is Yes
script.SetVar('killed_Minotaur', 0) # resets the counter
script.SetWay(0, 2) # sets path to the hunting ground
script.ForgetNpc() # forget npc, go to path

def onReceiveDirectionMarker(x, y, z, text):
# received quest log update (killed 200 minotaurs) -> set kill count to the max and will go to npc
if x == 31897 and y == 32067 and z == 8 and text == 'Aurea: Rugnarak':
script.SetVar('killed_Minotaur', kill)

def onKilledEnemy(name, templateId):
varname = 'killed_' + name
mobs = script.GetVar(varname) + 1
script.SetVar(varname, mobs)
txt = ''
if mobs >= kill and name == 'Minotaur':
txt = 'Enough.'
else:
txt = str(mobs)
script.StatusMessage('Killed: ' + name + ' \nTotal: ' + txt)


Whole waypoints, settings and script file is attached below.
« Last Edit: January 19, 2020, 06:07:49 PM by =Mindee= »




Mindee-BOT creator, founder and developer.