User Tag List

Page 6 of 8 FirstFirst ... 2 3 4 5 6 7 8 LastLast
Results 36 to 42 of 50

Thread: [CPP] Grumbo'z VIP System

  1. #36
    Original Poster
    Mad Scientist <span style='color: #008000'><span class='glow_006400'>slp13at420</span></span>'s Avatar



    Join Date
    Dec 2013
    Location
    Idaho
    Posts
    2,537
    XP
    20,135,478
    Level
    500
    Thanks
    1,102
    Thanked 337 Times in 217 Posts
    update 10-30-2016:
    added a buff command:
    • `.vip buff` will buff a player based on the players VIP rank.

    added an hp boost:
    • at login a players hp will get boosted based on the players VIP rank and the VIP OffSet value (float) set in the config.
    Last edited by slp13at420; 10-30-2016 at 06:17 PM.
    Achievements:
    Shopper Got a Sticky! Member 1 year registered Level XL Level D
    Awards:
    Pot Head LOL Raffle Winner Top Tagger Donator Hangman Scripter Repacker Drunk Support Member of Staff
    "Cuz PvP's better with a bag 'o' weed"
    !! King Spade !!

    -Guild Plot System-
    Grumbo'z Guild Warz


    -VIP System-
    Grumbo'z VIP System

  2. #37
    Original Poster
    Mad Scientist <span style='color: #008000'><span class='glow_006400'>slp13at420</span></span>'s Avatar



    Join Date
    Dec 2013
    Location
    Idaho
    Posts
    2,537
    XP
    20,135,478
    Level
    500
    Thanks
    1,102
    Thanked 337 Times in 217 Posts
    Update 11-29-2016:
    During our down time I went ahead and updated the System making it a little more efficient and now able to be #includ'd in any other scripts.
    Last edited by slp13at420; 11-29-2016 at 08:51 PM.
    Achievements:
    Shopper Got a Sticky! Member 1 year registered Level XL Level D
    Awards:
    Pot Head LOL Raffle Winner Top Tagger Donator Hangman Scripter Repacker Drunk Support Member of Staff
    "Cuz PvP's better with a bag 'o' weed"
    !! King Spade !!

    -Guild Plot System-
    Grumbo'z Guild Warz


    -VIP System-
    Grumbo'z VIP System

  3. #38
    Enthusiast Marko's Avatar
    Join Date
    Feb 2015
    Location
    Serbia
    Posts
    86
    XP
    1,809
    Level
    11
    Thanks
    10
    Thanked 3 Times in 3 Posts
    Howdy Grumbo, my scriptloader.cpp looks like this:
    #include "Define.h"
    #include <vector>
    #include <string>

    void AddCommandsScripts();
    void AddCustomScripts();
    void AddEasternKingdomsScripts();
    void AddEventsScripts();
    void AddKalimdorScripts();
    void AddNorthrendScripts();
    void AddOutdoorPvPScripts();
    void AddOutlandScripts();
    void AddPetScripts();
    void AddSpellsScripts();
    void AddWorldScripts();

    #ifdef TRINITY_IS_DYNAMIC_SCRIPTLOADER
    # include "revision_data.h"
    # define TC_SCRIPT_API TC_API_EXPORT
    extern "C" {

    /// Exposed in script modules to return the script module revision hash.
    TC_SCRIPT_API char const* GetScriptModuleRevisionHash()
    {
    return _HASH;
    }

    /// Exposed in script module to return the name of the script module
    /// contained in this shared library.
    TC_SCRIPT_API char const* GetScriptModule()
    {
    return "static";
    }

    #else
    # include "ScriptLoader.h"
    # define TC_SCRIPT_API
    #endif

    /// Exposed in script modules to register all scripts to the ScriptMgr.
    TC_SCRIPT_API void AddScripts()
    {
    AddCommandsScripts();
    AddCustomScripts();
    AddEasternKingdomsScripts();
    AddEventsScripts();
    AddKalimdorScripts();
    AddNorthrendScripts();
    AddOutdoorPvPScripts();
    AddOutlandScripts();
    AddPetScripts();
    AddSpellsScripts();
    AddWorldScripts();
    }

    /// Exposed in script modules to get the build directive of the module.
    TC_SCRIPT_API char const* GetBuildDirective()
    {
    return _BUILD_DIRECTIVE;
    }

    #ifdef TRINITY_IS_DYNAMIC_SCRIPTLOADER
    } // extern "C"
    #endif


    Where to add custom scripts there? as can be seen, there is just
    #ifdef TRINITY_IS_DYNAMIC_SCRIPTLOADER
    } // extern "C"
    #endif
    at the end of file

  4. #39
    Original Poster
    Mad Scientist <span style='color: #008000'><span class='glow_006400'>slp13at420</span></span>'s Avatar



    Join Date
    Dec 2013
    Location
    Idaho
    Posts
    2,537
    XP
    20,135,478
    Level
    500
    Thanks
    1,102
    Thanked 337 Times in 217 Posts
    ok at the very bottom of your ScriptLoader.cpp very very end:
    Code:
    
    
    #ifdef SCRIPTS
    /* This is where custom scripts' loading functions should be declared. */
    	void AddSC_WorldChat();
    	void AddSC_Grumboz_World_Ctf();
    	void AddSC_Grumboz_VIP_Core();
    #endif
    
    void AddCustomScripts()
    {
    #ifdef SCRIPTS
        /* This is where custom scripts should be added. */
    	AddSC_WorldChat();
    	AddSC_Grumboz_World_Ctf();
    	AddSC_Grumboz_VIP_Core();
    #endif
    }
    hmmm i thought i added instructions on how to add this to entities dir as a standalone dir.....
    Last edited by slp13at420; 01-17-2017 at 06:36 PM.
    Achievements:
    Shopper Got a Sticky! Member 1 year registered Level XL Level D
    Awards:
    Pot Head LOL Raffle Winner Top Tagger Donator Hangman Scripter Repacker Drunk Support Member of Staff
    "Cuz PvP's better with a bag 'o' weed"
    !! King Spade !!

    -Guild Plot System-
    Grumbo'z Guild Warz


    -VIP System-
    Grumbo'z VIP System

  5. #40
    Original Poster
    Mad Scientist <span style='color: #008000'><span class='glow_006400'>slp13at420</span></span>'s Avatar



    Join Date
    Dec 2013
    Location
    Idaho
    Posts
    2,537
    XP
    20,135,478
    Level
    500
    Thanks
    1,102
    Thanked 337 Times in 217 Posts
    Ohh lol there is an instruction file for setting the whole system up in your core.

    Allways refer to the supplied instruction sheet `if provided` . allthough all my work is EmuDevs only releases , some one may link my repo or a project on another forum so i will allways keep any instructional file as up to date as possible.
    Last edited by slp13at420; 01-17-2017 at 07:43 PM.
    Achievements:
    Shopper Got a Sticky! Member 1 year registered Level XL Level D
    Awards:
    Pot Head LOL Raffle Winner Top Tagger Donator Hangman Scripter Repacker Drunk Support Member of Staff
    "Cuz PvP's better with a bag 'o' weed"
    !! King Spade !!

    -Guild Plot System-
    Grumbo'z Guild Warz


    -VIP System-
    Grumbo'z VIP System

  6. #41
    Enthusiast Marko's Avatar
    Join Date
    Feb 2015
    Location
    Serbia
    Posts
    86
    XP
    1,809
    Level
    11
    Thanks
    10
    Thanked 3 Times in 3 Posts
    not sure if it will work if i paste all that at the end of scriptloader.cpp , since in it i have not a single line like this
    #ifdef SCRIPTS
    nowhere. Well what to do will paste it and work on it tomorrow, now is getting late here. will post results.

  7. #42
    Original Poster
    Mad Scientist <span style='color: #008000'><span class='glow_006400'>slp13at420</span></span>'s Avatar



    Join Date
    Dec 2013
    Location
    Idaho
    Posts
    2,537
    XP
    20,135,478
    Level
    500
    Thanks
    1,102
    Thanked 337 Times in 217 Posts
    its just 2 lines :
    Code:
    
    
    #ifdef SCRIPTS
    /* This is where custom scripts' loading functions should be declared. */
    	void AddSC_Grumboz_VIP_Core();
    #endif
    
    void AddCustomScripts()
    {
    #ifdef SCRIPTS
        /* This is where custom scripts should be added. */
    	AddSC_Grumboz_VIP_Core();
    #endif
    }
    you will need to add the conf block to your worldserver.conf file:
    Code:
    
    ###################################################################################################
    # Grumbo'z VIP System
    # by slp13at420 of
    # EmuDevs.com.
    #
    # These settings provide a flexibility to the system.
    #
    # 	
    #	VIP.MAX
    #		Description: Max VIP Level for VIP System. max Uint32 value.
    #		Default:     6
    #
    
    VIP.MAX = 6
    
    #	VIP.OFFSET
    #		Description: float multiplier for each vip rank.
    #		this is used for stat mod's. i.e. mod = VIP rank * offset.
    #		Default:     0.05f 5% muliplier used per VIP rank
    #
    
    VIP.OFFSET = 0.05
    
    #	VIP.VOTE.ENABE
    #		Description: Votes can earn higher vip ranks.
    #		Default: 1 . 0 off // 1 on.
    #
    
    VIP.VOTE_ENABLE = 1
    
    #
    #	VIP.VOTE.COUNT
    #		Description: how many Votes to earn each level of VIP.
    #		Default: 125 votes per.
    #
    
    VIP.VOTE_COUNT = 125
    
    #
    #	VIP.COIN
    #		Description: an item that is clickable to show a players VIP stats
    #		Default: 63020
    #
    
    
    VIP.COIN = 63020
    
    #
    #	VIP.STONE
    #		Description: an item that is clickable and will increase a players VIP level.
    #		Default: 63021
    #
    
    VIP.STONE =  63021
    
    #
    #	VIP.MAGIC.GOLD
    #		Description: just Global custom currency id that can be accessed
    #		by another character via the VIP banker deposit/withdrawal
    #		Default: 44209
    #
    
    VIP.MAGIC_GOLD = 44209
    
    #
    #	VIP.TP.BONUS
    #		Description: how many extra TP's to award per VIP level.
    #		Default: 14 per VIP level.
    #
    
    VIP.TP_BONUS = 14
    
    #	VIP.LEVEL_BONUS_ENABE
    #		Description: players can reach higher levels per VIP..
    #		Default: 1 . 0 off // 1 on.
    #
    
    VIP.LEVEL_BONUS_ENABLE = 1
    
    #
    #
    #	VIP.LEVEL_BONUS
    #		Description: how many extra level's a player can gain per VIP level.
    #		Default: 1
    #
    
    VIP.LEVEL_BONUS = 1
    
    #
    ###################################################################################################
    
    Last edited by slp13at420; 01-18-2017 at 01:15 AM.
    Achievements:
    Shopper Got a Sticky! Member 1 year registered Level XL Level D
    Awards:
    Pot Head LOL Raffle Winner Top Tagger Donator Hangman Scripter Repacker Drunk Support Member of Staff
    "Cuz PvP's better with a bag 'o' weed"
    !! King Spade !!

    -Guild Plot System-
    Grumbo'z Guild Warz


    -VIP System-
    Grumbo'z VIP System

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •