Jump to content

denyxp31

Member
  • Posts

    8
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by denyxp31

  1. Hello. I have the following quest:

    Spoiler

    quest mesajjucatornou begin
    state start begin
    when login begin
    if pc.getqf("jucator_nou") == 0 then
    notice_all("Jucatorul "..pc.get_name().." este nou pe AHNetwork! Bun venit!")
    pc.setqf("jucator_nou", 1)
    pc.give_item2(50126)
    else
    return
    end
    end
    end
    end

    However, sometime when players teleport to ex. OX or DT they receive the item(50126) over and over. Any solutions?

  2. int item_remove(lua_State* L)
    {
        CQuestManager& q = CQuestManager::instance();
        LPITEM item = q.GetCurrentItem();
        if (item != NULL) {
            if (q.GetCurrentCharacterPtr() == item->GetOwner()) {
                // ITEM_MANAGER::instance().RemoveItem(item);
                CQuestManager::instance().GetCurrentCharacterPtr()->RemoveSpecifyItem(item->GetVnum(), 1);
            } else {
                sys_err("Tried to remove invalid item %p", get_pointer(item));
            }
            q.ClearCurrentItem();
        }
        
        return 0;
    }

    by the way, this doesn`t work too.

    other solutions?

  3.  

    It`s not realy a fix but..

     

        static bool CanMoveIntoBeltInventory(LPITEM item)
        {
            bool canMove = true;
    
            if (item->GetType() == ITEM_QUEST)
            {
                canMove = false;
                break;
            }
    
            return canMove;
        }  

    It`s not tested and the fix is made by a e*pvp member.

    I tried this two years ago, does not work

     

    tried now, it does not work

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.