[FrostTeam]PVP Money menu

User Tag List

Results 1 to 10 of 10
  1. #1
    Edude's Avatar Member
    Reputation
    98
    Join Date
    Jul 2008
    Posts
    406
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [FrostTeam]PVP Money

    So this is another of my team's releases, from Snailz btw. He gave me permission to post it here, so im sharing


    PVPMoney.cpp

    Code:
    /***********************************************************
    *                                                          *
    *                                                          *
    *               ******************************             *                   
    *               *                            *             *
    *               *   The FrostTeam Project    *             *     
    *               *          Snailz            *             *
    *               ******************************             *            
    *                                                          *
    *                                                          *
    *      --FrostTeam SVN consists of the latest WotLK        *   
    *      scripts, both Lua and C++. Some will be our own,    *
    *      some will be others with credits attatched. Our     *
    *      Svn includes all scripts that you may need          *
    *      to help make your server a more fun environment.--  *
    *                                                          *
    ************************************************************/
    
    #include "StdAfx.h"
    #include "Setup.h"
    
    void onPvpKill(Player* plr, Player* victim)
    {
    	if( plr->GetTeam() != victim->GetTeam())
    	{
    		char message[200];
    		sprintf(message, "%s has killed %s", plr->GetName(), victim->GetName()); // In the Quotes "%s has killed %s" this will be announce when someone killed someone %s being killers then victims name
    		sWorld.SendWorldWideScreenText(message);
    
    		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 + 50000;// Coinage added on kill
    		int32 new_gold_v;
    		if(gold_check_v < 50000)// If player has 5 gold wont remove any
    		{
    			new_gold_v = 0;
    		}
    		else
    		{
    			new_gold_v = gold_check_v - 50000;//Coinage lost on death. Remember, 50000 = 5 Gold
    		}
    
    		plr->SetUInt32Value( PLAYER_FIELD_COINAGE, new_gold_p );
    		victim->SetUInt32Value( PLAYER_FIELD_COINAGE, new_gold_v );
    	}
    }
    
    void SetupPvPMoney(ScriptMgr * mgr)
    {
    	mgr->register_hook(SERVER_HOOK_EVENT_ON_KILL_PLAYER, (void*)onPvpKill);
    }

    Basically, when you kill a player, you will get 5gold, and the deceased player will lose 5gold :P


    frosteam - Revision 41: /

    [FrostTeam]PVP Money
  2. #2
    Snailz's Avatar Contributor Authenticator enabled
    Reputation
    239
    Join Date
    Nov 2007
    Posts
    941
    Thanks G/R
    2/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes i did give him perm. No flaming >.>
    Cheese Cake?

  3. #3
    AzolexX's Avatar Contributor
    Reputation
    179
    Join Date
    May 2007
    Posts
    587
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No hack check's can bug server/player if inventory is full, waste of CPU.

    Find about scripting, programming and music! My blog: https://worldofsmth.wordpress.com!

  4. #4
    bsod-staff14's Avatar Member
    Reputation
    35
    Join Date
    Nov 2008
    Posts
    443
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice man once again!
    Immortal GamerZ Under Development!

  5. #5
    darkdragon555's Avatar Member
    Reputation
    1
    Join Date
    Mar 2007
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    where is pvpmoney.cpp located lol i cant find it!!!

  6. #6
    ~Jagris's Avatar Contributor
    Reputation
    154
    Join Date
    Apr 2007
    Posts
    1,479
    Thanks G/R
    2/2
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by darkdragon555 View Post
    where is pvpmoney.cpp located lol i cant find it!!!
    UBER FAIL, you have to make it your self.


  7. #7
    Eski's Avatar Contributor
    Reputation
    183
    Join Date
    Dec 2006
    Posts
    1,010
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    To bad this sort of thing isn't involved in the real servers.
    Lose a Arena.. Lose Money?!?!


    I think that could suck just as much as it would rock..

  8. #8
    Sharktail222's Avatar Member
    Reputation
    1
    Join Date
    Sep 2007
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Dude, its a little bad that you loose 5g when you loose.
    But this rocks anyway, for mangos?
    no ? ^_-

  9. #9
    shellx's Avatar Member
    Reputation
    12
    Join Date
    Oct 2007
    Posts
    44
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    when it doesnt delete 5 gold from the defeated ppl

    it will be better

    anyways

    thx 4 sharing

  10. #10
    Link_S's Avatar Member
    Reputation
    125
    Join Date
    Dec 2008
    Posts
    293
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    +Rep for releasing, Snailz +Rep for making

Similar Threads

  1. [Selling] WTS>Alliance PvP Account Pally, Hunter and 80 Druid Account, Money Maker Account
    By argsnaut in forum WoW-US Account Buy Sell Trade
    Replies: 0
    Last Post: 08-28-2011, 08:52 PM
  2. [Selling] WTT Full PVP Priest/Paladin, Full geared Tank, 3 85's money or SWTOR Beta
    By sswowowner in forum WoW-US Account Buy Sell Trade
    Replies: 0
    Last Post: 08-12-2011, 01:51 AM
  3. Cash Game Fights - PvP For Money
    By gogumaster in forum WoW Emulator Server Listings
    Replies: 0
    Last Post: 02-09-2011, 12:44 AM
  4. Make money in 3.1 as a rogue while PvP
    By Sarkor in forum World of Warcraft Guides
    Replies: 17
    Last Post: 07-30-2009, 05:43 AM
  5. PVP script (money for killing)
    By Septrax in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 04-22-2009, 04:55 PM
All times are GMT -5. The time now is 06:57 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