-
Posts
236 -
Joined
-
Last visited
-
Days Won
3 -
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by Necro
-
-
With source code, on elite is tutorial for increase targetskin
- 1
-
Edit alpha channel in texture
-
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
-
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
-
Back to the main topic, is somebody able do this function thank you
-
But server_timer must be defined by login or something else
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
-
But server_timer must be defined by login or something else
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?
-
But server_timer must be defined by login or something else
-
why u dont use lua ? os.date
How to do like in 20:00 start event or something like this without login or etc? Thanks
-
-
You don't need a new function to do this.
pc.give_item2_select(vnum, count) item.set_socket(socked_slot, socket_value) Example: pc.give_item2_select(19, 1) -- Sword +9 item.set_socket(0, 28432) -- Cooldown Stone+4
Ok i try it, i thought that cant be like this. Thanks
-
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
-
Hi it possible do this function and how?
-
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
-
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.
-
Have you already solved this?
-
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
-
can you explain this to me ?
for(int i2 = 2; i2 < 9; i2++){ //replace with your core values actual 13x02 - 13x08
They have cores ports like 02 - 08 so if you have different just change it.
-
Nice idea thanks, solved -> must update in binary Hyperlink for more stones
-
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.
-
Hi guys where i can set this little thing? I was looking for in shop.cpp but nothing good.
-
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
-
Is convert by dump_proto so i hope that yes
- 1
-
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: https://metin2.download/picture/114A0r8CHbsU7VvHMM6x5tQyhmm6mXTc/.png
Nad how it looks in game: https://metin2.download/picture/4r7nX1AqYfibS3ddTq23fvuOOs6Ptd4a/.png
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.
Flag At The Top Right Of Npc
in Community Support - Questions & Answers
Posted
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.