Jump to content

policent

Members
  • Posts

    9
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Everything posted by policent

  1. Sorry my mistake in last test i did wrote blueboy i wrote playerbot Sorry about playerbot giver! :rolleyes:
  2. hi bluboy I use git extensions so look what happened when i pull-merge your repository c:\\Program Files (x86)\\Git\\cmd\\git.cmd pull "git://github.com/blueboy/mangos.git" +refs/heads/master:refs/heads/master From git://github.com/blueboy/mangos + 70d4dae...e9ad275 master -> master (forced update) Warning: fetch updated the current branch head. Warning: fast forwarding your working tree from Warning: commit 70d4daec5414947b1abdca8fd3e1ba4fc6ed7753. Already up-to-date. I am going to tree and see that the merge had done in 9390 Doing the same with ahbot c:\\Program Files (x86)\\Git\\cmd\\git.cmd pull "git://github.com/Naicisum/mangos.git" +refs/heads/ahbot:refs/heads/ahbot From git://github.com/Naicisum/mangos * [new branch] ahbot -> ahbot From git://github.com/Naicisum/mangos * [new tag] ahbot-mangos-v0.14 -> ahbot-mangos-v0.14 * [new tag] ahbot-mangos-v0.15 -> ahbot-mangos-v0.15 Auto-merging src/game/Level3.cpp Auto-merging src/game/Mail.cpp Auto-merging src/game/Player.cpp Auto-merging src/game/Player.h Auto-merging src/game/World.cpp Merge made by recursive. README.AHBOT | 179 ++++ sql/characters_auctionhousebot.sql | 95 ++ sql/characters_auctionhousebot_update.sql | 44 + src/game/AuctionHouseBot.cpp | 1487 +++++++++++++++++++++++++++++ src/game/AuctionHouseBot.h | 979 +++++++++++++++++++ src/game/AuctionHouseHandler.cpp | 13 +- src/game/AuctionHouseMgr.cpp | 4 +- src/game/AuctionHouseMgr.h | 3 + src/game/Chat.cpp | 1 + src/game/Chat.h | 1 + src/game/Level3.cpp | 471 +++++++++ src/game/Mail.cpp | 19 +- src/game/Makefile.am | 2 + src/game/Player.cpp | 55 ++ src/game/Player.h | 1 + src/game/World.cpp | 5 + src/mangosd/mangosd.conf.dist.in | 73 ++ win/VC100/game.vcxproj | 2 + win/VC80/game.vcproj | 8 + win/VC90/game.vcproj | 8 + 20 files changed, 3444 insertions(+), 6 deletions(-) create mode 100644 README.AHBOT create mode 100644 sql/characters_auctionhousebot.sql create mode 100644 sql/characters_auctionhousebot_update.sql create mode 100644 src/game/AuctionHouseBot.cpp create mode 100644 src/game/AuctionHouseBot.h Done the merge now did with mangos 9407 I thought that this is problem with git extentions but I read somewhere in mangos that after player bot merge you need to reset the git Now i made first a new branch and then pull merge blueboy git. It is merged with 9407. Your direction to make new branch is right. I had conflicts with creature ... why you put again the bot giver? thanks for the answer! good work
  3. Hi blueboy I have a question about git. When i merge action house or other gits there is no change in git database header. When merge your git there is a change in header and it cannot update the mangos git. The only difference by simlpe inpection is the brance name , the other gits have different name like ahbot but your have the same name -master- . Is it easy to change that to somthing like playerbot ? (may be all this is stupid , I am not expert in git or C++) Thanks
  4. As I noticed i do not know C++ so I cann't help in programing I know programing other languages and I insist that it is safer to remove "=99" but is your decision to do or not About dead there are two situations one when logout and when login When logout you can write something like this ... If "is not alive" then "revive" "teleport to master" "logout" again the same when login BUT this is not enough because of network disconnect. Master disconnect will leave bots inside since they are in server. So a safe question in bot Ai ( which repeated every msec) is necessary If "not master" then "logout bot" I can't write all this because I do not know C++ also i do not know the procedures of mangos I thing that this code will solve the problem Merry Christmas
  5. Sorry again I'm not good in C++ but I know programming I prefer to leave out botguy ... since everybody change it without any safe logic Please blue boy make a patch in your directory if somebody need this and leave it out of code And a small hint in GossipDef.h you write GOSSIP_OPTION_UNLEARNPETSKILLS = 17, //UNIT_NPC_FLAG_TRAINER (16) (bonus option for GOSSIP_OPTION_TRAINER) + // Playerbot mod + GOSSIP_OPTION_BOT = 99, //UNUSED (just for bot system) GOSSIP_OPTION_MAX }; It is better to remove the "=99" because max will be 100 and suppose that somewhere there is a for loop ... or something else which test somthing ... Blue boy thanks for the answer sorry for late letter In reality my question is about intelligent of the PriestAI.cpp As an example lets say that we are in combat not dwell As i understand first bot will check fade then PWS then bot health then master health and last group I wish first check health master then group then test alive I suppose that i have to change the if-else sentences am i right? thanks again
  6. The esiest way to remove botguy is to search all files for the following words:) GOSSIP_OPTION_BOT LoadBotMenu isBotGiver and remove the related code then there is no need to use sql file Since nobody takes care of gossip I think it is better to remove this option from playerbot I'm confused about the git - code version What is the differences between playerbot and blueboy playerbot Why do not use only one git or two one test and one the current? And another question how can set preferent actions ( a series of action) to a bot? I have a healer and i prefer as first option, bot checks if anybody in group needs healling. Thanks to everybody (speccial to programmers)
  7. hello bluboy after 8900 mangos changed gossip so when i tried to pull player bot errors arised in npchandler and somewhere else i do not remember I was saw the source an i found that where some player bot source in that files. Since i do not know c it was difficult to understand where they are uesed. I suppose that that code is usfull only to the creature that gives bots (also with sql mangos_botguy) Did you remove all the assosiate code from source? I do not use that sql but if you left code then probably will have crases Please find the code and remove all Thanks:(:rolleyes::lol:
  8. :confused: the previous angle is the angle between target and bot if you need to turn to target then you must set bot to angle set_angle =mine_angle+angle If mangos angle is between -pi ... pi or between 0 ... 2pi you need to correct the value if set_angle > pi set_angle =set_angle - pi else if set_angle < - pi set_angle =set_angle + pi or if set_angle < 0 set_angle =set_angle +2 pi else if set_angle > 2pi set_angle =set_angle - 2 pi Propably routine from Ckegg Getangle ( target ...) gives you the angle that i computed in last letter so you need only the addition and correction i noteed here
  9. :confused:for distance and angle you can use dist=sqrt((target_x_-mine_x)^2+(target_y-mine_y)^2) angle=arcsin((target_y-mine_y)/dist if (target_x-mine_x)<0) angle=pi-angle of course this is for plane but since z is slow varying you have good approximation If you need the real distance you need add the term (target_z-mine_z)^2 But for angle you ought use previus dist not z-term. Because the mangos implementation of angle is for x,y plane only, not for 3D (cosine directions) Hope is usefull
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use