Nitair

Members
  • Content count

    32
  • Joined

  • Last visited

  • Days Won

    1

Nitair last won the day on December 23 2015

Nitair had the most liked content!

Community Reputation

2 Neutral

About Nitair

  • Rank
    Member
  • Birthday 05/12/1994

Profile Information

  • Gender
    Male
  • Location
    Germany
  • Interests
    Programming

Recent Profile Visitors

280 profile views
  1. Do you use the rbac system? You can check if player is allowed to speak.
  2. I got an iPhone 7 2 weeks ago. I always had android phones before (Google Nexus 4, Galaxy S3, Galaxy S5, HTC One M9). If you just want use daylie based tasks, so I would say, take iPhone 7. iOS is running very smooth, apps are opening instantly. If you want to do more (like changing core speed, cracking apps etc), so take the S7, S8. I'm happy with my iPhone.
  3. Great idea.
  4. Dear eman, could you provide us more information about your server? Since when is your project online? Could you provide us a link? Do you have any other developer? How many player on your server? kind regards nitair
  5. Or just revert the last change via Git
  6. Got the same problem. In UpdateFields.h The values are the same without replacing^^
  7. C++

    Newest TrinityCore (TDB 335.60): Im trying to compile that script and update it if needed. I'll post the updated lines here. EDIT : New: ########################################################################### New: ########################################################################### compiled without errors but it's not tested
  8. Have same error @3.3.5
  9. C++

    #include "ScriptPCH.h" #define pItem 50000 //'PUT ITEM ENTRY HERE' class VIP_Access : public CreatureScript { public: VIP_Access() : CreatureScript("VIP_Access") { } bool OnGossipHello(Player* pPlayer, Creature* creature) { pPlayer->ADD_GOSSIP_ITEM(10, "|TInterface\\icons\\inv_misc_book_07:30:30:-20:0|tGive me VIP-Access", GOSSIP_SENDER_MAIN, 1); pPlayer->ADD_GOSSIP_ITEM(10, "|TInterface\\icons\\inv_misc_book_07:30:30:-20:0|tClose", GOSSIP_SENDER_MAIN, 100); pPlayer->SEND_GOSSIP_MENU(1, creature->GetGUID()); return true; } bool OnGossipSelect(Player * pPlayer, Creature * creature, uint32 /*uiSender*/, uint32 uiAction) { if (!pPlayer) return false; pPlayer->PlayerTalkClass->ClearMenus(); switch (uiAction) { case 1: if (pPlayer->HasItemCount(pItem, 1)) //1 Item or Token { if (pPlayer->GetSession()->GetSecurity() == SEC_PLAYER) //Sec Player is VIP(in my server) { pPlayer->DestroyItemCount(pItem, 1, true); //1 Item or Token LoginDatabase.PExecute("INSERT INTO account_access VALUES('%u', '1', '1')", pPlayer->GetSession()->GetAccountId()); pPlayer->AddSpell(46804, true, true, false, false); pPlayer->AddSpell(32636, true, true, false, false); pPlayer->AddSpell(35466, true, true, false, false); pPlayer->AddSpell(37805, true, true, false, false); pPlayer->AddSpell(37806, true, true, false, false); pPlayer->AddSpell(37807, true, true, false, false); pPlayer->SaveToDB(); pPlayer->GetSession()->KickPlayer(); } else { ChatHandler(pPlayer->GetSession()).PSendSysMessage("|cffff0000You don't have enough 'ITEMS'!"); // I like this form more (You can see it in Chat) //pPlayer->GetSession()->SendNotification("|cffff0000You already have a VIP Access!"); } } else { ChatHandler(pPlayer->GetSession()).PSendSysMessage("|cffff0000You don't have enough 'ITEMS'!"); } pPlayer->PlayerTalkClass->SendCloseGossip(); break; case 100: pPlayer->PlayerTalkClass->SendCloseGossip(); break; } return true; } }; void AddSC_VIP_Access() { new VIP_Access(); } Did it as Creature-Script for Trinitycore. I did not test it but it should be fine.
  10. It works on my core. Just 5v5 is disabled with this code. But the 1v1 Part works perfectly!
  11. C++

    Nice ChatCensure! //if (player->isGameMaster() || lang == LANG_ADDON)// return;Optional?
  12. Thank you!
  13. Yes I did it now with "event.announce" but is really nothing like this what I asked for? A bit weird. :S
  14. Hello guys, I want to do a creature script. When I spawn a NPC (.npc add or with game_event table) so he have to send a servermessage like -> sWorld->SendServerMessage("I've been spawned"); Is there a function called "onSpawn" like in table "smart_scripts"? (Didnt find it in ScriptMgr)