[Admin] tierrilopes Posted October 14, 2017 at 12:48 AM Share Posted October 14, 2017 at 12:48 AM Pode ser útil para alguém quest_lua.cpp ALUA(pc_go_city) { LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr(); ch->GoCity(); return 1; } void RegisterPCFunctionTable() { luaL_reg pc_functions[] = { { "go_city", pc_go_city }, char.h public : void GoCity(); char.cpp void CHARACTER::GoCity() { WarpSet(EMPIRE_START_X(GetEmpire()), EMPIRE_START_Y(GetEmpire())); } quest_list pc.go_city Exemplo uso em quest quest asd begin state start begin when 101.kill begin pc.go_city() end end end Teleporta personagem para a cidade inicial do seu reino. 2 Link to comment Share on other sites More sharing options...
Marcos Posted October 14, 2017 at 01:39 AM Share Posted October 14, 2017 at 01:39 AM Muito útil. Melhor do que ter quue digitar coordenadas. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now