User Tag List

Page 2 of 4 FirstFirst 1 2 3 4 LastLast
Results 8 to 14 of 26

Thread: Comunity input for a Premium System

  1. #8
    Founder <span style='color: #FF4500'>Tommy</span>'s Avatar
    Join Date
    Apr 2013
    Posts
    7,391
    XP
    3,449,104
    Level
    378
    Thanks
    889
    Thanked 1,856 Times in 1,119 Posts
    Quote Originally Posted by jonmii View Post
    A pet with Teleport gossip to main cities(obviusly with checking if in battle and this stuff ^^)
    What type of pet? Pet that follows everyone? e.g. Like hunter pets. - If so and you're using TrinityCore pet gossip by default won't work. In the HandleGossipSelectOptionOpcode they only check if it is a creature or vehicle, not pet specifically. You can view the edit I made for Mercenary system here.

    Otherwise, this seems as if it could be put into item or player gossip (teleportation could already be a thing on most servers) instead of pet gossip since it doesn't make much since.

  2. The Following User Says Thank You to Tommy For This Useful Post:


  3. #9
    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,492
    XP
    20,134,806
    Level
    500
    Thanks
    1,089
    Thanked 330 Times in 212 Posts
    Quote Originally Posted by Tommy View Post
    What type of pet? Pet that follows everyone? e.g. Like hunter pets. - If so and you're using TrinityCore pet gossip by default won't work. In the HandleGossipSelectOptionOpcode they only check if it is a creature or vehicle, not pet specifically. You can view the edit I made for Mercenary system here.

    Otherwise, this seems as if it could be put into item or player gossip (teleportation could already be a thing on most servers) instead of pet gossip since it doesn't make much since.
    I could do a command like `.premium vendor` that would open a player gossip menu or summon a premium item vendor that de-spawns after a duration expires..
    but to be honest I was going to just make a bundle of `.premium` commands for buff, premium_mall/home teleports , talent resets, character mod commands , ...

    I will also add methods for Eluna \o/ only be a couple `player:SetPremium(value, time) and player:IsPlayerPremium()
    and some Global Getters.
    Last edited by slp13at420; 04-23-2016 at 08:23 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 Da Bomb!
    "Cuz PvP's better with a bag 'o' weed"
    !! King Spade !!

    -Guild Plot System-
    Grumbo'z Guild Warz


    -VIP System-
    Grumbo'z VIP System

  4. #10
    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,492
    XP
    20,134,806
    Level
    500
    Thanks
    1,089
    Thanked 330 Times in 212 Posts
    ok also , I will have an in-game item to update a players Premium rank from 0 to 1. But say an Admin is using the timed duration Premium rank, and a player is currently has Premium rank 1 but it hasn't expired yet,. should I go ahead and allow it to update there rank and time_of_update or should I deny it until there Premium rank is reset to 0?

    if I can figure out how to add commands for only the Admin or higher rank gm's then I could just add a `.premium set x` (where x = 0 or 1) command.


    This wont be a quick release. I will take my time and make it right and Full-o-Features as I allways do ;)
    With the work season back I will still be working on it but not like I do during my winter vacation :)


    also I have idea . maybe items can require the player to have Premium rank 1 to use or equip..?

    loading screen sneak peek with features on/off:



    See the first post for updates and any new details.
    Last edited by slp13at420; 04-24-2016 at 05:42 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 Da Bomb!
    "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. #11
    Banned
    Join Date
    Apr 2013
    Posts
    237
    Thanks
    34
    Thanked 82 Times in 38 Posts
    Quote Originally Posted by slp13at420 View Post
    also I have idea . maybe items can require the player to have Premium rank 1 to use or equip..?
    This is a good idea.

  6. The Following User Says Thank You to Portals For This Useful Post:


  7. #12
    Super Moderator <span style='color: #FFFF00'><span class='glow_000000'>Kaev</span></span>'s Avatar

    Join Date
    Jan 2014
    Location
    Germany
    Posts
    535
    XP
    2,925,342
    Level
    335
    Thanks
    76
    Thanked 102 Times in 70 Posts
    Instantly full health and mana after a duel
    Achievements:
    Shopper Member 1 year registered Level XL Level C
    Awards:
    Raffle Winner Member of Staff Support LOL Drunk Donator


    Read the rules before posting.

    Do you have an unsolved issue? Give us more informations about your problem.

    Do you have problems with compiling or installing TrinityCore? Unknown96's Tutorial will help you.

    Visit our other helpful sites:
    EmuDevs SQL Generator

  8. The Following User Says Thank You to Kaev For This Useful Post:


  9. #13
    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,492
    XP
    20,134,806
    Level
    500
    Thanks
    1,089
    Thanked 330 Times in 212 Posts
    Quote Originally Posted by Portals View Post
    This is a good idea.
    tnx :D

    Quote Originally Posted by Kaev View Post
    Instantly full health and mana after a duel
    added but untested.


    I will post our progress in the first post to let ppl know what has been added, tested, and completed.
    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 Da Bomb!
    "Cuz PvP's better with a bag 'o' weed"
    !! King Spade !!

    -Guild Plot System-
    Grumbo'z Guild Warz


    -VIP System-
    Grumbo'z VIP System

  10. #14
    Esteemed Member <span style='color: #4169E1'>Grandelf</span>'s Avatar
    Join Date
    Oct 2014
    Posts
    104
    XP
    64,547
    Level
    78
    Thanks
    18
    Thanked 110 Times in 45 Posts
    First of all, I must say I really like the idea of making a script with the community.
    Makes me wonder if going to Lua would increase the user input..

    I checked your script and noticed that it could use some clean up.
    I see a lot of methods which look like this:
    Code:
    bool PREM::IsPremiumTimed()
    {
        bool return_type;
     
        if (PREMIUM_TIMER_ENABLE == 0)
        {
            return_type = false;
        }
        else
        {
            return_type = true;
        }
     
        return return_type;
    }
    This could easily be rewritten to:
    Code:
    bool PREM::IsPremiumTimed()
    {
        return PREMIUM_TIMER_ENABLE != 0;
    }
    I also noticed that this script has a lot of commands of which every single command has
    to check whether the player is premium or not.
    I am not sure if there's a way to deal with this, using the existing
    command system (you'd think there has to be..).
    However, as an alternative solution I wrote some code which will reduce
    the need to check if a player is a premium player.

    Basically what does code does is creating individual handlers for every command.
    Before any of the command handlers is executed, it will go through a main
    command handler, which will check for things that are common for each
    individual command handler.

    Script: http://paste2.org/nGaxhNDO

    Of course you can do it your way and use the original command system.
    It's just that I don't like to repeat code, in this case the check
    if a player is premium =P.

    Hope this was helpful,

    Grandelf.

  11. The Following 2 Users Say Thank You to Grandelf For This Useful Post:


Thread Information

Users Browsing this Thread

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

Posting Permissions

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