This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [C++][Question] Simpel Bot System  (Read 974 times)

bizzlesnaff

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 124
    • View Profile
[C++][Question] Simpel Bot System
« on: May 03, 2015, 03:37:00 am »
Hey there,

i've tried for hours to write my own simple bot script. For now I'm able to add everyone an pet (like an hunter pet). It works fine, and ich can controle it like an normal pet.
Now i've got some problems.

First, my "pet" didnt accept my custom c++ script. It just use some random spells it have (Some strange "web" and "bite"). So i don't know how to disable these skills and activate my custom script. Or if this is not possible, how i can add more "normal" spells to my pet.

My second problem is the thing, that hunter and warlocks cant control their own pets while they have the custom ones. Is there any way to control more than just one pet?

My third question
Is there an actual "playerbot" script, which is usable with hte latest tc-core? Would be so awesome and helped me a lot.
sry for my bad english. its really late and i'm tired as hell ;)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

rockrazer

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 9
    • View Profile
Re: [C++][Question] Simpel Bot System
« Reply #1 on: May 03, 2015, 11:53:19 am »
So I'm no C++ Script master really, but allow me to help with the general knowledge
questions!

There are running "Player bots." For the current 3.3.5 revision you should be able to find them if you poke around on the Trintycore forums or maybe a Google search?
(They don't exist for 6.x is my understanding)

As for the pet problems I know there is something that is supposed to restrict a player from having more then one pet and that is likely why you're having problems with having, I'm not sure where they stem from but I wouldn't be surprised if there is some client side limitation but I would personally have no idea how to brake something like that.

The problem about pets not taking "scripts"  its sort of unclear about what you mean by "script" but if you want to address what spells a pet has that should be pretty easily edited database side by editing the the creatures entry in "Creature_template" and then changing the Id found in the "PetSpellDataId" collum with an id/ids found in "CreatureSpellData.dbc".
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

bizzlesnaff

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 124
    • View Profile
Re: [C++][Question] Simpel Bot System
« Reply #2 on: May 03, 2015, 12:36:22 pm »
Thank you ;)
The Playerbot scripts i'v found are very broken or/and not suitable with the latest TC version :(

The thing with more than one pet is sad :/ Would be so cool..

Well...thats a little bit embarrassed  :roll:  I thought there is more needed than simple database write :/

Again, thank you.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »