[Quest]Reich aus Map teleportieren

08/26/2010 16:17 3jfx#1
Hey,

für ein selbst erstelltes Event müssen alle eines bestimmten Reiches in einer bestimmten Map teleportiert werden.

Also ungefähr
Code:
warp(empire, map, targetmap)
Kennt jemand einen entsprechenden Questbefehl dafür?
08/26/2010 16:51 ~Casi~#2
Quote:
Originally Posted by Undercover3 View Post
Hey,

für ein selbst erstelltes Event müssen alle eines bestimmten Reiches in einer bestimmten Map teleportiert werden.

Also ungefähr
Code:
warp(empire, map, targetmap)
Kennt jemand einen entsprechenden Questbefehl dafür?
PHP Code:
warp_all_in_map() 
das ist fer Befehl und alle zurück der
PHP Code:
warp_all_to_village() 
08/26/2010 16:54 sennah#3
there is no function to remove 1 empire from a map

but there is a function to remove a player from a map
pc.warp()

i was stuck on that too for my metin event, but i solved it
08/26/2010 18:17 3jfx#4
Quote:
Originally Posted by sennah View Post
there is no function to remove 1 empire from a map

but there is a function to remove a player from a map
pc.warp()

i was stuck on that too for my metin event, but i solved it
How did you solve it?
08/26/2010 18:26 sennah#5
you don't want to teleport an empire
but you need to teleport a player from 1 single empire

when ...... begin
local empire = pc.get_empire()
if empire == 1 then
pc.warp(,)
elseif empire == 2then
pc.warp(,)
else
pc.warp(,)
end
end

something like this

don't say more, if you do'nt get it, study my metin event and you will find it
08/26/2010 18:36 3jfx#6
For this part i used
PHP Code:
local pos = {
{
01230123},
{
32323234},
{
99949342} }
local e pc.get_empire()
pc.warp(pos[e][1], pos[e][2
a more profesional way.

But i will warp the whole empire from map a to map b

sry my english isnt the best