cyberpro98 Posted May 5, 2015 Report Share Posted May 5, 2015 Hello Everyone ! I am today releasing my script ( maybe someone made it but however i made this mine Dear guest, please login or register to see this content./emoticons/default_tongue.png" alt=":P" srcset="https://wowbb.org/uploads/emoticons/tongue@2x.png 2x" width="20" height="20"> ) ! I am using this script for my VIP ACCESS Token. The script works for OregonCore/Mangos and maybe TrinityCore This script is promoting your account on level 1 ( i set it to LEVEL 1 because in my server is level 1 VIP ACCOUNT ) + It learns some spells while clicking right click on VIP ACCESS TOKEN ! And it kick you from server , when you login again you'll be VIP Dear guest, please login or register to see this content./emoticons/default_smile.png" alt=":)" srcset="https://wowbb.org/uploads/emoticons/smile@2x.png 2x" width="20" height="20"> I am using this script for TBC! Here's the script ! Dear guest, please login or register to see this content. IMPORTANT INFORMATION! LoginDatabase.PExecute("INSERT INTO account_access VALUES('%u', '1', '1')", pPlayer->GetSession()->GetAccountId()); As you see here ! . '1' MEANS THE LEVEL , It means GM LEVEL like , GM LEVEL 1 , GM LEVEL 2 , GM LEVEL 3 . Just write the number. I hope i helped ! IF you like this thread you can give me REP Dear guest, please login or register to see this content./emoticons/default_tongue.png" alt=":P" srcset="https://wowbb.org/uploads/emoticons/tongue@2x.png 2x" width="20" height="20"> 2 Quote Link to comment Share on other sites More sharing options...
Madness Posted May 6, 2015 Report Share Posted May 6, 2015 Excellent share thanks man Dear guest, please login or register to see this content./emoticons/default_smile.png" alt=":)" srcset="https://wowbb.org/uploads/emoticons/smile@2x.png 2x" width="20" height="20"> +1 Quote Link to comment Share on other sites More sharing options...
Nitair Posted May 7, 2015 Report Share Posted May 7, 2015 Dear guest, please login or register to see this content. Dear guest, please login or register to see this content. #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. Quote Link to comment Share on other sites More sharing options...
cyberpro98 Posted May 7, 2015 Author Report Share Posted May 7, 2015 I don't have time .. I need study Quote Link to comment Share on other sites More sharing options...
cyberpro98 Posted May 7, 2015 Author Report Share Posted May 7, 2015 Dear guest, please login or register to see this content. Thanks Madness! Dear guest, please login or register to see this content./emoticons/default_smile.png" alt=":)" srcset="https://wowbb.org/uploads/emoticons/smile@2x.png 2x" width="20" height="20"> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.