Plugin that is sort of like factions but with Skills

Discussion in 'Archived: Plugin Requests' started by PartyPoison98, Sep 23, 2012.

  1. Offline

    PartyPoison98

    I know the title might sound confusing, but basically I need a plugin that will allows different factions/clans to have different abilities. For example I have an Elven class that I want to be Better at using a bow and arrow but slightly worse with mining or something. And a Dwarven class would be better at mining and using melee weapons.
     
  2. Offline

    np98765

    So... Any of the class plugins?
     
  3. Offline

    PartyPoison98

    Yes, but I don't just want people to pick a class and then they go off on their own, I want it so someone could join a faction and then they would get certain perks because they are a part of that faction
     
  4. Offline

    Kiakaha

    You could use Variable triggers..
    How???
    Make a new command for Joining factions (like "/superjoin" that does)
    A) join faction name and B) join permission group at the same time

    Make permission groups along these lines...

    Normal permission group (has all your basic user permissions)
    1. Child group Elf (has + archery or whatevs)
    2. Child group Dwarf (has +mining or whatevs)
    When users type "/superjoin Elves"
    they join the elf faction and also the ELF permission group
    tadaa, now your factions can have special powers from ANY other plugin. (assuming it's permissionable)
     
  5. Offline

    ALMOSTunseen

    What you could do, is use MCMMO, then have it so that if you are in different "Factions", it gives you different MCMMO base stats. And you could add other things, Like an Elf, because they have bad attack capabilities, they may take them less xp to level up their skills. Just an Idea, I don't know if it could be coded within the MCMMO api, if there is one....
     
  6. Offline

    PartyPoison98

    Could someone tell me how I could do this with Factions, MCMMO and VariableTriggers?
     
  7. Offline

    Kiakaha

    I'd be happy to help you mate

    Here's some info i need to get started

    Which permissions plugin do you currently use?
    What are some Faction names you want to use? (gimme 2-4 to get started)
    What MCMMO powers would you like each faction to specialise in
     
  8. Offline

    PartyPoison98

    The Faction/Classes are
    -Human
    -Dwarf
    -Elf
    -Warriors
    -Demons

    The default skill to go by would be 10,
    Humans have everything at 10

    Dwarves have:
    +10 Mining
    +10 Excavation
    +5 Swords
    +5 Axes
    -5 Archery
    -5 Taming
    -10 Acrobatics

    Elves have:
    +10 Acrobatics
    +10 Archery
    +5 Taming
    +5 Herbalism
    -5 Mining
    -5 Excavation
    -10 Unarmed

    Warriors have:
    +10 Swords
    +10 Axes
    +5 Archery
    +5 Unarmed
    -5 Herbalism
    -5 Taming
    -10 Acrobatics

    Demons have:
    +10 Unarmed
    +10 Acrobatics
    +5 Taming
    +5 Repair
    -5 Swords
    -5 Axes
    -10 Bows
     
  9. Offline

    Kiakaha

    Okay im going to bed now but il get this made up for you tommorow

    I wont go that in depth on the different skill levels but il make it obvious to you how and what you can edit to get your own personalisations done

    What i plan to do is make everyone start with the typical 0 stats but for the Elves to Learn archery faster for example....

    and Alternate option B would be to fix everyones stats to some presets like Elves have 500 archery but cant increase,

    @PartyPoison Hey mate, i just went to get stuck into this but i'm missing a key piece of information which is

    Which permissions plugin do you use? i need to know which format to make up your sample groups
    It's really crucial that they're linked to the right mcmmo groups

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 28, 2016
  10. Offline

    PartyPoison98

    I use GroupManager
     
  11. Offline

    Kiakaha

    I've done a Pile of work on this mate and i already have

    "/fsetup will create the 5 factions for you to save time
    "/race" will list the 5 races available
    "/race <racename>" will set you to the faction and give you preset MCMMO stats

    Now i need to make like a region/world/basegroup or something that is the only place/way people can change races
    (you dont want them switching factions midbattle)


    and then lastly remove the permissions for the regular Factions Join and Factions Leave commands (so that you have to do it via "/race" selection

    It currently doesn't affect your groupmanager group in any way. but i can easily add that feature if you want to add more permission based skills to your races (or if you want to completely remove a skill from a race : EG No axes for Elves or something like that)

    What you need to do:
    Have the 3 important plugins (Variable Triggers, Factions and MCMMO)
    PM me with a good way to contact you
    good options being your "server address" so i can just leave you msgs there
    or a Facebook link and il add you there
    or a Skype account and il add you on that (least preferred as i seldom use skype)

    I can either A) walk you through the setup yourself
    or B) Preferably come to your server and supervise setting it up for you so that there is no mistakes and you understand exactly how/why it works.
     
  12. Offline

    Kiakaha

    PartyPoison98

    DONEEEEEEE Here's the main script
    Instructions on next post

    Code:
    Scripts:
      list:
        Script:
        - '@PLAYER &f'
        - '@PLAYER --- &eAvailable races &f---'
        - '@PLAYER - &9Humans'
        - '@PLAYER - &aElves    &f- &6Dwarves'
        - '@PLAYER - &7Ogres    &f- &5Demons'
        - '@PLAYER &eType: &c"/Race <Racename>"'
      command:
        Script:
        - '@IF i <cmdargcount> = 0'
        - '@CALL race:list'
        - '@ENDIF'
        - '@IF i <cmdargcount> = 1'
        - '@CALL race:choose'
        - '@ENDIF'
        - '@IF i <cmdargcount> > 1'
        - '@CALL race:fail'
        - '@ENDIF'
      choose:
        Script:
        - '@IF si <cmdarg:1> = human'
        - '@CALL zrace:humans'
        - '@ELSE'
        - '@IF si <cmdarg:1> = humans'
        - '@CALL zrace:humans'
        - '@ELSE'
        - '@IF si <cmdarg:1> = elves'
        - '@CALL zrace:elves'
        - '@ELSE'
        - '@IF si <cmdarg:1> = elf'
        - '@CALL zrace:elves'
        - '@ELSE'
        - '@IF si <cmdarg:1> = elfs'
        - '@CALL zrace:elves'
        - '@ELSE'
        - '@IF si <cmdarg:1> = dwarves'
        - '@CALL zrace:dwarves'
        - '@ELSE'
        - '@IF si <cmdarg:1> = dwarf'
        - '@CALL zrace:dwarves'
        - '@ELSE'
        - '@IF si <cmdarg:1> = dwarfs'
        - '@CALL zrace:dwarves'
        - '@ELSE'
        - '@IF si <cmdarg:1> = ogres'
        - '@CALL zrace:ogres'
        - '@ELSE'
        - '@IF si <cmdarg:1> = ogre'
        - '@CALL zrace:ogres'
        - '@ELSE'
        - '@IF si <cmdarg:1> = demons'
        - '@CALL zrace:demons'
        - '@ELSE'
        - '@IF si <cmdarg:1> = demon'
        - '@CALL zrace:demons'
        - '@ELSE'
        - '@IF si <cmdarg:1> = reset'
        - '@CALL zrace:reset'
        - '@ELSE'
        - '@CALL zrace:fail'
        - '@ENDIF'
      fail:
        Script:
        - '@PLAYER &eThat is not an available race &c(<cmdline>)'
      humans:
        Script:
        - '@IF s <haspermission:select.races> = true'
        - '@CMDCON manuadd <playername> Human'
        - '@CMDOP f leave'
        - '@CMDOP f join Humans'
        - '@CMDCON mmoedit <playername> all 125'
        - '@ELSE'
        - '@PLAYER &eYou need to return to an Inn to change &c"/race"'
        - '@ENDIF'
      dwarves:
        Script:
        - '@IF s <haspermission:select.races> = true'
        - '@CMDCON manuadd <playername> Dwarf'
        - '@CMDOP f leave'
        - '@CMDOP f join Dwarves'
        - '@CMDCON mmoedit <playername> all 125'
        - '@CMDCON mmoedit <playername> mining 200'
        - '@CMDCON mmoedit <playername> excavation 225'
        - '@CMDCON mmoedit <playername> archery 75'
        - '@CMDCON mmoedit <playername> repair 100'
        - '@CMDCON mmoedit <playername> taming 0'
        - '@CMDCON mmoedit <playername> acrobatics 0'
        - '@ELSE'
        - '@PLAYER &eYou need to return to an Inn to change &c"/race"'
        - '@ENDIF'
      elves:
        Script:
        - '@IF s <haspermission:select.races> = true'
        - '@CMDCON manuadd <playername> Elf'
        - '@CMDOP f leave'
        - '@CMDOP f join Elves'
        - '@CMDCON mmoedit <playername> all 125'
        - '@CMDCON mmoedit <playername> mining 75'
        - '@CMDCON mmoedit <playername> herbalism 225'
        - '@CMDCON mmoedit <playername> excavation 75'
        - '@CMDCON mmoedit <playername> archery 200'
        - '@CMDCON mmoedit <playername> acrobatics 225'
        - '@CMDCON mmoedit <playername> unarmed 0'
        - '@CMDCON mmoedit <playername> repair 0'
        - '@ELSE'
        - '@PLAYER &eYou need to return to an Inn to change &c"/race"'
        - '@ENDIF'
      ogres:
        Script:
        - '@IF s <haspermission:select.races> = true'
        - '@CMDCON manuadd <playername> Ogre'
        - '@CMDOP f leave'
        - '@CMDOP f join Ogres'
        - '@CMDCON mmoedit <playername> all 125'
        - '@CMDCON mmoedit <playername> axes 200'
        - '@CMDCON mmoedit <playername> woodcutting 225'
        - '@CMDCON mmoedit <playername> herbalism 0'
        - '@CMDCON mmoedit <playername> taming 0'
        - '@CMDCON mmoedit <playername> acrobatics 0'
        - '@ELSE'
        - '@PLAYER &eYou need to return to an Inn to change &c"/race"'
        - '@ENDIF'
      demons:
        Script:
        - '@IF s <haspermission:select.races> = true'
        - '@CMDCON manuadd <playername> Demon'
        - '@CMDOP f leave'
        - '@CMDOP f join Demons'
        - '@CMDCON mmoedit <playername> all 125'
        - '@CMDCON mmoedit <playername> unarmed 225'
        - '@CMDCON mmoedit <playername> acrobatics 175'
        - '@CMDCON mmoedit <playername> swords 75'
        - '@CMDCON mmoedit <playername> archery 0'
        - '@CMDCON mmoedit <playername> taming 0'
        - '@CMDCON mmoedit <playername> fishing 75'
        - '@ELSE'
        - '@PLAYER &eYou need to return to an Inn to change &c"/race"'
        - '@ENDIF'
      reset:
        Script:
        - '@IF s <haspermission:select.races> = true'
        - '@CMDOP f leave'
        - '@CMDCON mmoedit <playername> all 0'
        - '@ELSE'
        - '@PLAYER &eYou need to return to an Inn to change &c"/race"'
        - '@ENDIF'
      setup:
        - '@CMDCON vtcmd race @CALL zrace:command'
        - '@CMDCON vtcmdo race true'
      factsetup:
        Script:
        - '@CMDOP f leave'
        - '@CMDOP f create Humans'
        - '@CMDOP f flag Humans permanent yes'
        - '@CMDOP f open yes'
        - '@CMDOP f desc Versatile Humans'
        - '@CMDOP f leave'
        - '@CMDOP f create Elves'
        - '@CMDOP f flag Elves permanent yes'
        - '@CMDOP f open yes'
        - '@CMDOP f desc Agile Elves'
        - '@CMDOP f leave'
        - '@CMDOP f create Dwarves'
        - '@CMDOP f flag Dwarves permanent yes'
        - '@CMDOP f open yes'
        - '@CMDOP f desc Stoic Dwarves'
        - '@CMDOP f leave'
        - '@CMDOP f create Ogres'
        - '@CMDOP f flag Ogres permanent yes'
        - '@CMDOP f open yes'
        - '@CMDOP f desc Mighty Ogres'
        - '@CMDOP f leave'
        - '@CMDOP f create Demons'
        - '@CMDOP f flag Demons permanent yes'
        - '@CMDOP f open yes'
        - '@CMDOP f desc Nether Demons'
        - '@CMDOP f leave'
        - '@CMDCON manuaddp <playername> admin.ofraces'
        - '@CMDOP vtcmdp fsetup admin.ofraces'
    *how to set up​
    1. Install Variable Triggers
    2. goto Plugins/Variabletriggers and find the example.script.yml
    3. Copy the example and rename the copy too "zraces.script.yml" < must be this exact name
    4. Copy my entire script above into the new zraces.script.yml

    Now get into the game and (as an operater or with vtriggers.admin permission)​
    1. type "/vtr run zraces:fsetup" (this will pregenerate the 5 factions for you)
    2. type "/vt Run zraces:setup" (this will generate a "/race" command for you and your users)
    3. by default players need a permission called "select.races" to be able to change class soooo
    4. if you only give them this permission in a designated area they wont be able to change race in the middle of battle etc
    5. All you have to do now is change the Configuration to your tastes

    Changes such as​
    • - '@CMDCON manuadd <playername> Ogre' < will be a different command depending on your permissions plugin (this ones for group manager)
    • * - '@CMDOP f join Ogres' is the command for joining factions.
    • * - '@CMDCON mmoedit <playername> all 125' these lines are giving players MCMMO stats (So you can change the numbers if you dont like the ones i came up with.

    Just remember, if it doesnt work the way you want it now.. you can CHANGE IT HOWEVER YOU LIKE :)

    Continue to Message me if you need further assistance (EG i can show you how to setup the zone where players can change races and much more.)​

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 28, 2016

Share This Page