Welcome to JadaDev

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

  • Announcements

    • JadaDev

      Themes   10/08/2018

      You're able to change theme in the bottom of the site.
    • JadaDev

      Live Chat   10/30/2019

      Live Chat

JadaDev

Administrator
  • Content count

    2,262
  • Joined

  • Last visited

Everything posted by JadaDev

  1. /* <---------------------------------------------------------------------------> - Developer: Kolin 'Valtorei' - Updated By: JadaDev Special Thanks for Loud21! - Complete: ?% - ScriptName: 'Beastmaster_Trainer' - Developed: 07/15/2014 - Update: 12/28/2019 <---------------------------------------------------------------------------> */ #include "Pet.h" #include "ObjectMgr.h" #include "Log.h" #include "ScriptMgr.h" #include "ScriptedCreature.h" #include "ScriptedGossip.h" #include "Player.h" #include "WorldSession.h" #include "CreatureAI.h" class CS_beastmaster_trainer : public CreatureScript { public: CS_beastmaster_trainer() : CreatureScript("CS_beastmaster_trainer") {} struct BeastMasterAI : public ScriptedAI { BeastMasterAI(Creature* creature) : ScriptedAI(creature) {} void CreatePet(Player* player, Creature* creature, uint32 entry) { Creature* creatureTarget = creature->SummonCreature(entry, player->GetPositionX(), player->GetPositionY() + 2, player->GetPositionZ(), player->GetOrientation(), TEMPSUMMON_CORPSE_TIMED_DESPAWN, 500); if (!creatureTarget) return; Pet* pet = player->CreateTamedPetFrom(creatureTarget, 0); if (!pet) return; creatureTarget->setDeathState(JUST_DIED); creatureTarget->RemoveCorpse(); creatureTarget->SetHealth(0); pet->SetPower(POWER_HAPPINESS, 10480000); pet->SetUInt64Value(UNIT_FIELD_CREATEDBY, player->GetGUID()); pet->SetUInt64Value(UNIT_FIELD_FACTIONTEMPLATE, player->GetFaction()); pet->SetUInt64Value(UNIT_FIELD_LEVEL, player->GetLevel()); pet->GetMap()->AddToMap(pet->ToCreature()); pet->GetCharmInfo()->SetPetNumber(sObjectMgr->GeneratePetNumber(), true); if (!pet->InitStatsForLevel(player->GetLevel())) TC_LOG_INFO("misc", "Falha %u", entry); pet->UpdateAllStats(); player->SetMinion(pet, true); pet->SavePetToDB(PET_SAVE_AS_CURRENT); pet->InitTalentForLevel(); player->PetSpellInitialize(); ClearGossipMenuFor(player); creature->Whisper("Você adquiriu um novo pet, parabéns", LANG_UNIVERSAL, player); } bool OnGossipHello(Player* player, Creature* creature) { if (player->GetClass() != CLASS_HUNTER) { creature->Whisper("Apenas posso treinar hunters.", LANG_UNIVERSAL, player); ClearGossipMenuFor(player); return false; } if (player->GetPet()) { creature->Whisper("Você tem que remover seu pet atual para receber um novo.", LANG_UNIVERSAL, player); ClearGossipMenuFor(player); return false; } AddGossipItemFor(player, 1, "Obter novo pet", GOSSIP_SENDER_MAIN, 30); if (player->CanTameExoticPets()) AddGossipItemFor(player, 2, "Obter um pet exotico", GOSSIP_SENDER_MAIN, 50); AddGossipItemFor(player, 5, "Sair!", GOSSIP_SENDER_MAIN, 150); SendGossipMenuFor(player, 1, creature->GetGUID()); return true; } bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action) { player->PlayerTalkClass->ClearMenus(); switch (action) { case 100: OnGossipHello(player, creature); break; case 150: ClearGossipMenuFor(player); break; case 30: AddGossipItemFor(player, 6, "Bat", GOSSIP_SENDER_MAIN, 18); AddGossipItemFor(player, 6, "Bear", GOSSIP_SENDER_MAIN, 1); AddGossipItemFor(player, 6, "Boar", GOSSIP_SENDER_MAIN, 2); AddGossipItemFor(player, 6, "Cat", GOSSIP_SENDER_MAIN, 4); AddGossipItemFor(player, 6, "Carrion Bird", GOSSIP_SENDER_MAIN, 5); AddGossipItemFor(player, 6, "Crab", GOSSIP_SENDER_MAIN, 6); AddGossipItemFor(player, 6, "Crocolisk", GOSSIP_SENDER_MAIN, 7); AddGossipItemFor(player, 6, "Dragonhawk", GOSSIP_SENDER_MAIN, 17); AddGossipItemFor(player, 6, "Gorilla", GOSSIP_SENDER_MAIN, 8); AddGossipItemFor(player, 6, "Hound", GOSSIP_SENDER_MAIN, 9); AddGossipItemFor(player, 6, "Hyena", GOSSIP_SENDER_MAIN, 10); AddGossipItemFor(player, 6, "Moth", GOSSIP_SENDER_MAIN, 11); AddGossipItemFor(player, 6, "Owl", GOSSIP_SENDER_MAIN, 12); AddGossipItemFor(player, 4, "Next Page ->", GOSSIP_SENDER_MAIN, 31); AddGossipItemFor(player, 4, "<- Main Menu", GOSSIP_SENDER_MAIN, 100); AddGossipItemFor(player, 5, "Nevermind!", GOSSIP_SENDER_MAIN, 150); SendGossipMenuFor(player, 1, creature->GetGUID()); break; case 31: AddGossipItemFor(player, 6, "Raptor", GOSSIP_SENDER_MAIN, 20); AddGossipItemFor(player, 6, "Ravager", GOSSIP_SENDER_MAIN, 19); AddGossipItemFor(player, 6, "Strider", GOSSIP_SENDER_MAIN, 13); AddGossipItemFor(player, 6, "Scorpid", GOSSIP_SENDER_MAIN, 414); AddGossipItemFor(player, 6, "Spider", GOSSIP_SENDER_MAIN, 16); AddGossipItemFor(player, 6, "Serpent", GOSSIP_SENDER_MAIN, 21); AddGossipItemFor(player, 6, "Turtle", GOSSIP_SENDER_MAIN, 15); AddGossipItemFor(player, 6, "Wasp", GOSSIP_SENDER_MAIN, 93); AddGossipItemFor(player, 4, "<- Previous Page", GOSSIP_SENDER_MAIN, 30); AddGossipItemFor(player, 4, "<- Main Menu", GOSSIP_SENDER_MAIN, 100); AddGossipItemFor(player, 5, "Nevermind!", GOSSIP_SENDER_MAIN, 150); SendGossipMenuFor(player, 1, creature->GetGUID()); break; case 50: AddGossipItemFor(player, 6, "Chimaera", GOSSIP_SENDER_MAIN, 51); AddGossipItemFor(player, 6, "Core Hound", GOSSIP_SENDER_MAIN, 52); AddGossipItemFor(player, 6, "Devilsaur", GOSSIP_SENDER_MAIN, 53); AddGossipItemFor(player, 6, "Rhino", GOSSIP_SENDER_MAIN, 54); AddGossipItemFor(player, 6, "Silithid", GOSSIP_SENDER_MAIN, 55); AddGossipItemFor(player, 6, "Worm", GOSSIP_SENDER_MAIN, 56); AddGossipItemFor(player, 6, "Loque'nahak", GOSSIP_SENDER_MAIN, 57); AddGossipItemFor(player, 6, "Skoll", GOSSIP_SENDER_MAIN, 58); AddGossipItemFor(player, 6, "Gondri.", GOSSIP_SENDER_MAIN, 59); AddGossipItemFor(player, 4, "<- Main Menu", GOSSIP_SENDER_MAIN, 100); AddGossipItemFor(player, 5, "Nevermind!", GOSSIP_SENDER_MAIN, 150); SendGossipMenuFor(player, 1, creature->GetGUID()); break; // Credits to Serifaz who helped me with these ID's. case 51: // Chimera CreatePet(player, creature, 21879); break; case 52: // Core hound CreatePet(player, creature, 21108); break; case 53: // Devilsaur CreatePet(player, creature, 20931); break; case 54: // Rhino CreatePet(player, creature, 30445); break; case 55: // Silithid CreatePet(player, creature, 5460); break; case 56: // Worm CreatePet(player, creature, 30148); break; case 57: // Loque'nahak CreatePet(player, creature, 32517); break; case 58: // Skoll CreatePet(player, creature, 35189); break; case 59: // Gondria CreatePet(player, creature, 33776); break; case 16: // Spider CreatePet(player, creature, 2349); break; case 17: // Dragonhawk CreatePet(player, creature, 27946); break; case 18: // Bat CreatePet(player, creature, 28233); break; case 19: // Ravager CreatePet(player, creature, 17199); break; case 20: // Raptor CreatePet(player, creature, 14821); break; case 21: // Serpent CreatePet(player, creature, 28358); break; case 1: // Bear CreatePet(player, creature, 29319); break; case 2: // Boar CreatePet(player, creature, 29996); break; case 93: // Bug CreatePet(player, creature, 28085); break; case 4: // Cat CreatePet(player, creature, 28097); break; case 5: // Carrion CreatePet(player, creature, 26838); break; case 6: // Crab CreatePet(player, creature, 24478); break; case 7: // Crocolisk CreatePet(player, creature, 1417); break; case 8: // Gorila CreatePet(player, creature, 28213); break; case 9: // Hound CreatePet(player, creature, 29452); break; case 10: // Hyena CreatePet(player, creature, 13036); break; case 11: // Moth CreatePet(player, creature, 27421); break; case 12: // Owl CreatePet(player, creature, 23136); break; case 13: // Strider CreatePet(player, creature, 22807); break; case 414: // Scorpid CreatePet(player, creature, 9698); break; case 15: // Turtle CreatePet(player, creature, 25482); break; } return true; } }; CreatureAI* GetAI(Creature* creature) const override { return new BeastMasterAI(creature); } }; void AddSC_Beastmaster_Trainer() { new CS_beastmaster_trainer(); }
  2. Hey all, this is my last release @Buffer NPC@With 8 Buffs !! :Blessing of Kings Mark of the WildPower Word: FortitudeDivine Spirit Arcane IntellectSongflower SerenadeThornsShadow ProtectionHeal me : Full hp & FULL MANA !! Note : for full Mana you'll need to put the spell.dbc that you'll find in the file that you download it. Open Core/dbc/ than delete or Save your Spell.dbc and replace it with the custom one that you find in this file.Remove SicknessNew ! : Add me .... ==> ( Soul Shard - Symbol of kings - Devout Candle - Light Feather - Rune of teleportation - Rune of Portals -Starleaf )_(Shaman Totems 4 ).More new coming up on this Buffer !Credits for Tok124 for spell.dbcJeutie for using his repack "Jeutie's blizzlike repack" to test/work on the teleporter.JadaDev me SQL's.Enjoy !! remember +rep will make me happy and make more work ScreenShot ! DOWNLOAD NOWPassword is : jadafire
  3. Good luck!
  4. Good luck!
  5. Great share, thank you!
  6. Thanks for Sharing!
  7. Overall since the files aren't on Jadadev.com than everything is good!
  8. Well it was released everywhere long time ago even on Github and more than this the files aren't on jadadev.com they are on external place which makes us safe.
  9. This is a short tutorial on how to bypass 32767 limits. Step 1: Open up objectmgr.cpp and find this: Code: itemTemplate.ItemStat[i].ItemStatValue = int32(fields[29 + i*2].GetInt16()); Change it to: Code: itemTemplate.ItemStat[i].ItemStatValue = int32(fields[29 + i*2].GetInt32()); Save that & Recompile. Step 2: Open up item_template in heidisql/navicat/whatever Change the smallint of the stat_value1 up to stat_value 10 to int. Try adding stats over 32767 when you're done with these steps. - Repacks are not supported, so don't spam me with repack related questions, thanks.
  10. Yeah Thank you, i haven't updated anything because i'm still doing a rework
  11. Great share, thanks Troya.
  12. mobile

    I have Edited your post also you should be able to edit it too anyways thanks for the update!
  13. There is no problem bro glad this helped you to achieve your goals!
  14. Download For Old Cores : Download For New Cores : uint32 Unit::GetModelForTotem(PlayerTotemType totemType) { switch (getRace()) { case RACE_ORC: { switch (totemType) { case SUMMON_TYPE_TOTEM_FIRE: // fire return 30758; case SUMMON_TYPE_TOTEM_EARTH: // earth return 30757; case SUMMON_TYPE_TOTEM_WATER: // water return 30759; case SUMMON_TYPE_TOTEM_AIR: // air return 30756; } break; case RACE_HUMAN: { switch (totemType) { case SUMMON_TYPE_TOTEM_FIRE: // fire return 30758; case SUMMON_TYPE_TOTEM_EARTH: // earth return 30757; case SUMMON_TYPE_TOTEM_WATER: // water return 30759; case SUMMON_TYPE_TOTEM_AIR: // air return 30756; } break; } case RACE_BLOODELF: { switch (totemType) { case SUMMON_TYPE_TOTEM_FIRE: // fire return 30758; case SUMMON_TYPE_TOTEM_EARTH: // earth return 30757; case SUMMON_TYPE_TOTEM_WATER: // water return 30759; case SUMMON_TYPE_TOTEM_AIR: // air return 30756; } break; } case RACE_NIGHTELF: { switch (totemType) { case SUMMON_TYPE_TOTEM_FIRE: // fire return 30758; case SUMMON_TYPE_TOTEM_EARTH: // earth return 30757; case SUMMON_TYPE_TOTEM_WATER: // water return 30759; case SUMMON_TYPE_TOTEM_AIR: // air return 30756; } break; } case RACE_UNDEAD_PLAYER: { switch (totemType) { case SUMMON_TYPE_TOTEM_FIRE: // fire return 30758; case SUMMON_TYPE_TOTEM_EARTH: // earth return 30757; case SUMMON_TYPE_TOTEM_WATER: // water return 30759; case SUMMON_TYPE_TOTEM_AIR: // air return 30756; } break; } case RACE_GNOME: { switch (totemType) { case SUMMON_TYPE_TOTEM_FIRE: // fire return 30758; case SUMMON_TYPE_TOTEM_EARTH: // earth return 30757; case SUMMON_TYPE_TOTEM_WATER: // water return 30759; case SUMMON_TYPE_TOTEM_AIR: // air return 30756; } break; } case RACE_DWARF: { switch (totemType) { case SUMMON_TYPE_TOTEM_FIRE: // fire return 30754; case SUMMON_TYPE_TOTEM_EARTH: // earth return 30753; case SUMMON_TYPE_TOTEM_WATER: // water return 30755; case SUMMON_TYPE_TOTEM_AIR: // air return 30736; } break; } case RACE_TROLL: { switch (totemType) { case SUMMON_TYPE_TOTEM_FIRE: // fire return 30762; case SUMMON_TYPE_TOTEM_EARTH: // earth return 30761; case SUMMON_TYPE_TOTEM_WATER: // water return 30763; case SUMMON_TYPE_TOTEM_AIR: // air return 30760; } break; } case RACE_TAUREN: { switch (totemType) { case SUMMON_TYPE_TOTEM_FIRE: // fire return 4589; case SUMMON_TYPE_TOTEM_EARTH: // earth return 4588; case SUMMON_TYPE_TOTEM_WATER: // water return 4587; case SUMMON_TYPE_TOTEM_AIR: // air return 4590; } break; } case RACE_DRAENEI: { switch (totemType) { case SUMMON_TYPE_TOTEM_FIRE: // fire return 19074; case SUMMON_TYPE_TOTEM_EARTH: // earth return 19073; case SUMMON_TYPE_TOTEM_WATER: // water return 19075; case SUMMON_TYPE_TOTEM_AIR: // air return 19071; } break; } default: // One standard for other races. { // THANKS L30m4nc3r for this switch (totemType) { case SUMMON_TYPE_TOTEM_FIRE: // fire return 4589; case SUMMON_TYPE_TOTEM_EARTH: // earth return 4588; case SUMMON_TYPE_TOTEM_WATER: // water return 4587; case SUMMON_TYPE_TOTEM_AIR: // air return 4590; } break; } } return 0; } } Credit goes to Barebones
  15. You need to have an account before installing fusioncms
  16. logot.png

  17. Such a great design and it's worth it also a big VOUCH !
  18. You already solved your issue by downloading an old version that contains MySysGit and KDiff