Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/02/19 in all areas

  1. I don't see the reason why you would do that, but it's fine, here's the python version if someone wants it. [Hidden Content]
    3 points
  2. And why exactly do you need source functions for that? For dungeons: local difference = math.random(1, 3); d.jump_all(localPositionX + difference, localPositionY + difference); --Or, if you need it for the dungeon creation: local difference = math.random(1, 3); d.new_jump_party(dungeon_index, positionX + difference, positionY + difference); Or, if you're not inside a dungeon instance: local difference = math.random(1, 3); local pids = {party.get_member_pids()}; for _, pid in ipairs(pids) do q.begin_other_pc_block(pid); pc.warp(positionX + difference, positionY + difference); q.end_other_pc_block(); end -- for -- Or, if the position is local (same map) local difference = math.random(1, 3); local pids = {party.get_member_pids()}; for _, pid in ipairs(pids) do q.begin_other_pc_block(pid); pc.warp_local(localPositionX + difference, localPositionY + difference); q.end_other_pc_block(); end -- for
    3 points
  3. M2 Download Center Download Here ( Internal ) Download Here ( GitHub ) Hi everyone! There is a simple renewal make.sh for qc file:
    2 points
  4. If he wanted the players in the party to have specific difference in coordinates then it's also simple to do it, like this. local pids = {party.get_member_pids()}; local difference = { [1] = {["x"] = 0, ["y"] = -50}, [2] = {["x"] = 50, ["y"] = -50}, [3] = {["x"] = -50, ["y"] = -50}, [4] = {["x"] = 0, ["y"] = 50}, [5] = {["x"] = 50, ["y"] = 50}, [6] = {["x"] = -50, ["y"] = 50}, [7] = {["x"] = 0, ["y"] = 0}, [8] = {["x"] = 50, ["y"] = 0} }; for index, pid in ipairs(pids) do q.begin_other_pc_block(pid); pc.warp(positionX + difference[index]["x"], positionY + difference[index]["y"]); q.end_other_pc_block(); end -- for -- Or, if the position is local (same map) for index, pid in ipairs(pids) do q.begin_other_pc_block(pid); pc.warp_local(localPositionX + difference[index]["x"], localPositionY + difference[index]["y"]); q.end_other_pc_block(); end -- for
    2 points
  5. (2.5) Questions & Answers specific rules Don't modify your thread (or reply to it) to mark it solved, and not explain the solution to the issue. For these who wants this, there're two simple methods: 1. Disable for all maps. [Hidden Content] 2. Disable for a specific map. # Search in CANNOT_SEE_INFO_MAP_DICT for: "metin2_map_devilsCatacomb" : False, # Add after: "metin2_your_map_name" : False,
    1 point
  6. As i thought, that's what he needed: [Hidden Content]
    1 point
  7. The while is with a scope, he wanted to make for each player an specific position, not random position. @jeddawee You could atleast to post the FWarpToPosition from party.cpp, i see that you use the struct without the first argument as lMapIndex like dungeon.cpp, if you use another struct and not the one from dungeon.cpp, just send me a pm and let's don't make a spam topic. [Hidden Content]
    1 point
  8. Just try to replace my function with yours in dungeon.cpp ...
    1 point
  9. Why while statement lol struct FWarpToPosition { long lMapIndex; long x; long y; FWarpToPosition(long lMapIndex, long x, long y) : lMapIndex(lMapIndex), x(x), y(y) {} void operator()(LPENTITY ent) { if (!ent->IsType(ENTITY_CHARACTER)) { return; } LPCHARACTER ch = (LPCHARACTER)ent; if (!ch->IsPC()) { return; } if (ch->GetMapIndex() == lMapIndex) { ch->Show(lMapIndex, x, y, 0); ch->Stop(); } else { BYTE RandomNumber = number(0, 15); ch->WarpSet(x + RandomNumber, y + RandomNumber, lMapIndex); } } };
    1 point
  10. What u mean with "not work" ? Compiling error or what?
    1 point
×
×
  • 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.