wtorek, 12 lutego 2013

Play Tibia against bots? Sure!

Recently I've been out of hosting OTSes. I've played some Dota2, Leauge of Legends, HoN, etc.
I discovered that one thing today OTSes are missing is player (bot) AI.
How funny it would be to just join some war server and play against bots to train your PVP or just join it with your guild to train some tactics?

I started to edit source and create lua scripts to support such feature.
So far I've finished:

  • walking around
  • healing/drinking potions
  • going from point to point with path finding algorithms
  • leaving spawn (protection zone)
  • attacking players who attacked bot


Still, there are plenty things to be done:

  • running away from target
  • keeping distance from the target (mages/palladins)
  • finding potential targets
  • better targetting (i.e. players with lower health, not full hp)
  • casting offensive and utility spells depending of the situation
  • using items
  • using runes
I hope that it will be possible to release some early beta in the end of April, and this idea in Open Tibia world will gain some applause.

wtorek, 5 lutego 2013

Erlang :)

I was writing OpenTibia status checker in Java for my upcomming open tibia sever list. The thing is I wanted to refresh all servers as fast as possible.
Application done with Java, Threads Pool, 32 active threads on 16 cores machine: 7 minutes.
With Erlang I'm able to fetch statuses of 360 servers in less than.. 35 seconds. Nice, hey?

I decided to give Erlang a try - just check the figures they offer to Erlang programmers.