Discussion on [LUA-FUNCTION] Check coordinate on a map. within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.
With this LUA function you can check your player coordinates.
Add this function to questlib.lua
Quote:
function check_range(x,y,range)
get_x = pc.get_local_x()
get_y = pc.get_local_y()
x1 = x-range
y1 = y-range
x2 = x+range
y3 = y+range
if (get_x > x1 and get_x < x2) and (get_y > y1 and get_y < y3) then
return true
else
return false
end
end
Then add this function to your quest_functions file.
check_range
Here is use example quest:
Quote:
-- By -TURK- --
quest check_coord begin
state start begin
when login with pc.get_map_index() == 41 begin
loop_timer("check_coords", 1) -- 1 second
end
when check_coords.timer begin
if check_range(377,576,10) == true then
chat("You're near to Ah-Yu!")
-- pc.warp(x,y)
end
end
end
end
You can mark Ah-Yu as target for the same effect.. Same game with positions ( target.pos - command) and Players ( target.pc - command). <:
At last you can check whether you are near a npc / pc with pc.is_near_vid...
The command you show here isn't that tricky as someone think, but maybe someone would need it
You could use your Command for generating special Fields on a map with a bonus while you are standing in it bla..
You can mark Ah-Yu as target for the same effect.. Same game with positions ( target.pos - command) and Players ( target.pc - command). <:
At last you can check whether you are near a npc / pc with pc.is_near_vid...
The command you show here isn't that tricky as someone think, but maybe someone would need it
You could use your Command for generating special Fields on a map with a bonus while you are standing in it bla..
This is a circle now a target lol what the **** you tall
You can mark Ah-Yu as target for the same effect.. Same game with positions ( target.pos - command) and Players ( target.pc - command). <:
At last you can check whether you are near a npc / pc with pc.is_near_vid...
The command you show here isn't that tricky as someone think, but maybe someone would need it
You could use your Command for generating special Fields on a map with a bonus while you are standing in it bla..
Game Check Client Version Function + DIF [Like Pong] 05/07/2014 - Metin2 PServer Guides & Strategies - 47 Replies Hello community.
What is this function?
This function allows to notify update your client.
All new binaries no longer using pong. Just using this finger print instead.
When client version(.exe) not equal with game file client version, game automatically will kick player with a notice. (In 10 Second.)
I think this function is more useful than pong. So, if you encrypt good your client you can use this like pong...
Coordinate 10/17/2012 - Dekaron - 6 Replies There is process to grab from dekaron the coordinate X and Y of the character?
COnquer coordinate in cartesian coordinate ? 02/07/2011 - CO2 Programming - 5 Replies i m working on my minimap in pro4never proxy, i cleaning map from coquer site and put in picture box
now i want to locate my char in this minimap likes in game :) but the coordinate in game are different view of classic cartesian coordinate :)
some1 had module to trasform Conquer coordinate in cartesian coordinate ?
or explain me why cood traslation in math not work :// :handsdown:
i m working on this sistem
z-coordinate 07/06/2010 - Aion Private Server - 0 Replies anyone managed to manipulate the in game z-position? (overground, standing above the ground without flying...)
found the value as float via uce but nothing happens when i freeze or change it -.-
greetz