Jump to content
Sign in to follow this  
DeiLyred

Портал отключает от игры

Recommended Posts

Столкнулся с проблемой что была в теме ниже и понял что нужно что то вписать в move что бы не отключало при входе в портал. Через команду телепортирует.
Вписывал и Demonic World и Мир Демонов и постоянно отключает. Такая же фигня и с Серебрянным хаосом.

 

 

 

 

 

 

--------------------------------------------------------------------------
--                                                                        --
--                                                                        --
--                    entry.lua                                            --
--                    (Мир демонов)                                        --
--                                                                        --
--------------------------------------------------------------------------

function config_entry(entry) 
    SetMapEntryEntiID(entry, 193,1) 
end 

function after_create_entry(entry) 
    local copy_mgr = GetMapEntryCopyObj(entry, 0) 

    map_name, posx, posy, tmap_name = GetMapEntryPosInfo(entry)
    Notice("\206\225\250\255\226\235\229\237\232\229: \192\241\234\224\240\238\237 ["..posx..","..posy.."] \239\238\255\226\232\235\241\255 \239\238\240\242\224\235 \226\229\228\243\249\232\233 \226 [\204\232\240 \196\229\236\238\237\238\226]. \209\235\229\228\232\242\229 \231\224 \237\238\226\238\241\242\255\236\232.") 
end

function after_destroy_entry_puzzleworld(entry)
    map_name, posx, posy, tmap_name = GetMapEntryPosInfo(entry) 
    Notice("\206\225\250\255\226\235\229\237\232\229: \207\238\240\242\224\235 \226 [\204\232\240 \196\229\236\238\237\238\226] \231\224\234\240\251\235\241\255. \209\235\229\228\232\242\229 \231\224 \237\238\226\238\241\242\255\236\232. \211\228\224\247\232!") 
end

function after_player_login_puzzleworld(entry, player_name)
    map_name, posx, posy, tmap_name = GetMapEntryPosInfo(entry) 
    ChaNotice(player_name, "\206\225\250\255\226\235\229\237\232\229: \192\241\234\224\240\238\237 ["..posx..","..posy.."] \239\238\255\226\232\235\241\255 \239\238\240\242\224\235 \226\229\228\243\249\232\233 \226 [\204\232\240 \196\229\236\238\237\238\226]. \209\235\229\228\232\242\229 \231\224 \237\238\226\238\241\242\255\236\232.")
end

function check_can_enter_puzzleworld( role, copy_mgr )
    if Lv(role) >=50 then    
        return 1        
    else
        SystemNotice(role, "\194\251 \228\238\235\230\237\251 \225\251\242\252 \237\229 \237\232\230\229 50 \243\240\238\226\237\255, \247\242\238\225\251 \226\238\233\242\232 \226 \204\232\240 \196\229\236\238\237\238\226 ")
        return 0    
    end
end

function begin_enter_puzzleworld(role, copy_mgr) 
        SystemNotice(role,"\194\245\238\228 \226 [\204\232\240 \196\229\236\238\237\238\226]") 
        MoveCity(role, "Мир Демонов")
end

Share this post


Link to post
Share on other sites

В birth_conf.lua есть точка "Мир Демонов"?


Share this post


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

В birth_conf.lua есть точка "Мир Демонов"?

--Мир демонов 1
AddBirthPoint("\204\232\240 \228\229\236\238\237\238\226 1", "puzzleworld",  36, 20)
AddBirthPoint("\204\232\240 \228\229\236\238\237\238\226 1", "puzzleworld",  522, 32)
AddBirthPoint("\204\232\240 \228\229\236\238\237\238\226 1", "puzzleworld",  36, 527)
AddBirthPoint("\204\232\240 \228\229\236\238\237\238\226 1", "puzzleworld",  510, 527)
--AddBirthPoint("Мир демонов 1", "puzzleworld",  36, 20)
--AddBirthPoint("Мир демонов 1", "puzzleworld",  522, 32)
--AddBirthPoint("Мир демонов 1", "puzzleworld",  36, 527)
--AddBirthPoint("Мир демонов 1", "puzzleworld",  510, 527)

Share this post


Link to post
Share on other sites

Есть еще рядом копия бирх конф.луа

AddBirthPoint("魔方世界", "puzzleworld",  36, 20)
AddBirthPoint("魔方世界", "puzzleworld",  522, 32)
AddBirthPoint("魔方世界", "puzzleworld",  36, 527)
AddBirthPoint("魔方世界", "puzzleworld",  510, 527)

Share this post


Link to post
Share on other sites
-- Мир Демонов
AddBirthPoint("Demonic World", "puzzleworld",  36, 20)
AddBirthPoint("Demonic World", "puzzleworld",  522, 32)
AddBirthPoint("Demonic World", "puzzleworld",  36, 527)
AddBirthPoint("Demonic World", "puzzleworld",  510, 527)

удали все что связано с Мир демонов в этом файле и ставь что что скинул

Share this post


Link to post
Share on other sites
4 часа назад, kiberhack сказал:

-- Мир Демонов
AddBirthPoint("Demonic World", "puzzleworld",  36, 20)
AddBirthPoint("Demonic World", "puzzleworld",  522, 32)
AddBirthPoint("Demonic World", "puzzleworld",  36, 527)
AddBirthPoint("Demonic World", "puzzleworld",  510, 527)

удали все что связано с Мир демонов в этом файле и ставь что что скинул

Я и поставил все равно выкидывает. Если есть у кого birth_conf.lua нормальный может скинуть?

Share this post


Link to post
Share on other sites

@DeiLyred, привет!

 

Точка, указанная в вызове функции MoveCity(), должна слово в слово совпадать с точкой, определенной в файле birth_conf.lua.

 

У тебя:

MoveCity(role, "Мир Демонов")

 

и определенная точка:

AddBirthPoint("\204\232\240 \228\229\236\238\237\238\226 1", "puzzleworld",  36, 20)

То есть, точки не совпадают:

1) В entry.lua "Мир Демонов", а в birth_conf.lua "Мир демонов 1";

2) Все русские строки для избежания проблем нужно шифровать кодировщиком.

 

 

Попробуй сделать так:

 

entry.lua

MoveCity(role, "\204\232\240 \228\229\236\238\237\238\226 1")

 

birth_conf.lua

-- Мир Демонов 1
AddBirthPoint("\204\232\240 \228\229\236\238\237\238\226 1", "puzzleworld",  36, 20)
AddBirthPoint("\204\232\240 \228\229\236\238\237\238\226 1", "puzzleworld",  522, 32)
AddBirthPoint("\204\232\240 \228\229\236\238\237\238\226 1", "puzzleworld",  36, 527)
AddBirthPoint("\204\232\240 \228\229\236\238\237\238\226 1", "puzzleworld",  510, 527)

 


Share this post


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

@DeiLyred, привет!

 

Точка, указанная в вызове функции MoveCity(), должна слово в слово совпадать с точкой, определенной в файле birth_conf.lua.

 

У тебя:


MoveCity(role, "Мир Демонов")

 

и определенная точка:


AddBirthPoint("\204\232\240 \228\229\236\238\237\238\226 1", "puzzleworld",  36, 20)

То есть, точки не совпадают:

1) В entry.lua "Мир Демонов", а в birth_conf.lua "Мир демонов 1";

2) Все русские строки для избежания проблем нужно шифровать кодировщиком.

 

 

Попробуй сделать так:

 

entry.lua


MoveCity(role, "\204\232\240 \228\229\236\238\237\238\226 1")

 

birth_conf.lua


-- Мир Демонов 1
AddBirthPoint("\204\232\240 \228\229\236\238\237\238\226 1", "puzzleworld",  36, 20)
AddBirthPoint("\204\232\240 \228\229\236\238\237\238\226 1", "puzzleworld",  522, 32)
AddBirthPoint("\204\232\240 \228\229\236\238\237\238\226 1", "puzzleworld",  36, 527)
AddBirthPoint("\204\232\240 \228\229\236\238\237\238\226 1", "puzzleworld",  510, 527)

 

ОГРОМНОЕ СПАСИБО ТЕБЕ Я С ФЕВРАЛЯ МУЧАЛСЯ С ЭТИМ!

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...