[Question] How to make players recieve token for honorable kill? menu

User Tag List

Results 1 to 8 of 8
  1. #1
    darknight22's Avatar Member
    Reputation
    9
    Join Date
    Mar 2007
    Posts
    10
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Question] How to make players recieve token for honorable kill?

    Hey I was wondering how you would set it up so that when you get an honorable kill you get a badge of justice, or some other sort of badge.

    Thxx in advance!

    [Question] How to make players recieve token for honorable kill?
  2. #2
    Ground Zero's Avatar ★ Elder ★
    Reputation
    1132
    Join Date
    Aug 2008
    Posts
    3,504
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There is a option on Arcemu/Ascent Optional.configs in your ArcEmu/Ascent Folder
    #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#

    <Extra Instant80="0"
    PvPToken="0"
    PvPTokenID="13905"
    PvPKillAnnounce="0"

    Portals="0"
    L80etc="0"
    WeddingNPC="0">

    #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#

  3. #3
    Aznex's Avatar Contributor
    Reputation
    128
    Join Date
    Feb 2008
    Posts
    770
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Ground Zero View Post
    There is a option on Arcemu/Ascent Optional.configs in your ArcEmu/Ascent Folder
    #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#

    <Extra Instant80="0"
    PvPToken="0"
    PvPTokenID="13905"
    PvPKillAnnounce="0"

    Portals="0"
    L80etc="0"
    WeddingNPC="0">

    #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
    ExtraScripts have to be compiled tho =]

  4. #4
    Mango Jerry's Avatar Banned
    Reputation
    192
    Join Date
    Jan 2008
    Posts
    1,244
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes thats right, Aznex.
    I've compiled the PvP Token script, and i have edited it so they will recieve a token and a customized spell.
    Last edited by Mango Jerry; 01-03-2009 at 08:39 AM.

  5. #5
    darknight22's Avatar Member
    Reputation
    9
    Join Date
    Mar 2007
    Posts
    10
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes thats right, Aznex.
    I've compiled the PvP Token script, and i have edited it so they will recieve a token and a customized spell.
    Could you please post those scripts?

    Also I need it to work for killing a lvl 19.

    Thanks for the help. [=
    Last edited by darknight22; 01-03-2009 at 05:08 PM.

  6. #6
    Aznex's Avatar Contributor
    Reputation
    128
    Join Date
    Feb 2008
    Posts
    770
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm pretty sure its not only level 70 in the default script =\ Link us yours.

  7. #7
    darknight22's Avatar Member
    Reputation
    9
    Join Date
    Mar 2007
    Posts
    10
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PvPToken
    # This directive enables item rewards when there is a PvP Kill and players are level 70
    #
    # PvPTokenID
    # If PvPToken is enabled, specify the item ID of your custom Token ID, or any other item
    PvPToken="1"
    PvPTokenID="29434"
    PvPKillAnnounce="1"
    how can i change it?

  8. #8
    darknight22's Avatar Member
    Reputation
    9
    Join Date
    Mar 2007
    Posts
    10
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok so i tried compiling a .dll but it didnt work it
    pvp.dll 0x00000000 : error!
    setup.cpp
    Code:
    #include "StdAfx.h"
    #include "Setup.h"
    #define SKIP_ALLOCATOR_SHARING 1
    #include <ScriptSetup.h>
    
    extern "C" SCRIPT_DECL uint32 _exp_get_script_type()
    {
        return SCRIPT_TYPE_MISC;
    }
    
    extern "C" SCRIPT_DECL void _exp_script_register(ScriptMgr* mgr)
    {
        SetupToken1(mgr);
    }
    
    #ifdef WIN32
    
    BOOL APIENTRY DllMain( HANDLE hModule, DWORD  ul_reason_for_call, LPVOID lpReserved )
    {
        return TRUE;
    }
    
    #endif
    setup.h
    Code:
    #ifndef INSTANCE_SCRIPTS_SETUP_H
    #define INSTANCE_SCRIPTS_SETUP_H
    
    void SetupToken1(ScriptMgr * mgr);
    
    #endif
    pvp.cpp
    Code:
    #ifndef INSTANCE_SCRIPTS_SETUP_H
    #define INSTANCE_SCRIPTS_SETUP_H
    
    void SetupToken1(ScriptMgr * mgr);
    
    #endif
    pvp.VCProj
    Code:
    #include "StdAfx.h"
    #include "Setup.h"
    
    
                        
    #define PVP_TOKEN 29434 //Put Your Token ID Here    
    
    void Token1(Player* plr, Player* victim)
    {
       if(plr->getLevel() >= 18 && victim->getLevel() >= 18 && plr->GetTeam() != victim->GetTeam())
       {
          char message[200];
          sprintf(message, "|cff00ff00[World PvP]|r |cffff0000%s|cffffffff(%i)|r has killed %s|cffffffff(%i)|r...This Is MADNESS!|r", plr->GetName(),plr->getLevel(), victim->GetName(),victim->getLevel());
          sWorld.SendWorldWideScreenText(message);
          sLog.outColor(TRED,"n[WPVP]: WPVP Activated - the killer was %s...The victim was %s.", plr->GetName(), victim->GetName());
          sLog.outColor(TNORMAL,"n");
    
    
          int die;
          die = + 1;
          if((die == 1) || (die == 2))
          {
             plr->GetItemInterface()->SafeAddItem(PVP_TOKEN, INVENTORY_SLOT_NOT_SET, -1);
             Item * it = objmgr.CreateItem(PVP_TOKEN, plr);
             plr->GetItemInterface()->AddItemToFreeSlot(it);
             sLog.outColor(TGREEN,"[WPVP]: A Token was added for this kill to %s", plr->GetName());
             sLog.outColor(TNORMAL,"n");
          }
          else
          {
             sLog.outColor(TYELLOW,"[WPVP]: A Token was not added to %s", plr->GetName());
             sLog.outColor(TNORMAL,"n");
          }
    
       }
    }
    void SetupToken1(ScriptMgr * mgr)
    {
       mgr->register_hook(SERVER_HOOK_EVENT_ON_KILL_PLAYER, (void*)Token1);
    }
    if anyone could help will +rep
    thxx
    Last edited by darknight22; 01-08-2009 at 12:29 AM.

Similar Threads

  1. [Question] How to make an AH bot for MaNGOS?
    By Kaelang in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 03-17-2010, 02:17 PM
  2. [Question] How to make players start with gear/money/items?
    By hukabuka in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 02-23-2008, 08:13 PM
  3. [QUESTION] How to make a restarter for new cores
    By ion564 in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 02-12-2008, 08:08 PM
  4. [Question] How to make items buyable with Marks and Token
    By Spurven in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 10-29-2007, 04:25 AM
  5. [Question] How to make the solo files for model change?
    By TheAussieTroll in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 10-09-2007, 01:14 PM
All times are GMT -5. The time now is 11: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