Jump to content
Sign in to follow this  
kekc161

При входе в тп выкидывает с игры

Recommended Posts

Ставлю тп, пытаюсь зайти в него и сразу дропает с сервера в чем проблема?

function config(map)
    MapCanSavePos(map, 0)
    -----MapCanPK(map, 0)
    MapCopyNum(map, 1)
    SingleMapCopyPlyNum(map, 300)
    MapCanTeam(map , 1)
    MapType ( map , 1 )
end

function get_map_entry_pos_starwalkway()
    local POS_X=58
    local POS_Y=74
    return POS_X , POS_Y
end
function init_entry(map)
    SetMapEntryMapName(map, "garner")
    SetMapEntryTime(map, "2005/8/30/13/0", "0/24/0", "0/24/0", "0/24/0")


 

Share this post


Link to post
Share on other sites

Привет @kekc161


Скинь полностью весь код из файла entry.lua данной карты

 


Share this post


Link to post
Share on other sites
7 часов назад, V3ct0r сказал:

Привет @kekc161


Скинь полностью весь код из файла entry.lua данной карты

 

--ґЛОДјюЦРЈ¬·ІКЗїЙДЬ±»¶аґОЦґРРµДєЇКэЈ¬єЇКэГы¶јТЄјУЙПµШНјГыЗ°ЧєЈ¬Изafter_destroy_entry_testpk
--ґЛОДјюГїРРЧоґуЧЦ·ыёцКэОЄ255Ј¬ИфУРТмТйЈ¬ЗлУліМРтМЅМЦ

function config_entry(entry) 
    SetMapEntryEntiID(entry, 193,1) --ЙиЦГµШНјИлїЪКµМеµД±аєЕЈЁёГ±аєЕ¶ФУ¦УЪcharacterinfo.txtµДЛчТэЈ©

end 

function after_create_entry(entry) 
    local copy_mgr = GetMapEntryCopyObj(entry, 0) --ґґЅЁё±±ѕ№ЬАн¶ФП󣬴˺ЇКэФЪУРПФКЅИлїЪµДµШНјЦР±ШРлµчУГЈ¬¶ФУЪТюКЅИлїЪµДµШНјЈЁИз¶УОйМфХЅЈ©ОЮТЄµчУГёГЅУїЪ
    
    local EntryName = "starwalkway"
    SetMapEntryEventName( entry, EntryName )

    map_name, posx, posy, tmap_name = GetMapEntryPosInfo(entry) --ИЎµШНјИлїЪµДО»ЦГРЕПўЈЁµШНјГыЈ¬Чш±кЈ¬Дї±кµШНјГыЈ©
    Notice("Announcement: In argent region, players has discovered ["..posx..","..posy.."] emerges a portal that leads to [starwalkway]. All players beware.")

end

function after_destroy_entry_starwalkway(entry)
    map_name, posx, posy, tmap_name = GetMapEntryPosInfo(entry) 
    Notice("Announcement: According to reports, portal to [starwalkway] has disappeared. Check announcement for more details. Enjoy!") 

end

function after_player_login_starwalkway(entry, player_name)
    map_name, posx, posy, tmap_name = GetMapEntryPosInfo(entry) --ИЎµШНјИлїЪµДО»ЦГРЕПўЈЁµШНјГыЈ¬Чш±кЈ¬Дї±кµШНјГыЈ©
    ChaNotice(player_name, "Announcement: In argent region, players has discovered ["..posx..","..posy.."] emerges a portal that leads to [starwalkway]. All players beware.")

end

--УГУЪјмІвЅшИлМхјю
--·µ»ШЦµЈє0Ј¬І»ВъЧгЅшИлМхјюЎЈ1Ј¬іЙ№¦ЅшИлЎЈ
function check_can_enter_starwalkway( role, copy_mgr )
    local i = IsChaStall(role)
    if i == LUA_TRUE then
        SystemNotice(role, "Cannot teleport while setting stall")
        return 0    
    end
    if Lv(role) < 70 then
        SystemNotice(role, "Characters need to be above Lv 70 to enter starwalkway")
        return 0    
    end
    if Lv(role) > 220 then
        SystemNotice(role, "Characters need to be below Lv 220 to enter starwalkway")
        return 0    
    end
    
end


function begin_enter_starwalkway(role, copy_mgr)

        SystemNotice(role,"Entering [starwalkway]") 
        MoveCity(role, "starwalkway")

end

 

 

Share this post


Link to post
Share on other sites

Точка starwalkway прописана в файле birth_conf.lua?


Share this post


Link to post
Share on other sites

AddBirthPoint("Astral Isle","starwalkway",101,476)

 

через команду все нормально телепортируюсь

55 минут назад, V3ct0r сказал:

Точка starwalkway прописана в файле birth_conf.lua?

 

Share this post


Link to post
Share on other sites

@kekc161

function begin_enter_starwalkway(role, copy_mgr)
        SystemNotice(role,"Entering [starwalkway]") 
        MoveCity(role, "starwalkway")
end

Замени starwalkway на Astral Isle.

 

То есть будет так:

function begin_enter_starwalkway(role, copy_mgr)
        SystemNotice(role,"Entering [starwalkway]") 
        MoveCity(role, "Astral Isle")
end

 


Share this post


Link to post
Share on other sites
7 минут назад, V3ct0r сказал:

@kekc161


function begin_enter_starwalkway(role, copy_mgr)
        SystemNotice(role,"Entering [starwalkway]") 
        MoveCity(role, "starwalkway")
end

Замени starwalkway на Astral Isle.

 

То есть будет так:


function begin_enter_starwalkway(role, copy_mgr)
        SystemNotice(role,"Entering [starwalkway]") 
        MoveCity(role, "Astral Isle")
end

 

Спасибо сейчас попробую

Share this post


Link to post
Share on other sites

Наверное стоило еще изменить комментарий при входе на карту все таки на другую. прыгаешь в той же функции)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...