-
Notifications
You must be signed in to change notification settings - Fork 32
Description
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 ----------------------------------
------------------------------- SALLES DU DUNG -------------------------------
{ map = "2073", combat = true}, -- salle 1
{ map = "2074", combat = true}, -- salle 2
{ map = "2075", combat = true}, -- salle 3
{ map = "2076", combat = true}, -- salle 4
{ map = "2077", combat = true}, -- salle 5
{ map = "2079", combat = true}, -- salle 6
{ map = "2080", combat = true}, -- salle 7
{ map = "2081", combat = true}, -- salle 8
{ map = "2082", combat = true}, -- salle 9
{ map = "2083", combat = true}, -- salle 10
----------------------------- FIN SALLES DU DUNG -----------------------------
{ map = "2084", custom = exit_dungeon}, -- salle chacha
}
end
function enter_dungeon()
npc.hablarNpc(-1)
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)
end
`