LUA PVP Kill Announce Script menu

Shout-Out

User Tag List

Results 1 to 9 of 9
  1. #1
    spectre123's Avatar Member
    Reputation
    8
    Join Date
    Sep 2008
    Posts
    130
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    LUA PVP Kill Announce Script

    Hey there guys. Sorry for requestiong something again. But is there a Script were a player when they kill another player it says on EVERY players screen <So and So> has Slaughtered or Killed <so and so>

    Please get back to me :wave:

    LUA PVP Kill Announce Script
  2. #2
    volitle's Avatar Contributor
    Reputation
    181
    Join Date
    Nov 2007
    Posts
    1,127
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i think this can only be done through c++


  3. #3
    spectre123's Avatar Member
    Reputation
    8
    Join Date
    Sep 2008
    Posts
    130
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    awww damn it.

  4. #4
    Everlast118's Avatar Member
    Reputation
    4
    Join Date
    Sep 2007
    Posts
    35
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It is done in C++, I have a copy of the code from ArcEmu forums.
    Code:
    if(plr->getLevel() >= 80 && victim->getLevel() >= 80 && plr->GetTeam() != victim->GetTeam())
    Code:
    //Made by ???
    //Modified by WigSplitta whole code
    //Re-Modified by HalestormXV (Added More Features)
    //Random Dice Concept to Kuraria for Helping me
    
    
    #include "StdAfx.h"
    #include "Setup.h"
    
    #define GOLD_AMOUNT 1000000  //it is in copper
                        
    #define PVP_TOKEN 19712 //Put Your Token ID Here    
    
    void onPvpKill(Player* plr, Player* victim)
    {
       if(plr->getLevel() >= 80 && victim->getLevel() >= 80 && plr->GetTeam() != victim->GetTeam())
       {
          char message[200];
          sprintf(message, "|cff00ff00[World PvP]|r |cffff0000%s has killed %s...The hunt begins!|r", plr->GetName(), victim->GetName());
          sWorld.SendWorldWideScreenText(message);
          sLog.outColor(TRED,"\n[WPVP]: WPVP Activated - the killer was %s...The victim was %s.", plr->GetName(), victim->GetName());
          sLog.outColor(TNORMAL,"\n");
          int32 gold_check_p = plr->GetUInt32Value( PLAYER_FIELD_COINAGE );
          int32 gold_check_v = victim->GetUInt32Value( PLAYER_FIELD_COINAGE );
          int32 new_gold_p = gold_check_p + GOLD_AMOUNT;
          int32 new_gold_v;
          if(gold_check_v < GOLD_AMOUNT)
          {
             new_gold_v = 0;
          }
          else
          {
             new_gold_v = gold_check_v - GOLD_AMOUNT;
          }
          plr->SetUInt32Value( PLAYER_FIELD_COINAGE, new_gold_p );
          plr->BroadcastMessage("You have gained 100 gold for this kill and the victim's soul for your own use.");
          plr->CastSpell(plr, 27239, true);
          plr->PlaySoundToSet(11466);
          victim->SetUInt32Value( PLAYER_FIELD_COINAGE, new_gold_v );
          victim->BroadcastMessage("You have lost 100 gold and your soul! Learn to fight!!");
    
    
          int die;
          die = rand()%5 + 1;
          if((die == 1) || (die == 2))
          {
             plr->GetItemInterface()->SafeAddItem(PVP_TOKEN, INVENTORY_SLOT_NOT_SET, -1);
             Item * it = objmgr.CreateItem(PVP_TOKEN, plr);
             plr->GetItemInterface()->AddItemToFreeSlot(it);
             sLog.outColor(TGREEN,"[WPVP]: A Token was added for this kill to %s", plr->GetName());
             sLog.outColor(TNORMAL,"\n");
          }
          else
          {
             sLog.outColor(TYELLOW,"[WPVP]: A Token was not added to %s", plr->GetName());
             sLog.outColor(TNORMAL,"\n");
          }
    
       }
    }
    void SetupPvP(ScriptMgr * mgr)
    {
       mgr->register_hook(SERVER_HOOK_EVENT_ON_KILL_PLAYER, (void*)onPvpKill);
    }
    Taken from ArcEmu forums. I have not tested this as I have not had the time.

  5. #5
    Mircast's Avatar Member
    Reputation
    14
    Join Date
    Sep 2008
    Posts
    139
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Everlast118 View Post
    It is done in C++, I have a copy of the code from ArcEmu forums.
    Code:
    if(plr->getLevel() >= 80 && victim->getLevel() >= 80 && plr->GetTeam() != victim->GetTeam())
    Code:
    //Made by ???
    //Modified by WigSplitta whole code
    //Re-Modified by HalestormXV (Added More Features)
    //Random Dice Concept to Kuraria for Helping me
    
    
    #include "StdAfx.h"
    #include "Setup.h"
    
    #define GOLD_AMOUNT 1000000  //it is in copper
                        
    #define PVP_TOKEN 19712 //Put Your Token ID Here    
    
    void onPvpKill(Player* plr, Player* victim)
    {
       if(plr->getLevel() >= 80 && victim->getLevel() >= 80 && plr->GetTeam() != victim->GetTeam())
       {
          char message[200];
          sprintf(message, "|cff00ff00[World PvP]|r |cffff0000%s has killed %s...The hunt begins!|r", plr->GetName(), victim->GetName());
          sWorld.SendWorldWideScreenText(message);
          sLog.outColor(TRED,"\n[WPVP]: WPVP Activated - the killer was %s...The victim was %s.", plr->GetName(), victim->GetName());
          sLog.outColor(TNORMAL,"\n");
          int32 gold_check_p = plr->GetUInt32Value( PLAYER_FIELD_COINAGE );
          int32 gold_check_v = victim->GetUInt32Value( PLAYER_FIELD_COINAGE );
          int32 new_gold_p = gold_check_p + GOLD_AMOUNT;
          int32 new_gold_v;
          if(gold_check_v < GOLD_AMOUNT)
          {
             new_gold_v = 0;
          }
          else
          {
             new_gold_v = gold_check_v - GOLD_AMOUNT;
          }
          plr->SetUInt32Value( PLAYER_FIELD_COINAGE, new_gold_p );
          plr->BroadcastMessage("You have gained 100 gold for this kill and the victim's soul for your own use.");
          plr->CastSpell(plr, 27239, true);
          plr->PlaySoundToSet(11466);
          victim->SetUInt32Value( PLAYER_FIELD_COINAGE, new_gold_v );
          victim->BroadcastMessage("You have lost 100 gold and your soul! Learn to fight!!");
    
    
          int die;
          die = rand()%5 + 1;
          if((die == 1) || (die == 2))
          {
             plr->GetItemInterface()->SafeAddItem(PVP_TOKEN, INVENTORY_SLOT_NOT_SET, -1);
             Item * it = objmgr.CreateItem(PVP_TOKEN, plr);
             plr->GetItemInterface()->AddItemToFreeSlot(it);
             sLog.outColor(TGREEN,"[WPVP]: A Token was added for this kill to %s", plr->GetName());
             sLog.outColor(TNORMAL,"\n");
          }
          else
          {
             sLog.outColor(TYELLOW,"[WPVP]: A Token was not added to %s", plr->GetName());
             sLog.outColor(TNORMAL,"\n");
          }
    
       }
    }
    void SetupPvP(ScriptMgr * mgr)
    {
       mgr->register_hook(SERVER_HOOK_EVENT_ON_KILL_PLAYER, (void*)onPvpKill);
    }
    Taken from ArcEmu forums. I have not tested this as I have not had the time.
    Yeah, this is a very popular script. It works 100%
    And upon death, it plays the voice of Illidan. "You are not prepared!"

  6. #6
    spectre123's Avatar Member
    Reputation
    8
    Join Date
    Sep 2008
    Posts
    130
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How to i put this into the c++ format or whatever? Please tell me

  7. #7
    shadowslayer133's Avatar Active Member
    Reputation
    61
    Join Date
    May 2008
    Posts
    313
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You have to complie your own server and add it :S sorry mate

    Done by piersd
    Gamer tag - Midnight133

  8. #8
    Spectre90's Avatar Contributor
    Reputation
    92
    Join Date
    Jan 2008
    Posts
    77
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Everlast118 View Post
    It is done in C++, I have a copy of the code from
    Taken from ArcEmu forums. I have not tested this as I have not had the time.
    Explains why it has so many useless elements.

  9. #9
    spectre123's Avatar Member
    Reputation
    8
    Join Date
    Sep 2008
    Posts
    130
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I hate C++ Then >.<

Similar Threads

  1. [LUA] pvp script, if possible.
    By alj03 in forum WoW EMU Questions & Requests
    Replies: 10
    Last Post: 02-01-2009, 07:14 AM
  2. .:Wowwo's World:. [2.4.3] - Custom PvP Announcer | Scripted Inst. +++
    By Mikmas in forum WoW Emulator Server Listings
    Replies: 0
    Last Post: 07-21-2008, 02:43 PM
  3. [Guide]More LUA ascent 2.3 scripts
    By Pragma in forum WoW EMU Guides & Tutorials
    Replies: 27
    Last Post: 04-10-2008, 01:06 PM
  4. [Help] New to LUA, Need help with script.
    By nickelo in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 03-14-2008, 11:23 PM
  5. [Help] i need Lua help with this script...
    By Ellenor in forum World of Warcraft Emulator Servers
    Replies: 25
    Last Post: 03-03-2008, 03:45 PM
All times are GMT -5. The time now is 09:45 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search