Jump to content

cyberium

Members
  • Posts

    328
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Posts posted by cyberium

  1. so. I need to create a character and set char's data in config file or not?

    PS. lookup code and maybe I'll understand.

    sorry for my english

    So it seem's iam not so clear that i am supposed...

    No more account needed to make ahbot work.

    Patch your core, install included characters.houctionhousebot.sql file, and set the min/max item needed in your database(characters.houctionhousebot). Enable AHBot via your mangosd.conf file and it's done.

    I point you to these lines in your config:-

    AuctionHouseBot.Account = *

    AuctionHouseBot.Character = *

    These lines doesn't exist anymore...

  2. cyberium why don't u set the AHBot name per config when there is no other need for an creature entry?

    Why not, i will implement it if it can be added safely.

    Great job on the NPC code cyberium, however if you don't mind I won't add it to my branch until it is completely stable and tested.

    Thank you, yes i think too it must be more tested in regard of the new feature.

  3. Thank for your support, i think the code still need some cleanning and iam actualy doing some of these.

    Iam olso make a reflexion to the first loop of addauction. Retrieving all item in auctionneer to get overal quantity of all defined quality can probably avoided at least in most of the case. Make this once a day is probably enought.

    ItemID generation loop olso probably can be lighted but no idea for now.

    Git updated. And here is the cleaned patch for 10342.

  4. DaViper:

    1) The patch take only name of npc you want. So no matter the faction of that npc.

    2) Yes, has i say all npc in database can be used. (i think)

    3) There is no raison, the patch make more simple the use of AHBOT, Just patch it and enable it. The npc option is only an "option" and a brief description is on conf file.

    UnkleNuke

    I didn't understaind what you want? Ahbot doesn't need the npc to run, but if you want one (for ex add your npc with some script in one map) you can simply do it with Entry of that NPC.

    Get these entry it's not difficult, make .npc info in game or look at the table creature or locale_creature.

    Sorry if iam not clear but i need more practice of english :P

  5. Here is my version of the AHBot patch for 10337

    Or Git if you prefer, git://github.com/cyberium/mangos.git ahbot

    Purpose :

    - No more account needed to be created for AHBot

    - Cleaned not used code.

    - Add some method to avoid some hack to the core.

    - Add possibility to assign any npc name as seller by simply add DB entry number on mangosd.conf file.

    I have some idea to optimise the add auction process but i need more time to implement and test.

    Feedback are welcome.

  6. I am about to finish the code of auctionner with fake GUID.

    Here is what i found.

    GUID=0 cannot be used because client not send query to know player name.

    All player class can be removed from ahbot class.

    I used MaxUInt32 for default Fake GUID.

    You will be able to use name of any npc in database. The default is "AHBot" but if you prefer "Commissaire priseur Latarge" it's up to you.

    No mail is created when auction is over.

    Iam trying to make the minimal hack on mangos core to avoid any bad side effect...

    Let me just finish the code and make a minimal test.

  7. maybe we can use guid 0, it will never be assigned to a player right?, and then harcode a name to guid 0 like auctioneer o AHBot or whatever?

    It work, no problem detected. You can make test on setting account of AHBOT to 0 and player to 0 on the config file.

    The only problem is that we see nothing on seller name. But i already ask you, is this realy an issue? If not the code will be easly cleaned and not need lotof hack.

  8. If iam not wrong

    bool AuctionEntry::BuildAuctionInfo(WorldPacket & data) const
    {
       ...
       data << uint32(pItem->GetSpellCharges());               //item->charge FFFFFFF
       data << uint32(0);                                      //Unknown
       data << uint64(owner);                                  //Auction->owner
       data << uint32(startbid);                               //Auction->startbid (not sure if useful)
       data << uint32(bid ? GetAuctionOutBid() : 0);
       ...
    }
    

    We send only GUID to client, so i don't know how i can assign a name to an unassigned GUID... Someone have idea?

    If no solution, have no name in seller row is it realy an issue?

  9. Whyarp, surely that is already done now by most people using AHBot.

    Account requirement is not necessary. The job must be done by someone :)

    Ok for all.

    My code work for now, at the end of auction item is deleted (cannot found it in database).

    So the only need is to add name to seller and no npc needed too.

    Olso i didn't realised this before but there is a bad behavior with actual system.

    When auction is finished without buyer items is returned to his owner by mail. If you look into mail table (on characters db) there is too much mail attribued to AhBot account... I set the min/maxitem to 5000/7000 per faction... You can imagine how many mail is generated...

  10. For creation of auction this code work without any new core hack.

       AuctionHouseEntry const* ahEntry = sAuctionMgr.GetAuctionHouseEntryByFaction(12);
       AuctionHouseObject* auctionHouse = sAuctionMgr.GetAuctionsMap(ahEntry);
       uint32 itemID = 37809;
       Item* item = Item::CreateItem(itemID, 1);
       if (item == NULL)
       {
               sLog.outString("AuctionHouseBot> Item::CreateItem() returned NULL");
               return;
       }
       AuctionEntry* auctionEntry = new AuctionEntry;
       auctionEntry->Id = sObjectMgr.GenerateAuctionID();
       auctionEntry->item_guidlow = item->GetGUIDLow();
       auctionEntry->item_template = item->GetEntry();
       auctionEntry->owner = 0;
       auctionEntry->startbid = 1000;
       auctionEntry->buyout = 10000;
       auctionEntry->bidder = 0;
       auctionEntry->bid = 0;
       auctionEntry->deposit = 0;
       auctionEntry->expire_time = (time_t) (urand(2, 5) * 60 * 60 + time(NULL));
       auctionEntry->auctionHouseEntry = ahEntry;
       item->SaveToDB();
       sAuctionMgr.AddAItem(item);
       auctionHouse->AddAuction(auctionEntry);
       auctionEntry->SaveToDB();
    

    I still don't know whats happen on the end of the auction.

    No name on seller row in AH. I think it's not the best sollution because of this.

    No matter what GUID i will assign to owner it will be take from characters table. So the best like i was supposed is to rewrite 'add auction' method to handle npc name in place of character name.

  11. Make all you want with my patch. That's why i post it here :)

    No problem for me.

    Cheers

    Ps : Yeah UnkleNuke. I was too lazy too to work on it because it's not an hard issue. Anyway i will probably take time on it if i have time.

    Ps2 : Mrelfire, don't know if your second point is possible but make AHBOT free of creating an account will be a good feature.

  12. I will give you feedback soon.

    Yad give me anyway some doubt for this method. Is the usual spell ID change realy often?

    In this case we are going to have some difficult to maintain this mod.

    Anyway good work kyle1 :)

    Updtate :

    It work perfectly ( at least the function coded ).

    Just, for best practice place enum in PlayerBotMageAi.h in place of PlayerBotAi.h

×
×
  • 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