Luffy Posted May 16, 2017 at 05:48 PM Share Posted May 16, 2017 at 05:48 PM Tem alguma forma de obter o mob_name sem precisar especificar o id do mob? Link to comment
juniorsilva Posted May 16, 2017 at 09:25 PM Share Posted May 16, 2017 at 09:25 PM Bom você pode usar o npc.get_race() em mob_name(npc.get_race()) ou criar uma função em lua no arquivo questlib.lua. add em questlib.lua: function say_npc_name() say(color256(255, 230, 186)..mob_name(npc.get_race())..":"..color256(196, 196, 196))end Necessário também add em quest_functions: say_npc_name Pra usar é só fazer assim: quest mob_test beginstate start begin when kill with not npc.is_pc() begin say_npc_name() endendend Link to comment
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