Small PvP Script menu

User Tag List

Results 1 to 8 of 8
  1. #1
    warxhead's Avatar Member
    Reputation
    13
    Join Date
    Jan 2007
    Posts
    76
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Small PvP Script

    Just a small onkill script :>
    PvP.cpp
    Code:
    //Coded by WaRxHeAd
    #include "Setup.h"
    #include "StdAfx.h"
    void SetupPvPSystem(ScriptMgr * mgr)
    {
    	mgr->register_hook(SERVER_HOOK_EVENT_ON_KILL_PLAYER, &OnKillPlayer);
    }
    
    void OnKillPlayer(Player * pPlayer, Player * pVictim)
    {
    	if(pPlayer == pVictim) /*What a looooooser :) */
    		return; 
    
    	pPlayer->ModUInt32Value(PLAYER_FIELD_COINAGE, 100000);
    	pPlayer->BroadcastMessage("You have killed %s and earned 10 gold.", pVictim->GetName());
    
    	std::stringstream msg;
    	msg << pVictim->GetName();
    	msg << " has been maimed, and disfigured by: ";
    	msg << pPlayer->GetName();
    	sWorld.SendWorldWideScreenText(msg.str().c_str());
    
    	pVictim->ModUInt32Value(PLAYER_FIELD_COINAGE, 30000);
    	pVictim->BroadcastMessage("You have been raped by %s and gained 3 gold because of your high spirits.", pPlayer->GetName());
    
    }
    Setup.cpp
    Code:
    #include "StdAfx.h"
    #include "Setup.h"
    
    extern "C" SCRIPT_DECL uint32 _exp_get_script_type()
    {
    	return SCRIPT_TYPE_MISC;
    }
    
    extern "C" SCRIPT_DECL void _exp_script_register(ScriptMgr* mgr)
    {
        SetupPvPSystem(mgr);
    }
    
    #ifdef WIN32
    
    BOOL APIENTRY DllMain( HANDLE hModule, DWORD  ul_reason_for_call, LPVOID lpReserved )
    {
        return TRUE;
    }
    
    #endif
    Setup.h
    Code:
    #include "StdAfx.h"
    
    void SetupPvPSystem(ScriptMgr * mgr);
    void OnKillPlayer(Player * pPlayer, Player * pVictim);
    I did not copy and paste this, I did not steal anyone's work.

    Enjoy.
    Last edited by warxhead; 02-27-2008 at 08:20 PM.

    Small PvP Script
  2. #2
    Clain's Avatar Banned
    Reputation
    179
    Join Date
    Jan 2008
    Posts
    1,396
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Compiling now, nice contrib nonetheless

  3. #3
    warxhead's Avatar Member
    Reputation
    13
    Join Date
    Jan 2007
    Posts
    76
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If I had the latest rev, I would put a precompiled version up on here, unfourtantly, I don't. If anyone does want to compile it with latest, go for it .

  4. #4
    Gastricpenguin's Avatar Legendary
    Reputation
    980
    Join Date
    Feb 2007
    Posts
    2,236
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thats pointless :P
    DLL's only work on the core they have been compiled with. Or else you will get error city ^^
    Life Puzzler WoW - Website | Forums

  5. #5
    Ellenor's Avatar Active Member
    Reputation
    18
    Join Date
    Jan 2008
    Posts
    281
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    another awesome asnwer from the grand gastric

  6. #6
    warxhead's Avatar Member
    Reputation
    13
    Join Date
    Jan 2007
    Posts
    76
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, that's why I specifically said, If I had the latest rev, I would put a compile up. I don't use the latest revision(I would post the revision number...). I know exactly how DLLs work...

  7. #7
    Clain's Avatar Banned
    Reputation
    179
    Join Date
    Jan 2008
    Posts
    1,396
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Don't spam zenneth...

  8. #8
    warxhead's Avatar Member
    Reputation
    13
    Join Date
    Jan 2007
    Posts
    76
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Remove the second part of gold giving if you do not want your players to get something when they die.
    Remove:
    Code:
    
    	pVictim->ModUInt32Value(PLAYER_FIELD_COINAGE, 30000);
    	pVictim->BroadcastMessage("You have been raped by &#37;s and gained 3 gold because of your high spirits.", pPlayer->GetName());

Similar Threads

  1. [REQUEST] PvP Script
    By Blackboy0 in forum WoW EMU Questions & Requests
    Replies: 7
    Last Post: 01-26-2009, 08:10 PM
  2. Reborn WoW [Pre-BC PvP] [Scripted!]
    By SuperChickenofDoom in forum WoW Emulator Server Listings
    Replies: 0
    Last Post: 09-20-2008, 08:10 PM
  3. [HELP] Cant get PVP Scripts to work(REPOST)
    By Darksid in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 07-04-2008, 01:16 PM
  4. [HELP] PVP Script Question
    By Darksid in forum World of Warcraft Emulator Servers
    Replies: 8
    Last Post: 07-03-2008, 11:59 AM
  5. [Guided Release] PvP script explained
    By TheSpidey in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 04-08-2008, 05:02 AM
All times are GMT -5. The time now is 12:33 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