Welcome to AC Web.
Results 1 to 5 of 5
  1. #1


    Join Date
    Dec 2010
    Location
    www.TheForgottenCrusade.net
    Posts
    988

    Post [TFC-Core] LUA system PvP announce RELEASE!


    REGISTER! (FREE)
    Registered members see less ads
    and also gain access to other great features.
    Im releasing some of my server's scripts because it is paused atm due to a very low number of testers & developer non-consistency in terms of work flow, and I've worked for 1 year+ on this project, payed money to finance the server alone, without getting anything in return, so in the end i realized it wasn't really worth it. Anyway back to topic guys!

    PS: I am the owner. I am intentionally sharing these scripts to the public for obvious reasons I suppose.


    Script functionality: Displays the following;
    -[Killer_Name] has killed [Victim_Name] in [Zone_Name]
    -[PvP] [Zone_name] is in fighting!

    PHP Code:
    local function CustomMessage(playervictim)
        
    zoneId victim:GetZoneId()
        if (
    zoneId == 33then 
        SendWorldMessage
    ("|cccFFC433[PVP] ["..player:GetName().."] has killed ["..victim:GetName().."] in Gurubashi")
        elseif ( 
    zoneId == 33then --gurubashi arena
        SendWorldMessage
    ("|cff".."ff0000".."[PVP] Gurubashi Arena is in Fighting!")
        return
        
    end
    end

    -- prevent honor/arena farming
    -- [victimGUID] ={ lastKillerGUID }
    local AntiFarm = { }

    local function HandlePvPKill(eventplayervictim)
        if (
    player:GetGUIDLow() ~= victim:GetGUIDLow()) then -- do not allow suicide reward
            CustomMessage
    (playervictim)
            if (
    AntiFarm[victim:GetGUIDLow()] == nilthen
            
    elseif (AntiFarm[victim:GetGUIDLow()][1] ~= player:GetGUIDLow()) then
            CustomMessage
    (playervictim)
            
    end
            AntiFarm 
    = { [victim:GetGUIDLow()] = { player:GetGUIDLow() } }-- set last killer GUID
        end
    end

    RegisterPlayerEvent
    (6HandlePvPKill

    Enjoy free The Forgotten Crusade scripts. Hope this brings some joy or use to whoever comes across it!


    Thank you,
    Kind Regards,
    Nerc
    Last edited by Nerc; 04-08-2019 at 09:25 PM.

  2. #2
    K A P P A L O U N G E

    Join Date
    Sep 2011
    Location
    Germany
    Posts
    2,414
    I hope some will take use of those and appriciate the move.

  3. #3
    Hi! Interesting idea! I'll install it on my server!

  4. #4


    Join Date
    Dec 2010
    Location
    www.TheForgottenCrusade.net
    Posts
    988
    Quote Originally Posted by boobler View Post
    Hi! Interesting idea! I'll install it on my server!
    PM me on discord should you require any help.

    Regards,
    Nerc
    Last edited by Nerc; 06-19-2019 at 02:41 AM.

  5. #5


    Join Date
    Dec 2010
    Location
    www.TheForgottenCrusade.net
    Posts
    988

    REGISTER! (FREE)
    Registered members see less ads
    and also gain access to other great features.
    bump

 

 

Posting Permissions

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