Redbook-Tibia
Bienvenido RedBook-Tibia aqui encontraras un Poco de todo relacionado con open tibia server 100% hispanos
Mejores posteadores
aremst
 
ricker
 
andrea
 
Bizkit
 
Xanadu123
 
MummyCR
 

Palabras claves

Visits
Flag Counter
Donar


Thais War with PvP bots

Ver el tema anterior Ver el tema siguiente Ir abajo

Thais War with PvP bots

Mensaje por ricker el Vie Ago 08, 2014 7:51 pm

Código:
I will not host it anymore. Maybe someone else find it interesting:
* modified Thais map (6 temples)


-------- VIEWhttp://thaiswarmap.ots.me/
* spells, vocations, potions config for 75-150 lvl
* level limit from 75 to 150 (config in data/lib/106-war.lua)
* players move to temple after 'die', no need to relog
* frags/deaths/assists counters
* special experience formula for kill/assist to block frag giving/MC and other noobs
http://paste.ots.me/362797/text )


* BOTs! BOTs! BOTs! 
- bots use potions (not use items, but get mana/hp and has cooldown)
- bots use runes
- bots use spells
- bots choose best attack/healing method for their vocation/target
- bots use wands/crossbows/axes etc.
- bots choose best target (closest, knights check if there is 'way to place where target stands', sorc/druid/paladin check if there is 'clear sight')
- bots ignore targets that they can't hit
- bots run in random places in Thais and try to find enemy
- bots walk on some stairs (scripted), but not often
- bots attack players and other bots


- bots use anti-paralyze (with random delay - like real players without 'anti-paralyze bot')
- bots 'tell' other bots to attack same target to make it possible to kill someone (it's not possible to kill 1 v 1)
- bots use UTAMO VITA
- bots RUN AWAY, when too many other bots/players attack them (utani hur/gran hur and ruuun+heal)
- bots do not use much CPU/RAM (on my dedic [3.4GHz, 8GB ram] I had 300 bots without lags.. 300 bots in thais?! MASSACRE!)
Number of bots online is controlled by globalevent
http://skalski.at/files/files/thaiswar860_with_bots/view/data/globalevents/scripts/botmanager.lua )

Código:


[ltr]local keepOnline = 23 -- number of players + bots at start
local maxChange = 2 -- maximum change per script execution [default 1 time per second] - goes random +1 or -1

local minOnline = 2 -- minimum number of players + bots online
local maxOnline = 35 -- maximum number of players + bots online [so if there is 35 players server will try to 'logout' all bots][/ltr]





[size=15]Sometimes server tries to remove bots, but can't, because it removes them only when they are in temple (after death).
Bots are not really logged out/in every time when server want add/remove bots. They are teleported to some place far away on map by function [b]setBotActive(bot, false).[/b][/size]


Server login all bots (listed in file http://skalski.at/files/files/thaiswar860_with_bots/view/data/lib/105-bot_nowy.lua ) on start and keep them online, because of memory leak in login/logout C++ function (function loadPlayer(name) in LUA).

View files:
http://skalski.at/files/?dir=files/thaiswar860_with_bots/view/
Download (data, sources, mods, config.lua, phpmyadmin database dump 'war.sql' [with bot characters, their skills and EQ, GOD account is ppp/ppp], www [modified Gesior 2012] with extra war statistics):

http://skalski.at/files/files/thaiswar860_with_bots/zip/thaiswar_860_bots_working.zip
I CANNOT HELP YOU WITH THAT OTS [COMPILE, RUN ETC.]
I CANNOT IMPLEMENT BOTS IN YOUR OTS [EVEN FOR MONEY]





creaditos
Gesior.pl and Otland
avatar
ricker
Aportador
Aportador

Mensajes : 18
Puntos : 364
Reputación : 306
Fecha de inscripción : 13/07/2014
Edad : 27
Localización : Monterrey

Ver perfil de usuario

Volver arriba Ir abajo

Ver el tema anterior Ver el tema siguiente Volver arriba

- Temas similares

 
Permisos de este foro:
No puedes responder a temas en este foro.