[Lua] PvP "Bounty" System menu

User Tag List

Results 1 to 2 of 2
  1. #1
    darkwiz787's Avatar Member
    Reputation
    35
    Join Date
    Mar 2009
    Posts
    250
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Lua] PvP "Bounty" System

    !UNTESTED!

    Alright, after seeing loads of simple bosses that have phase one, two and three and they cast spells and say "Rawr", I decided that I would make something a little out of the ordinary. This script is relativity old, so there maybe a few things that don't needa be there.


    Code:
    --[[ Designed to work with....
    
          __                        __  __                  ______                 
         /\ \                      /\ \/\ \                /\  _  \                 
         \ \ \      __  __     __  \ \ \_\ \  __  __  _____\ \ \_\ \  _____  ___   
          \ \ \  __/\ \/\ \  /'__`\ \ \  _  \/\ \/\ \/\ '__`\ \  __ \/\`'__\/'___\  
           \ \ \_\ \ \ \_\ \/\ \_\.\_\ \ \ \ \ \ \_\ \ \ \_\ \ \ \/\ \ \ \//\ \__/  
            \ \____/\ \____/\ \__/ \_\\ \_\ \_\/`____ \ \  __/\ \_\ \_\ \_\\ \____\ 
             \/___/  \/___/  \/__/\/_/ \/_/\/_/`/___// \ \ \/  \/_/\/_/\/_/ \/____/ 
                                                  /\___/\ \_\                       
                                                  \/__/  \/_/   .zapto.org 
    (LuaHypArc.zapto.org)
    Custom Bounty PvP System
    Made by DarkBoy101
    ]]--
    
    bounty_table = {}
    
    local killcount = 0
    local BOUNTY_MSG = "#bounty" 
    
    
    function Register(Unit, pPlayer, Event)
          local PPLAYERNAME = pPlayer:GetName()
          table.insert(""...PPLAYERNAME..."", 100000)
    end
    end
    
    function KillCount(pKilled, pPlayer, Event)
       pPlayer:Killcount = killcount + 1
          pPlayer:RegisterEvent("KillMessage", 1000, 1)
    if pPlayer:IsDead() then
    killcount = 0
    end
    end
    
    function KillMessage(pPlayer, Unit, Event)
    local PPLAYERNAME = pPlayer:GetName()
       if(killcount > 5) then
          pPlayer:SendChatMessage(0, 0, ""...PPLAYERNAME..." has gone on a killing spree, killing "...killcount..." consecutive players, and now has a bounty of ["...PPLAYERNAME..."]  ")
    end
    end
    
    function Bounty (pPlayer, pKilled, Event)
    local PPLAYERNAME = pPlayer:GetName()
    local PKILLEDNAME = pKilled:GetName()
       bounty_table["...PPLAYERNAME..."] + ["...PKILLEDNAME..."]
       bounty_table["...PKILLEDNAME..."] = 100000
          pPlayer:AddItem(TOKENID, AMOUNT)
          pPlayer:DealGoldMerit(["...PKILLEDNAME..."])
          pKilled:DealGoldCost(["...PKILLEDNAME..."])
    end
    end
    
    function OnChat(event, plr, message, type, language, pPlayer)
    local PPLAYERNAME = pPlayer:GetName()
    	if (message == BOUNTY_MSG) then
    		plr:SendBroadcastMessage("You currentley have a bounty of ["...PPLAYERNAME.."] on your head. The last 4 digits are gold and silver.")
    end
    end   
    
    RegisterServerHook(3, "Register")
    RegisterServerHook(23, "KillCount")
    RegisterServerHook(23, "Bounty")
    RegisterServerHook(16, "OnChat")
    
    

    [Lua] PvP "Bounty" System
  2. #2
    darkwiz787's Avatar Member
    Reputation
    35
    Join Date
    Mar 2009
    Posts
    250
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The nomination is undeserved because I have discovered this script does not work, but I am in the process of fixing it.

Similar Threads

  1. S1K WoW | High Rate | Custom PVP Titles | Custom BOT System | 3.3.3a patch
    By drummingman2323 in forum WoW Emulator Server Listings
    Replies: 0
    Last Post: 07-13-2010, 12:49 AM
  2. [Lua - Double "H" Release] - Merc System
    By Hardball in forum WoW EMU General Releases
    Replies: 18
    Last Post: 02-26-2010, 08:22 PM
  3. [Release] Lua Craze PvP System
    By Trle94 in forum WoW EMU General Releases
    Replies: 26
    Last Post: 11-12-2009, 07:26 PM
  4. LUA PVP Kill Announce Script
    By spectre123 in forum WoW EMU Questions & Requests
    Replies: 8
    Last Post: 02-23-2009, 10:24 PM
  5. [LUA] pvp script, if possible.
    By alj03 in forum WoW EMU Questions & Requests
    Replies: 10
    Last Post: 02-01-2009, 07:14 AM
All times are GMT -5. The time now is 05:03 PM. 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