Jump to content

Necro

Premium
  • Posts

    236
  • Joined

  • Last visited

  • Days Won

    3
  • Feedback

    0%

Everything posted by Necro

  1. I am not sure but maybe is problem in model, because in root is set FLAG on Bip01 bone and this mob is from other game and hasn´t that bone.
  2. With source code, on elite is tutorial for increase targetskin
  3. Hi guys, i set index for belt system: if (GetType() == ITEM_BELT) { return ATTRIBUTE_SET_BELT; } but when i use item(71051) then sysser write me this: number_ex: number(): first argument is bigger than second argument 0 -> -1, item_attribute.cpp 405 Here is the item_attribute bool CItem::AddRareAttribute() { int count = GetRareAttrCount(); if (count >= 1) return false; int pos = count + 5; TPlayerItemAttribute & attr = m_aAttr[pos]; int nAttrSet = GetAttributeSetIndex(); std::vector<int> avail; for (int i = 0; i < MAX_APPLY_NUM; ++i) { const TItemAttrTable & r = g_map_itemRare[i]; if (r.dwApplyIndex != 0 && r.bMaxLevelBySet[nAttrSet] > 0 && HasRareAttr(i) != true) { avail.push_back(i); } } const TItemAttrTable& r = g_map_itemRare[avail[number(0, avail.size() - 1)]]; int nAttrLevel = 5; if (nAttrLevel > r.bMaxLevelBySet[nAttrSet]) nAttrLevel = r.bMaxLevelBySet[nAttrSet]; attr.bType = r.dwApplyIndex; attr.sValue = r.lValues[nAttrLevel - 1]; UpdatePacket(); Save(); const char * pszIP = NULL; if (GetOwner() && GetOwner()->GetDesc()) pszIP = GetOwner()->GetDesc()->GetHostName(); LogManager::instance().ItemLog(pos, attr.bType, attr.sValue, GetID(), "SET_RARE", "", pszIP ? pszIP : "", GetOriginalVnum()); return true; } Thanks for every idea
  4. Hi guys, i have problem with affect.add_collect(apply.CRITICAL_PCT, 1, 60*60*24*365*60). When i use in two quest its still add only 5% and dont 10%. Do you know, where can be problem? Thank you
  5. Back to the main topic, is somebody able do this function thank you
  6. when test.server_timer begin not ned to login Yes but you have to do definiton server_timer("test", 50) so you need something fot this
  7. You can make and use sth like: when core_start begin Sorry i dont see core_start QUEST_CLICK_EVENT, QUEST_KILL_EVENT, QUEST_TIMER_EVENT, QUEST_LEVELUP_EVENT, QUEST_LOGIN_EVENT, QUEST_LOGOUT_EVENT, QUEST_BUTTON_EVENT, QUEST_INFO_EVENT, QUEST_CHAT_EVENT, QUEST_ATTR_IN_EVENT, QUEST_ATTR_OUT_EVENT, QUEST_ITEM_USE_EVENT, QUEST_SERVER_TIMER_EVENT, QUEST_ENTER_STATE_EVENT, QUEST_LEAVE_STATE_EVENT, QUEST_LETTER_EVENT, QUEST_ITEM_TAKE_EVENT, QUEST_TARGET_EVENT, QUEST_PARTY_KILL_EVENT, QUEST_UNMOUNT_EVENT, QUEST_ITEM_PICK_EVENT, QUEST_SIG_USE_EVENT, QUEST_ITEM_INFORMER_EVENT, QUEST_UPGRADE_EVENT, QUEST_DEAD_EVENT, QUEST_EVENT_COUNT Do you have this new function?
  8. But server_timer must be defined by login or something else
  9. How to do like in 20:00 start event or something like this without login or etc? Thanks
  10. Ok i try it, i thought that cant be like this. Thanks
  11. Guys, hi, can somebody help with new function -> pc_give_item_with_socket -> to take 4 value -> ID, Count, Number_of_socket, value_of_socket
  12. Guys, where i can edit values for ACCESSORY_SOCKET, thank you, i know that time is in constants.cpp const int aiAccessorySocketDegradeTime[ITEM_ACCESSORY_SOCKET_MAX_NUM + 1] = { 0, 3600 * 24, 3600 * 12, 3600 * 6 }; But values for bonuses are where? Thank you
  13. Hi guys, i use mainline src (game/db) and i have problem with party: 1# When are members in different maps, they can get exp/yang 2# When one member is in dungeon and he gets command -> warp_all_to_vilage -> All members in different maps are warp too. Does anybody know, where could be a problem? Thank you very much.
  14. Hi guys, i know this just a little bug but where can i fix this. Maybe some with UpdatePacket? Or definition in shop? Thanks anyway
  15. ​They have cores ports like 02 - 08 so if you have different just change it.
  16. Nice idea thanks, solved -> must update in binary Hyperlink for more stones
  17. Guys, again, now here is the problem with hyperlink, i can use glass and create hyperlink, but when i want to click on them, nothing happens.
  18. Hi guys where i can set this little thing? I was looking for in shop.cpp but nothing good.
  19. What is the problem guys? 0701 06:47:33421 :: Traceback (most recent call last): 0701 06:47:33421 :: File "ui.py", line 1007, in CallEvent 0701 06:47:33422 :: File "uiChannel.py", line 60, in <lambda> 0701 06:47:33422 :: File "uiChannel.py", line 134, in __Fill_Up_ChannelList 0701 06:47:33422 :: File "uiChannel.py", line 140, in __RequestServerStateList 0701 06:47:33422 :: File "uiChannel.py", line 131, in __GetServerID 0701 06:47:33422 :: UnboundLocalError 0701 06:47:33422 :: : 0701 06:47:33422 :: local variable 'serverID' referenced before assignment
  20. Is convert by dump_proto so i hope that yes
  21. Hi guys, i have little problem with 6/7 bonus, in source i change -> in char_item.cpp: Code: if (LC_IsEurope() || LC_IsSingapore() || LC_IsVietnam()) return false; but i cannot still give attribute to subject Here is the item_proto: [Hidden Content] Nad how it looks in game: [Hidden Content] char_item.cpp: case 71051 : { // if (LC_IsEurope() || LC_IsSingapore() || LC_IsVietnam()) // return false; LPITEM item2; if (!IsValidItemPosition(DestCell) || !(item2 = GetInventoryItem(wDestCell))) return false; if (item2->IsExchanging() == true) return false; if (item2->GetAttributeSetIndex() == -1) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("ĽÓĽşŔ» şŻ°ćÇŇ Ľö ľř´Â ľĆŔĚĹŰŔÔ´Ď´Ů.")); return false; } if (item2->AddRareAttribute() == true) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Ľş°řŔűŔ¸·Î ĽÓĽşŔĚ Ăß°ˇ µÇľú˝Ŕ´Ď´Ů")); int iAddedIdx = item2->GetRareAttrCount() + 4; char buf[21]; snprintf(buf, sizeof(buf), "%u", item2->GetID()); LogManager::instance().ItemLog( GetPlayerID(), item2->GetAttributeType(iAddedIdx), item2->GetAttributeValue(iAddedIdx), item->GetID(), "ADD_RARE_ATTR", buf, GetDesc()->GetHostName(), item->GetOriginalVnum()); item->SetCount(item->GetCount() - 1); } else { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("´ő ŔĚ»ó ŔĚ ľĆŔĚĹŰŔ¸·Î ĽÓĽşŔ» Ăß°ˇÇŇ Ľö ľř˝Ŕ´Ď´Ů")); } } break; case 71052 : { // if (LC_IsEurope() || LC_IsSingapore() || LC_IsVietnam()) // return false; LPITEM item2; if (!IsValidItemPosition(DestCell) || !(item2 = GetItem(DestCell))) return false; if (item2->IsExchanging() == true) return false; if (item2->GetAttributeSetIndex() == -1) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("ĽÓĽşŔ» şŻ°ćÇŇ Ľö ľř´Â ľĆŔĚĹŰŔÔ´Ď´Ů.")); return false; } if (item2->ChangeRareAttribute() == true) { char buf[21]; snprintf(buf, sizeof(buf), "%u", item2->GetID()); LogManager::instance().ItemLog(this, item, "CHANGE_RARE_ATTR", buf); item->SetCount(item->GetCount() - 1); } else { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("şŻ°ć ˝ĂĹł ĽÓĽşŔĚ ľř˝Ŕ´Ď´Ů")); } } break; Thanks for help.
×
×
  • 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.