Jump to content

[duvida] tem alguma forma de obter o mob_name


Luffy
 Share

Recommended Posts

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
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...