[Release] PVPForAll [C++] menu

User Tag List

Results 1 to 8 of 8
  1. #1
    Trle94's Avatar Contributor
    Reputation
    167
    Join Date
    May 2009
    Posts
    329
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Release] PVPForAll [C++]

    This is little script that allows every one PVP everywhere

    Code:
    #include "StdAfx.h"
    #include "Setup.h" 
    
    void FirstLogin(Player* plr)
    {
        plr->SetFlag(PLAYER_FLAGS, PLAYER_FLAG_FREE_FOR_ALL_PVP);
    };
    
    
        
    void SetupLogin(ScriptMgr * mgr)
    {
        mgr->register_hook(SERVER_HOOK_EVENT_ON_FIRST_ENTER_WORLD, (void*)FirstLogin);
    }

    Credits
    - LunarSCR Team


    [Release] PVPForAll [C++]
  2. #2
    Nightblizzard's Avatar Active Member
    Reputation
    20
    Join Date
    Jan 2009
    Posts
    75
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This will set Free for all Flags for PvP only you should use PLAYER_FLAG_PVP.

  3. #3
    Maikash2's Avatar Member
    Reputation
    1
    Join Date
    May 2007
    Posts
    33
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Because it only sets when you login, wouldn't it turn off if you entered an arena and then left?

  4. #4
    FaTaL-V1CT1M's Avatar Corporal
    Reputation
    1
    Join Date
    Nov 2009
    Posts
    26
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Could you explain what this actually does please ?

  5. #5
    Maikash2's Avatar Member
    Reputation
    1
    Join Date
    May 2007
    Posts
    33
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Really? There's like less than 10 lines of code, can you take a guess?
    --This thought process is supposed to be if I had no clue about coding--
    void FirstLogin(Player* plr)
    Is the first bit that looks important right? It's called "FirstLogin" so I'm guessing that that's gonna be called when you first login... Then you have
    plr->SetFlag(PLAYER_FLAGS, PLAYER_FLAG_FREE_FOR_ALL_PVP)
    that looks intimidating right? Well... look at it from different angles... "plr" obviously means player and the "->" could mean that whatever is coming up is executed onto player... right? And then we have "SetFlag" so it's gonna change a flag on the player to something else.. then "PLAYER_FLAGS" not really sure right away, but it could just be all the player's flags right? And then "PLAYER_FLAG_FREE_FOR_ALL_PVP". So this is gonna set it like your in an arena and it's ffa even against your own alliance..

    That wasn't too hard was it?

  6. #6
    FaTaL-V1CT1M's Avatar Corporal
    Reputation
    1
    Join Date
    Nov 2009
    Posts
    26
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ... Like i didnt expect that... I did just want some info about how the script is... Meaning if it stays that way cause Firstlogin sounds like if you relog once it will be over.... Thats what i ment... Tho :P atleast you explained something if some1 actually has 0 idea bout what this is.

    FaTaL-V1CT1M =D

  7. #7
    TheSpidey's Avatar Elite User
    Reputation
    365
    Join Date
    Jan 2008
    Posts
    2,200
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    SERVER_HOOK_EVENT_ON_FIRST_ENTER_WORLD is only called once per char. Use ON_ENTER_WORLD instead.
    Additionally, you should disable the part in your core that unsets the FFA flag once a player exists a FFA area. Otherwise, players would just enter any FFA zone and then leave it to get rid of their FFA flags

  8. #8
    Jotox's Avatar Contributor
    Reputation
    250
    Join Date
    Mar 2008
    Posts
    282
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeahhh this is a bit of a fail.

    Look at what Spidey said.

    Btw as Spidey said, an ON_ENTER_WORLD hook would work, but if you don't want a major core edit you should just make an ON_ZONE hook that sets the flag every time you zone (thus if the core unsets your flag because you enter a sanctuary or something, the script will re-set it.)

Similar Threads

  1. [Release] Herbs to flag
    By Dave-evad in forum World of Warcraft Model Editing
    Replies: 9
    Last Post: 11-26-2006, 03:31 PM
  2. Burning Crusdade Release Date!
    By codydude815 in forum World of Warcraft General
    Replies: 22
    Last Post: 10-30-2006, 01:59 PM
  3. Burning Crusdade Release Date!
    By codydude815 in forum World of Warcraft Guides
    Replies: 15
    Last Post: 10-28-2006, 12:15 PM
  4. anti-warden Release #1
    By zhPaul in forum World of Warcraft Bots and Programs
    Replies: 40
    Last Post: 10-21-2006, 01:40 AM
  5. Burning Crusade Release
    By KOLOSSAL in forum World of Warcraft General
    Replies: 3
    Last Post: 10-10-2006, 12:33 AM
All times are GMT -5. The time now is 04:02 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search