Postado Outubro 3, 2022 2 anos alguem poderia me ajudar com esse script pf ? ele é tipo o ghaz do global ao passa nos corpos dos sumons o players e teleportado para o pe do boss e ao antigir uma certa quantidade de hp ele avisa que ira se healar em 5s. o tp esta funcionando normal, mas o heal nao está e fica aparecendo esse erro na distro. [Warning - Monster::Monster] Unknown event name - HealGaz [Error - CreatureEvent::configureEvent] No valid type for creature event.healthchange [Warning - BaseEvents::loadFromXml] Cannot configure an event creature event Mostrar conteúdo oculto <event type="healthchange" name="HealGaz" script="heal_gaz.lua"/> local config = { life_ative = 50000, life_add = 300000, seconds_ative = 5, gStorage = 90702, } function AddHealth(cid) setGlobalStorageValue(config.gStorage, 0) if not isCreature(cid) then return false end doCreatureAddHealth(cid, config.life_add) doCreatureSay(cid, "Gaz'haragoth HEALS himself!", TALKTYPE_MONSTER) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_RED) end function onStatsChange(cid, attacker, type, combat, value) if (getGlobalStorageValue(config.gStorage) < 1 and type == STATSCHANGE_HEALTHLOSS and getCreatureHealth(cid) < config.life_ative) then doCreatureSay(cid, "Gaz'haragoth beginns to draw on the nightmares to HEAL himself!", TALKTYPE_MONSTER) addEvent(AddHealth, config.seconds_ative * 1000, cid) setGlobalStorageValue(config.gStorage, 1) end return true end movements Mostrar conteúdo oculto <movevent type="StepIn" itemid="2248" event="script" value="teleport_gaz.lua"/> function onStepIn(cid, item, position, fromPosition) if not isPlayer(cid) then return false end local monster = getCreatureByName("Deathbine") if monster then local pos = getCreaturePosition(monster) doTeleportThing(cid, pos) doSendMagicEffect(pos, CONST_ME_TELEPORT) else doTeleportThing(cid, fromPosition) end return true end
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.