Script: 1 Killing Blow on a Player = 1 Gold menu

User Tag List

Results 1 to 6 of 6
  1. #1
    Creepfold's Avatar Contributor
    Reputation
    176
    Join Date
    Jul 2007
    Posts
    536
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Script: 1 Killing Blow on a Player = 1 Gold

    I am making an pvp server, but i need to have this script and i am unable to script it myself, perhaps any C++ or LUA pro's here who can script it? btw, i dont even know how to compile C++ xD i am often using LUA. Thanks
    RickAstley LUA Boss! (Rickroll)
    mmowned.com/forums/emulator-server-releases/171755-epic-release-rick-astley-rickroll-boss-lua.html#post1119442

    Script: 1 Killing Blow on a Player = 1 Gold
  2. #2
    Nymphx's Avatar Active Member
    Reputation
    83
    Join Date
    Sep 2008
    Posts
    212
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think we have one in our SVN made by Snailz:

    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);
    }
    Enjoy.

  3. #3
    Creepfold's Avatar Contributor
    Reputation
    176
    Join Date
    Jul 2007
    Posts
    536
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    And.... how do i compline it:P? or could someone compile it for me xD? i never understanded anything from the guides, if you can link me a good one, ill check it out for sure
    RickAstley LUA Boss! (Rickroll)
    mmowned.com/forums/emulator-server-releases/171755-epic-release-rick-astley-rickroll-boss-lua.html#post1119442

  4. #4
    Romis's Avatar Contributor
    Reputation
    155
    Join Date
    Dec 2006
    Posts
    359
    Thanks G/R
    8/2
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Creepfold View Post
    And.... how do i compline it:P? or could someone compile it for me xD? i never understanded anything from the guides, if you can link me a good one, ill check it out for sure

    Go into your World of Warcraft Private Server folder.
    Find the folder called scripts.
    Go inside there, and right click make new.
    Then paste everything in that script inside, and when you save
    name the document : thenameofthescriptdoesntreallymatter.LUA
    Remember to save with .lua after the text.

    Here is a picture of what I mean:


    Hope this helps!




  5. #5
    TheSpidey's Avatar Elite User
    Reputation
    365
    Join Date
    Jan 2008
    Posts
    2,200
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This isn't lua, it's C++. There are plenty of compiling guides out there, use them

  6. #6
    Romis's Avatar Contributor
    Reputation
    155
    Join Date
    Dec 2006
    Posts
    359
    Thanks G/R
    8/2
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    My bad, hehe. I didn't look too close at the script. Sowwy!



Similar Threads

  1. Kill friendly low level players.
    By istnuk in forum World of Warcraft Exploits
    Replies: 9
    Last Post: 12-21-2016, 08:18 PM
  2. [PQR] PvP Skill Amplifier: BG Killing Blow Leecher
    By RedRussian in forum WoW Bot Maps And Profiles
    Replies: 17
    Last Post: 10-17-2013, 07:36 AM
  3. [Quest][Empire] The Killing Blow (Hoth)
    By gurluas in forum SWTOR Exploits
    Replies: 0
    Last Post: 01-01-2012, 11:50 PM
  4. [Selling] Outland EU gold [A] - player earned gold.
    By jeulz in forum World of Warcraft Buy Sell Trade
    Replies: 1
    Last Post: 11-08-2011, 06:55 PM
  5. aggro the AV Yeti into killing your own faction players
    By pvphell in forum World of Warcraft Guides
    Replies: 13
    Last Post: 03-09-2008, 09:39 PM
All times are GMT -5. The time now is 05:48 AM. 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