My PVP Token reward. menu

User Tag List

Results 1 to 4 of 4
  1. #1
    Mooman001's Avatar Member
    Reputation
    2
    Join Date
    Sep 2007
    Posts
    11
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    My PVP Token reward.

    Right then. This is for ArcEmu i just improved on some-one else's has stackable Badge Of Justice on a 50% roll so you don't get them too quickly. Also Here's a full list of BoJ extended costs.

    Code:
    1909 - 10
    1642 - 15
    1452 - 20
    1015 - 25
    1454 - 30
    1037 - 33
    2060 - 35
    2347 - 40
    1027 - 41
    2332 - 45
    1040 - 50
    2059 - 60
    2049 - 75
    2333 - 100
    2331 - 105
    2330 - 125
    2329 - 150
    Got these off a DBC reader for those wondering.

    Here's the Code...

    Code:
    #include "StdAfx.h"
    #include "Setup.h"
    
    #define TokenID 29434
    #define amt 1
    
    void addToken(Player* pPlayer)
    {
        int RandomNumberGenerator = RandomUInt(100);
    
        ItemPrototype* it = ItemPrototypeStorage.LookupEntry(TokenID);
        Item * add = pPlayer->GetItemInterface()->FindItemLessMax(TokenID, amt, false);
        SlotResult slotresult = pPlayer->GetItemInterface()->FindFreeInventorySlot(it);
    
        if(RandomNumberGenerator <= 50)
        {
            pPlayer->BroadcastMessage("You have gained a token.");
            if (!add)
            {
                if(!slotresult.Result)
                {
                    pPlayer->GetItemInterface()->BuildInventoryChangeError(NULL, NULL, INV_ERR_INVENTORY_FULL);
                } else {
                    Item *item = objmgr.CreateItem( TokenID, pPlayer);
                    item->SetUInt32Value( ITEM_FIELD_STACK_COUNT, amt );
                    if( pPlayer->GetItemInterface()->SafeAddItem( item, slotresult.ContainerSlot, slotresult.Slot ))
                    {
                        pPlayer->GetSession()->SendItemPushResult(item,false,true,true,true,slotresult.ContainerSlot,slotresult.Slot,1);
                        sQuestMgr.OnPlayerItemPickup(pPlayer,item);
                    } else {
                        item->DeleteMe();
                    }
                }
            } else {
                add->SetCount(add->GetUInt32Value(ITEM_FIELD_STACK_COUNT) + amt);
                add->m_isDirty = true;
                pPlayer->GetSession()->SendItemPushResult(add, false, true, true, false, pPlayer->GetItemInterface()->GetBagSlotByGuid(add->GetGUID()), 0xFFFFFFFF, 1);
            }
        } else {
            pPlayer->BroadcastMessage("You have not gained a token.");
        }
    }
    
    void SetupTokens(ScriptMgr * mgr)
    {
        mgr->register_hook(SERVER_HOOK_EVENT_ON_KILL_PLAYER, (void*)addToken);
    }
    Edit the TokenID to change the ID of token or the amt to change amount per kill.
    This is fully customizable and i don't need credits just +Rep if you use it.
    Last edited by Mooman001; 09-25-2008 at 02:59 PM.

    My PVP Token reward.
  2. #2
    Devilsadvocate's Avatar Member
    Reputation
    70
    Join Date
    May 2008
    Posts
    254
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for share. Prolly won't use this since i'm scripting an advanced pvptoken source but this is a script most have probs with so +Rep for you sir.
    I'm not going to be releasing anything for a while. I'm back on retail for new content.

  3. #3
    Mooman001's Avatar Member
    Reputation
    2
    Join Date
    Sep 2007
    Posts
    11
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm interested in you're "advanced" idea. Wish to tell me about it?

  4. #4
    Devilsadvocate's Avatar Member
    Reputation
    70
    Join Date
    May 2008
    Posts
    254
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    no sorry....unfortunately I'm not giving any details or hints about it until I release it. Last time i did that my concept was janked lol. (Not gonna say any names)
    I'm not going to be releasing anything for a while. I'm back on retail for new content.

Similar Threads

  1. [HELP]Item cost PvP Tokens
    By jackdaripper in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 04-19-2008, 06:48 PM
  2. [HELP] PvP Tokens
    By jackdaripper in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 04-13-2008, 02:43 PM
  3. PvP Token System
    By reconz in forum World of Warcraft Emulator Servers
    Replies: 11
    Last Post: 02-13-2008, 01:40 PM
  4. PvP Token System!
    By Performer in forum World of Warcraft Emulator Servers
    Replies: 6
    Last Post: 02-03-2008, 03:42 PM
  5. TBC new pvp syster rewards!
    By sportstud10124 in forum World of Warcraft General
    Replies: 3
    Last Post: 11-20-2006, 06:09 PM
All times are GMT -5. The time now is 05:02 AM. 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