[Help] Open-Ascent's PvPToken not workin menu

Shout-Out

User Tag List

Results 1 to 8 of 8
  1. #1
    flop159's Avatar Member
    Reputation
    23
    Join Date
    Aug 2007
    Posts
    99
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Help] Open-Ascent's PvPToken not workin

    i finally figred out to compile 'extra-scripts' and add the .dll but still no one is recieving anything for killing eachother... ascent loads and tells me that extrascripts and pvptoken scripts loaded specifically but nothin
    im using OA and adb db

    Code:
    <Extra Instant70="1" PvPToken="1" PvPTokenID="17422" PvPKillAnnounce="1" Portals="0" L70etc="0" WeddingNPC="0">
    useful help = +rep
    thanks
    Last edited by flop159; 07-05-2008 at 12:56 PM.

    [Help] Open-Ascent's PvPToken not workin
  2. #2
    wefwef123's Avatar Member
    Reputation
    1
    Join Date
    Jun 2008
    Posts
    69
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I always get something like
    "xxxxxxx" killed "xxxxxx" but no token given as they are not both lvl70

  3. #3
    flop159's Avatar Member
    Reputation
    23
    Join Date
    Aug 2007
    Posts
    99
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yea im not even getting teh messages on ascent.exe

  4. #4
    Darksid's Avatar Member
    Reputation
    19
    Join Date
    Jun 2008
    Posts
    375
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    im getting the same problem

  5. #5
    soul02's Avatar Active Member
    Reputation
    33
    Join Date
    Mar 2008
    Posts
    168
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    the pvptoken in extrascripts folder only give out golds not token..

    look at the code
    Code:
    		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 + 10000;
    		int32 new_gold_v;
    		if(gold_check_v < 5000)
    		{
    			new_gold_v = 0;
    so use this if u want add token

    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, "|cffFFFF00[PVP]|r |cff00FF00%s|r |cffFFFF00has killed|r |cff00FF00%s|r", plr->GetName(), victim->GetName()); 
        sWorld.SendWorldWideScreenText(onkill);
    
        if(plr->getLevel() >= 1 && victim->getLevel() >= 70 && plr->GetTeam() != victim->GetTeam())
        {
            sLog.outColor(TGREEN,"n[NCDB] Adding token to %s", plr->GetName());
            sLog.outColor(TNORMAL,"n");
            ItemPrototype *proto = ItemPrototypeStorage.LookupEntry(itemID);
            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);
                itm->SetUInt32Value(ITEM_FIELD_STACK_COUNT, 1);
                plr->GetItemInterface()->SafeAddItem(itm,slotresult.ContainerSlot, slotresult.Slot);
                plr->SaveToDB(false);
            }
        }
        else
        {
            sLog.outColor(TGREEN,"n[NCDB] Not adding token since they both are not level 70");
            sLog.outColor(TNORMAL,"n");
        }
    }
    
    void SetupPvPToken(ScriptMgr * mgr)
    {
        mgr->register_hook(SERVER_HOOK_EVENT_ON_KILL_PLAYER, onPvpKill);
    }
    -·=»‡«=·- Soul02 -·=»‡«=·-


  6. #6
    flop159's Avatar Member
    Reputation
    23
    Join Date
    Aug 2007
    Posts
    99
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yep that helps but now im trying to figure out what that other guy is having probs w/

    (not adding token both players arnt 70)...and they are..

  7. #7
    SectorSeven's Avatar Banned
    Reputation
    444
    Join Date
    Oct 2007
    Posts
    1,948
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use Moon++'s... it works great.

    Moonplusplus.com or org

  8. #8
    flop159's Avatar Member
    Reputation
    23
    Join Date
    Aug 2007
    Posts
    99
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    alright cool now s7 would u recommend all of the moon++ scripts over OA's scripts and what db works better with OA (Adb/ncdb)

    btw moonplusplus.info

Similar Threads

  1. [Help] ArcEmu/Open Ascent Multiple Realm
    By crcolwell in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 06-12-2008, 08:46 PM
  2. [Now open] Ascent Help-me Thread. POST QUESTIONS HERE.
    By Equ1N0X in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 01-07-2008, 09:28 AM
  3. I need help with Ascent
    By kepappi in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 09-30-2007, 08:08 AM
  4. Need help with Ascent/Antrix porting
    By Scuba Ninja in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 09-02-2007, 01:30 PM
  5. Help me with my sig,Not makeing justing
    By EliMob441 in forum World of Warcraft General
    Replies: 5
    Last Post: 02-06-2007, 06:48 PM
All times are GMT -5. The time now is 01:55 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