Is it possible de add the possibility to use custom function by group members.
Attached to this, my script for dj bouf.
For a single character, it works as a charm. For a group however, other members does not execute the corotine. I tried to modify the get_Funcion_Personalizada by adding the corotine to other members, but the problem is that the other members does not have a script variable and will not be able to execute anything.
`
MAXIMOS_PODS = 90
AUTO_REGENERATION =
{
VITA_MIN = 60,
VITA_MAX = 100,
OBJET = { 528 } -- Example : Bread (such as id = 528)
}
function mouvement()
return
{
--------------------------------- ROUTE DJ -----------------------------------
{ map = "1856", custom = enter_dungeon}, -- entree dj bouf
-------------------------------- FIN A DUNG ----------------------------------
if estenDialogue() then
message("Talking to Altair.")
else
message("This NPC is not in this map.")
stopScript()
end
if not inventario.tieneObjeto(1568) then
message("I do not have the clef.")
stopScript()
else
message("I do have the clef.")
end
npc.responder(564)
end
function exit_dungeon()
npc.hablarNpc(-1)
if estenDialogue() then
message("Talking to Altair.")
else
message("This NPC is not in this map.")
stopScript()
end
npc.responder(-1)
Is it possible de add the possibility to use custom function by group members.
Attached to this, my script for dj bouf.
For a single character, it works as a charm. For a group however, other members does not execute the corotine. I tried to modify the get_Funcion_Personalizada by adding the corotine to other members, but the problem is that the other members does not have a script variable and will not be able to execute anything.
` MAXIMOS_PODS = 90
AUTO_REGENERATION = { VITA_MIN = 60, VITA_MAX = 100, OBJET = { 528 } -- Example : Bread (such as id = 528) }
MAPS_DONJON = { 2073, 2074, 2075, 2076, 2077, 2079, 2080, 20811, 2082, 2083 }
function mouvement() return { --------------------------------- ROUTE DJ ----------------------------------- { map = "1856", custom = enter_dungeon}, -- entree dj bouf -------------------------------- FIN A DUNG ----------------------------------
end
function enter_dungeon() npc.hablarNpc(-1)
end
function exit_dungeon() npc.hablarNpc(-1)
end `