Jump to content

avertusss

Inactive Member
  • Posts

    30
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by avertusss

  1. Can you upload regens too?
  2. Hi. I wanted to make ch100(something like ch99). So i made everything like other channels. Ch100 is starting etc but maps from ch100 doesn't work. Config: CHANNEL: 100 HOSTNAME: game100 PORT: 13100 P2P_PORT: 14100 DB_ADDR: 127.0.0.1 DB_PORT: 15000 MAP_ALLOW: 3 PLAYER_SQL: 127.0.0.1 root password player COMMON_SQL: 127.0.0.1 root password common LOG_SQL: 127.0.0.1 root password log TABLE_POSTFIX: PASSES_PER_SEC: 25 SAVE_EVENT_SECOND_CYCLE: 180 PING_EVENT_SECOND_CYCLE: 180 VIEW_RANGE: 8000 CHECK_MULTIHACK: 0 ADMINPAGE_PASSWORD: metin2adminpass ADMINPAGE_IP: 127.0.0.1 SPEEDHACK_LIMIT_COUNT: 300 SPEEDHACK_LIMIT_BONUS: 80 PK_PROTECT_LEVEL: 15 MALL_URL: google.com TRAFFIC_PROFILE: TEST_SERVER: 0 MAX_LEVEL: 200 When i want to teleport to this map i get that in syserr(i added port to this syserr bcs i wanted to debug it): WarpSet: cannot find map location index 3 x 360800 y 877600 port 233 name Testchamp As you can see port isn't good it should be 13100. Any ideas?
  3. Traceback (most recent call last): File "/usr/home/renamedrop.py", line 16, in <module> vnum, name = line.strip().split('\t') ValueError: not enough values to unpack (expected 2, got 1)
  4. Hi. I want to make mobs waves in dungeon but i have problem with server_timer. when login with is_in_dungeon(130) begin if not d.is_joinable() then d.notice("Bye bye") pc.warp_exit() return end if d.getf("stage") == 0 then d.setf("stage", 1) notice_mission("Kills mobs") d.regen_file("data/dungeon/dungeon_75.txt") d.setf("mobs", 100) server_timer("dungeon_wave_2", 5) end end when dungeon_wave_2.server_timer begin d.notice("Kill mobs from second wave") d.regen_file("data/dungeon/dungeon_75.txt") end Server_timer doesn't work. How should i make that? Normal timer works properly.
  5. Now i have ld-elf32.so.1: Shared object "libm.so.5" not found, required by "db" with -static in makefile it works, but i guess it should work without it.
  6. Yee, i compiled but i cannot run: ld-elf32.so.1: Shared object "libm.so.5" not found, required by "db"
  7. but they installed 12.3 64 bit not 32. I cannot compile src. Can i change it to 32 bit by myself?
  8. @ TMP4 i bought vps on contabo as you told but i cannot run freebsd. When i installed by panel Any ideas?
  9. I don't know why but when i want to restart server db doesn't start(connection refused). I need to restart whole vps xD db.core Core was generated by `./db'. Program terminated with signal SIGSEGV, Segmentation fault. Address not mapped to object. warning: Section `.reg-xstate/100104' in core file too small. #0 0x20784912 in strtoul_l () from /lib/libc.so.7 [Current thread is 1 (LWP 100104)] (gdb) bt full #0 0x20784912 in strtoul_l () from /lib/libc.so.7 No symbol table info available. #1 0x20784b15 in strtoul () from /lib/libc.so.7 No symbol table info available. #2 0x00499c0b in mysql_set_character_set () No symbol table info available. #3 0x004a0b90 in CAsyncSQL::QueryLocaleSet() () No symbol table info available. #4 0x00427f02 in CDBManager::SetLocale (this=0xffbfeb38, szLocale=0x5bd4ed <g_stLocale+1> "latin1") at DBManager.cpp:172 n = 2 stLocale = "latin1" #5 0x0042c366 in CClientManager::InitializeLocalization (this=0xffbfe42c) at ClientManager.cpp:3862 locale = { szValue = "english\000\001\207\001\000\000\000\000\000\001\000\000\000\001A\203 \340A\203 \b\207\001", szKey = "LOCALE\000 \204\201\203 \250\266\177 T\020c L\340\277\377\343bb \000\000\000"} col = 2 n = <optimized out> szQuery = "SELECT mValue, mKey FROM locale\000\204G@\000eG@\000\204G@\000\210\225~ `\340\277\377\333\361s \360A\177 t߿\377\004\000\000\000\210\225~ \00--Type <RET> for more, q to quit, c to continue without paging-- 2\000\000\000\000\000\000\000\001\000\000\000\023\000\000\000\037\000\000\000\037", '\000' <repeats 23 times>, "\017\000\000\000\004\000\000\000\001\000\000\000\000\000\000\000\001", '\000' <repeats 15 times>, "\001\000\000\000\004\000\000\000\001\000\000\000\000\000\000\000\321lf \000\000\000\000\321lf ", '\000' <repeats 20 times>, "\250\266\177 \000"... pMsg = 0x2086c3f0 row = <optimized out> #6 0x0042b835 in CClientManager::Initialize (this=0xffbfe42c) at ClientManager.cpp:103 szBindIP = "p\340\277\377\355\255s \360A\177 T\020c \204\340\277\377\306\357a \360A\177 \000\000\000\000\210\225~ \224\340\277\377\277Hk \001\000\000\000\210\225~ \324\340\277\377\201\024s \001\000\000\000\250\266\177 \000\000\000\000Эs \360A\177 \000\000\000\000\360A\177 l\200~ eG@\000\226\030\240>\226\030\240>\250U\177 eG@\000C\342\277\377\360\340\277\377\223\062G\000\360A\177 " tmpValue = <optimized out> iChinaEventServer = <optimized out> #7 0x0042721e in Start () at Main.cpp:409 szBuf = "\000\024\343\277\377\b\000\000\000`\342\277\377H?L \004\200L \000\360\020~s\221b `\342\277\377\b\000\000\000\a\000\000\000\327&@\000\304I<\a0\270\202\r$tL \001", '\000' <repeats 11 times>, "x\343\277\377\000\000\000\000\000\000\000\000(\000\000\000\220pM \210\225~ @\343\277\377\005qx \220pM \200\003\240 \254qM \\rM \b\000\000\000$\343\277\377\216\222b \004\200L H?L X\343\277\377\264\031K \327&@\000\000@\203 \000@\203 T\020c 4\343\277\377\022\221b 0A\203 T\020--Type <RET> for more, q to quit, c to continue without paging-- Any ideas?
  10. Where in char_battle.cpp should i add quest::CQuestManager::instance().Drop(GetPlayerID()); when i want to make when drop event?
  11. Hi. I wanted to add minmap and i have problem. I added image and sub file title subImage version 1.0 image "metin2_map_skipia_dungeon_01.dds" left 0 top 0 right 256 bottom 256 but it doesn't work ingame. metin2_map_skipia_dungeon_01 is loading from season2. Any ideas?
  12. Hi. I saw that in regen.cpp that else if (szTmp[0] == 's') regen->type = REGEN_TYPE_ANYWHERE; and if (regen->type == REGEN_TYPE_ANYWHERE) { ch = CHARACTER_MANAGER::instance().SpawnMobRandomPosition(regen->vnum, regen->lMapIndex); if (ch) ++regen->count; } so can i use in regen.txt file it like this s 0 0 0 0 0 0 300s 100 1 101 or how?
  13. Try to compile it with something else than visual studio.
  14. I have vps for dev server with 13.0 and dedicated with few users with 13.0 too. That's why i want still use 13.0.
  15. Can i use the newest update on freebsd 13.0? (compiling and running)
  16. It's not fix. It's just change size of tooltip. If someone will have font changer ingame it will looks weird if you make it big af but someone want use small font instead of big.
  17. Nice but it works only with default font. If someone use Tahoma:14 there is the same problem. ToolTip is too small. Can you extend that fix with other fonts?
  18. I have the same problem @filipw1 Any solution?
  19. I want to check other active characters owned by checked player(that's why i need ip address for that). I have something like this ACMD(do_checkplayer) { char arg1[256]; one_argument(argument, arg1, sizeof(arg1)); if (!*arg1 || strlen(arg1) < 3) { ch->ChatPacket(CHAT_TYPE_INFO, "Enter player name"); return; } char playerip[256]; std::unique_ptr<SQLMsg> pkMsg2(DBManager::instance().DirectQuery("SELECT IP from player where name = '%s'", arg1)); SQLResult * pRes2 = pkMsg2->Get(); if (pRes2->uiNumRows > 0) { MYSQL_ROW row; while ((row = mysql_fetch_row(pRes2->pSQLResult)) != NULL) { sql_IP = row[0]; } playerip = sql_IP; } ch->ChatPacket(CHAT_TYPE_INFO, "%s", playerip); std::string name; std::string buffer; { std::unique_ptr<SQLMsg> pkMsg(DBManager::instance().DirectQuery("SELECT player.name as '0' FROM player WHERE player.last_play > NOW()-600 and player.IP='%s'", playerip)); SQLResult * pRes = pkMsg->Get(); if (pRes->uiNumRows>0) { MYSQL_ROW row; int count = 0; ch->ChatPacket(CHAT_TYPE_INFO, "Character list:"); while ((row = mysql_fetch_row(pRes->pSQLResult)) != NULL) { buffer = row[0]; count += buffer.length() + 3; if(count > 110) { ch->ChatPacket(CHAT_TYPE_INFO, "%s", name.c_str()); name=""; count = 0; } name += " | "; name += "|cffffc700|Hwhisper:"; name += buffer; name += "|h"; name += buffer; name += "|h|r"; } ch->ChatPacket(CHAT_TYPE_INFO, "%s", name.c_str()); } else ch->ChatPacket(CHAT_TYPE_INFO, "No available characters in 10 min."); } }
  20. But if i use str_to_number i can''t compare it with other select bcs number doens't have . so ip won't be 192.168.0.1 but 19216801 or idk how. I want use that checked ip in other mysql query like this std::unique_ptr<SQLMsg> pkMsg(DBManager::instance().DirectQuery("SELECT player.name as '0' FROM player WHERE player.last_play > NOW()-600 and player.IP='whatshouldiwritethere????"));
  21. Hi. I want to make function which check ip of inserted player name. I have ACMD(do_checkplayer) { char arg1[256]; one_argument(argument, arg1, sizeof(arg1)); if (!*arg1 || strlen(arg1) < 3) { ch->ChatPacket(CHAT_TYPE_INFO, "Enter player name"); return; } char ip[256]; std::unique_ptr<SQLMsg> pkMsg2(DBManager::instance().DirectQuery("SELECT IP from player where name = '%s'", arg1)); SQLResult * pRes2 = pkMsg2->Get(); if (pRes2->uiNumRows > 0) { MYSQL_ROW row; while ((row = mysql_fetch_row(pRes2->pSQLResult)) != NULL) { sql_IP = row[0]; } ip = sql_IP; } ch->ChatPacket(CHAT_TYPE_INFO, "%s", ip); } I don't know how to exactly return that ip into variable and use it everywhere in that function. Can someone help me?
×
×
  • 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.