[C++ and LUA Patch] 6 Custom Player Functions menu

User Tag List

Results 1 to 11 of 11
  1. #1
    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)

    [C++ and LUA Patch] 6 Custom Player Functions

    Here is a custom patch that can be applied to your core for an extra 6 players functions to be used in scripting. The functions are as follows:

    CanRemoveCoinage(gold, silver, copper);
    RemoveCoinage(gold, silver, copper);
    RemoveSilver(silver);
    CanRemoveSilver(silver);
    RemoveGold(gold);
    CanRemoveGold(
    gold);

    Pretty simple to use, here's a sample using some:


    Code:
    if(Player->CanRemoveGold(100))
    {
         // The player has at least 100 gold! STEAL SOME!
         Player->RemoveCoinage(99,76,43);
              //Removes 99 gold, 76 silver, 43 copper
    }
    else
    {
         // The player did not have 100 gold :<
         Player->BroadcastMessage("You don't have 100 gold? Well Shit.");
    }
    --) ALL CREDITS GO TO ME, Gastricpenguin, FOR CODING THESE FUNCTIONS (--
    Download the Patch
    Last edited by Gastricpenguin; 02-24-2009 at 07:15 PM.
    Life Puzzler WoW - Website | Forums

    [C++ and LUA Patch] 6 Custom Player Functions
  2. #2
    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)
    LUA VERSION

    If you want the same set of functions, plus an added bonus, you can use this patch to update your lua engine!
    Lua Functions:

    GetMoney();
    CanRemoveCoinage(gold,silver,copper);
    CanRemoveGold(gold);
    CanRemoveSilver(silver);
    RemoveCoinage(gold,silver,copper);
    RemoveGold(gold);
    RemoveSilver(silver);


    Usage of Lua functions:
    Code:
    function CheckMonay(player)
    if(player:CanRemoveSilver(10)) then
         //The player has 10 silver... hawt
         player:RemoveCoinage(0,0,40);
    end
    end


    --) ALL CREDITS GO TO ME, Gastricpenguin, FOR CODING THESE FUNCTIONS (--
    Download the Lua Patch
    Last edited by Gastricpenguin; 02-24-2009 at 08:27 PM.
    Life Puzzler WoW - Website | Forums

  3. #3
    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 masterpiece by u! very nice work indeed..
    i will +rep u when i spread some

  4. #4
    Vragoth's Avatar Established Member
    Reputation
    55
    Join Date
    Nov 2008
    Posts
    422
    Thanks G/R
    5/1
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Another Great release by Gastricpenguin !!

  5. #5
    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)
    Second post updated with LUA availability!
    Life Puzzler WoW - Website | Forums

  6. #6
    Mitron's Avatar Contributor
    Reputation
    127
    Join Date
    Jun 2008
    Posts
    1,324
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Looks cool but what is it for ?? lol ye im a n00b at this stuff lol

    ----------------------------------------------------------------

  7. #7
    Appled's Avatar Contributor
    Reputation
    105
    Join Date
    Apr 2007
    Posts
    568
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Great work like always +Rep

  8. #8
    Italian / Envy's Avatar Member
    Reputation
    13
    Join Date
    Jan 2009
    Posts
    128
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is Money (Monay)spelled wrong on purpose O.O
    function CheckMonay(player)
    if(player:CanRemoveSilver(10)) then
    //The player has 10 silver... hawt
    player:RemoveCoinage(0,0,40);
    end
    end

  9. #9
    alj03's Avatar Contributor
    Reputation
    91
    Join Date
    Feb 2008
    Posts
    1,103
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Great job, keep up your mad skills :P +Rep.
    Death to all but Metal.

  10. #10
    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)
    The GUA Engine will be released soon
    Life Puzzler WoW - Website | Forums

  11. #11
    RyeRye's Avatar Contributor
    Reputation
    240
    Join Date
    Aug 2008
    Posts
    996
    Thanks G/R
    0/1
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Looks good Gastric, will +Rep later.



Similar Threads

  1. [Guide] Some Useful Player Functions in Lua
    By Hadesminion13 in forum WoW EMU Guides & Tutorials
    Replies: 2
    Last Post: 08-03-2010, 02:31 AM
  2. Crusade-WoW|Custom Content|T7 and T8|254 Cap|Custom Mall|
    By Corosive720 in forum WoW Emulator Server Listings
    Replies: 0
    Last Post: 11-04-2007, 05:36 PM
  3. Past and Present Patch Highlights
    By slothahoy in forum World of Warcraft Guides
    Replies: 5
    Last Post: 12-11-2006, 10:11 AM
  4. How to get WoW and their Patches with Hack?
    By fReAk in forum World of Warcraft General
    Replies: 0
    Last Post: 06-11-2006, 01:41 AM
All times are GMT -5. The time now is 03:50 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