User Tag List

Results 1 to 1 of 1

Thread: [Trinity][C++] Change Faction Item (first script) (not normal change faction item)

  1. #1
    Respected Member
    Join Date
    Mar 2014
    Thanked 7 Times in 6 Posts

    Post [Trinity][C++] Change Faction Item (first script) (not normal change faction item)

    Hi Emudevs, this is my first script and my first own idea. (I'm learning C++ and i know my code can be optimized but i want to share)

    I just did this because i want the players can do Raid/Dungeons between factions without:

    - Use at_login Change Faction (and because if you use it then the players will need to buy and relog everytime they want to play with other facction)
    - Use ALLOW_TWO_SIDE_INTERACTION_GROUP (because some Dungeons and raids has no support for this)
    And because i want to learn more.

    What the script does?

    When you use the item change your facction to the enemy faction and apply an aura (Horde Flag - Alliance Flag) to recognize who players has the item.
    The item has duration of 1 Hour (you can change this on your DB -> item_template -> duration -> put in seconds), players can not delet the item and when item expire they will be teleport to the zone you define here:

    // Define la zona donde el jugador sera teletransportado si -> el Item expira o esta en una zona restringida
    // Define your zone to player will be teleported if -> Item expire or is in restricted zone
    // value: MapId, X, Y, Z, Orientation
    #define zone 1, -8531.564f, 2010.638f, 100.7205f, 0.380013f
    And remove aura and restore faction.

    So here is: (The script has Spanish and english Announce for the players so if you want any one just comment and uncomment) <- SQL Items Spanish - Espaņol <- SQL Items English - Ingles <- Script Item Horde (English and Spanish) - (Ingles y Espaņol) <- Script Item Alliance (English and Spanish) - (Ingles y Espaņol)

    The reason why i post first here is because i like this community, especially Tommy, Parranoia, Rotchet2 and slp13at420 because you guys help everyone on what you can and know, you are not like other communities who said "Do by yourself" when we are noobs and just want to learn, i hope this does no become like that :)

    hope you like it and please tell me if something is bad ("something" all is bad :'( xD)
    Last edited by foxthecrash; 04-12-2014 at 05:46 PM.
    Member 1 year registered Level XV

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

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