[Request] Recieve token script +rep for the helpers menu

Shout-Out

User Tag List

Results 1 to 4 of 4
  1. #1
    vikelous's Avatar Member
    Reputation
    1
    Join Date
    Aug 2008
    Posts
    5
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Request] Recieve token script +rep for the helpers

    Hi ppl.

    I'm just wondering if there's anyone who've seen or have a script that gives a Badge of Justice or some token to the winning arena team?

    Saw it on a server and i think it was pretty cool.

    Thanks.
    Last edited by vikelous; 10-02-2008 at 03:22 PM.

    [Request] Recieve token script +rep for the helpers
  2. #2
    Moaradin's Avatar Contributor
    Reputation
    163
    Join Date
    Feb 2008
    Posts
    439
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    heres one

    Code:
    include "StdAfx.h"
    #include "Setup.h"
    
    void onPvpKill(Player* plr, Player* victim)
    {
        int itemID;
        uint32 tokenItem = Config.MainConfig.GetInt("NCDB", "PvPTokenID", &itemID);
    
        //sLog.outColor(TGREEN,"n[NCDB] (%u)%s killed (%u)%s", plr->getLevel(), plr->GetName(), victim->getLevel(), victim->GetName());
        char onkill[1024];
        snprintf((char*)onkill, 1024, "[PVP] %s has killed %s", plr->GetName(), victim->GetName());
        //sWorld.SendWorldWideScreenText(onkill);
    
    	if(plr->getLevel() >= 70 && victim->getLevel() >= 70 && plr->GetGUID() != victim->GetGUID() && plr->GetZoneId() != 357)
        {
    		sWorld.SendWorldWideScreenText(onkill);
            //sLog.outColor(TGREEN,"n[NCDB] Adding token to %s", plr->GetName());
            //sLog.outColor(TNORMAL,"n");
            ItemPrototype *proto = ItemPrototypeStorage.LookupEntry(itemID);
            if(!proto) return;
            SlotResult slotresult;
            slotresult = plr->GetItemInterface()->FindFreeInventorySlot(proto);
    
            if(!slotresult.Result)
            {
                plr->GetItemInterface()->BuildInventoryChangeError(NULL, NULL, INV_ERR_INVENTORY_FULL);
            }
            else
            {
                Item *itm = objmgr.CreateItem(itemID, plr);
                plr->GetItemInterface()->SafeAddItem(itm,slotresult.ContainerSlot, slotresult.Slot);
                itm->m_isDirty = true;
            }
        }
        else
        {
            //sLog.outColor(TGREEN,"n[NCDB] Not adding token since they both are not level 80");
            //sLog.outColor(TNORMAL,"n");
        }
    }
    
    
    void SetupPvPToken(ScriptMgr * mgr)
    {
        mgr->register_hook(SERVER_HOOK_EVENT_ON_KILL_PLAYER, onPvpKill);
    }
    your going to need to compile it though

  3. #3
    Performer's Avatar Contributor
    Reputation
    212
    Join Date
    Nov 2007
    Posts
    874
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That is a token on kill player script.


  4. #4
    vikelous's Avatar Member
    Reputation
    1
    Join Date
    Aug 2008
    Posts
    5
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Useful until i find the one im looking for.

    Ty.
    Last edited by vikelous; 10-12-2008 at 11:30 AM.

Similar Threads

  1. Realy cant Get server Public [Help Please] (ofc +rep for the helper)
    By Virioz in forum WoW EMU Questions & Requests
    Replies: 8
    Last Post: 11-04-2009, 04:35 PM
  2. How do i update form 2.4.2 to 2.4.3 ascent + rep for the helper
    By mjas in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 08-19-2008, 04:17 PM
  3. [HELP] Scripting +rep for help
    By Summer in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 02-13-2008, 09:30 PM
  4. Replies: 22
    Last Post: 01-17-2008, 03:13 AM
  5. +rep for the guy who helps
    By Wheeze201 in forum World of Warcraft Emulator Servers
    Replies: 31
    Last Post: 12-26-2007, 12:03 AM
All times are GMT -5. The time now is 08:33 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