F-Caneiras Posted September 26, 2017 at 05:19 PM Share Posted September 26, 2017 at 05:19 PM Olá Aqui algo para alterar a velocidade das montadas ou diminuir consoante o caso. Abrir questlua_pc.cpp e procurar por pc_mount function. Substitua toda a função por isto: Spoiler int pc_mount(lua_State* L) { if (!lua_isnumber(L, 1)) return 0; int length = 60; if (lua_isnumber(L, 2)) length = (int)lua_tonumber(L, 2); DWORD mount_vnum = (DWORD)lua_tonumber(L, 1); if (length < 0) length = 60; LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr(); ch->RemoveAffect(AFFECT_MOUNT); ch->RemoveAffect(AFFECT_MOUNT_BONUS); // ¸»ŔĚ ĽŇČŻµÇľî µű¶ó´Ů´Ď´Â »óŶó¸é ¸»şÎĹÍ ľřľÚ if (ch->GetHorse()) ch->HorseSummon(false); int ertek = 0; if (lua_isnumber(L, 3)) ertek = (int)lua_tonumber(L, 3); if (ertek <= 0) ertek = 0; ch->AddAffect(AFFECT_MOUNT, POINT_MOV_SPEED, ertek, AFF_NONE, length, 0, true, true); return 0; } Então você pode usá-la em quests como: Spoiler pc.mount(ID, duration, speed) Nao testado por min: Fonte FreakGames 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