Jump to content
metin2dev

Den

Member
  • Content Count

    111
  • Joined

  • Last visited

  • Days Won

    2

Den last won the day on January 27

Den had the most liked content!

Community Reputation

38 Good

1 Follower

About Den

  • Rank
    Friendly

Profile Information

  • Gender
    Male
  • Location
    Poland

Recent Profile Visitors

701 profile views
  1. Den

    C++ unequip Function

    int item_unequip_selected(lua_State* L) { LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr(); if (!lua_isnumber(L, 1)) { sys_err("Argument error."); lua_pushboolean(L, false); return 1; } BYTE bCell = lua_tonumber(L, 1); //bcell == BYTE, iCell == INT, dCell == DWORD .... if (bCell < 0 || bCell >= WEAR_MAX_NUM) { sys_err("Invalid wear position %d. Index out of range(0..%d)", bCell, WEAR_MAX_NUM); lua_pushboolean(L, false); return 1; } //LPITEM item = CQuestManager::instance().GetCurrentItem(); //current item in used LPITEM equipped = ch->GetWear(bCell); //current equipped item on target slot //check the pointers if (!ch || !equipped)//!item) { sys_err("No Item or Character Visible."); lua_pushboolean(L,false); return 1; } //remove the equipped item if (equipped->IsEquipped()) { sys_log(0, "item_unequip_selected Player: %s Vnum: %d Cell: %d ::: TRUE ",ch->GetName(), item->GetVnum(), bCell); ch->UnequipItem(equipped); lua_pushboolean(L, true); return 1; } else  { sys_log(0, "item_unequip_selected Player: %s Vnum: %d Cell: %d ::: False ",ch->GetName(), item->GetVnum(), bCell); lua_pushboolean(L, false); return 1; } } try this
  2. Den

    open Anti fishbot

    Limit to map: void CHARACTER::fishing() { if (m_pkFishingEvent) { fishing_take(); return; } if (GetMapIndex() != YOURMAPINDEX) { ChatPacket(CHAT_TYPE_INFO, "You can't fish here."); return; } ...
  3. Den

    solved SHAMAN BUFF'S TIME DURATION

    mysql player.skill_proto->szDurationPoly
  4. Den

    open Stone bug

    You can make a new lua function in source then use it. int item_is_equipped(lua_State* L) { CQuestManager& q = CQuestManager::instance(); LPITEM item = q.GetCurrentItem(); if (item) lua_pushboolean(L, item->IsEquipped()); else lua_pushboolean(L, false); return 1; }
  5. Den

    open Error host

    How many GBs of RAM did you assigned to the machine?
  6. Den

    open Double bonus in item

    item_attribute.cpp, just comment the first part like this:
  7. Den

    open MAGIC_ATT_GRADE fix

    Do you mean that magic att grade bonus from items isn't working? I've fixed it like this: It depends on you, how much damage you want to get from this bonus.
  8. Den

    open Python script trade, could pay

    Are you retarded or what?
  9. Den

    open Python script trade, could pay

    What do you mean by auto trade?
  10. Den

    open Fishing only on 1 map

    char.cpp void CHARACTER::fishing() after: if (m_pkFishingEvent) { fishing_take(); return; } add: if (GetMapIndex() != 123) { ChatPacket(CHAT_TYPE_INFO, "You can't do this here."); return; }
  11. Den

    open Help me problem syserr

    Paste your uitooltip.py here.
  12. Box must have ITEM_TREASURE_BOX type and the key's (ITEM_TREASURE_KEY) value0 must be the same as the box's value0.
  13. Is that everything that you've got in syserr?
  14. Den

    open BLOCK POTTION

    There is a problem with this fix. I didn't notice that if you die while being polymorphed and click restart here, you will be still polymorphed. I'm working on it, I'm very sorry for the mistake.
  15. Den

    open DRAGON_SOUL_TABLE.TXT PROBLEM

    Can you show the whole table I mentioned above?
×