Bennyhappy 2 Postado Março 18, 2014 Share Postado Março 18, 2014 (editado) Este código me ajuda a não funcionar correctamente, é para um evento (solved use movement no momento do morir) please close this topic local bmale = createConditionObject(CONDITION_OUTFIT) setConditionParam(bmale, CONDITION_PARAM_TICKS, -1) addOutfitCondition(bmale, {lookType = 328, lookHead = 59, lookBody =114, lookLegs = 85, lookFeet = 85, lookTypeEx = 0, lookAddons = 3}) local bfemale = createConditionObject(CONDITION_OUTFIT) setConditionParam(bfemale, CONDITION_PARAM_TICKS, -1) addOutfitCondition(bfemale, {lookType = 329, lookHead = 59, lookBody =114, lookLegs = 85, lookFeet = 85, lookTypeEx = 0, lookAddons = 3}) local StorageNovia = 38381 local arena_event_pos = {x = 794, y = 513, z = 7} --- centro de la arena del evento local zonaSpawn = {x = 794, y = 528, z = 6} -- zona spawn local timeSpawn = 15 function onKill(cid, target) if getPlayerStorageValue(target, StorageNovia) >= 1 then setPlayerStorageValue(target, StorageNovia, 0) doAddCondition(target, bmale) doTeleportThing(target, arena_event_pos) doSendMagicEffect(getPlayerPosition(target), CONST_ME_TELEPORT) addEvent(SendSpawnEventNovia, timeSpawn * 1000, target) doAddCondition(cid, bfemale) setPlayerStorageValue(cid, StorageNovia, 1) end return true end function SendSpawnEventNovia(target) doTeleportThing(target, arena_event_pos) doSendMagicEffect(getPlayerPosition(target), CONST_ME_TELEPORT) end [18/03/2014 14:46:10] [Error - CreatureScript Interface] [18/03/2014 14:46:10] In a timer event called from: [18/03/2014 14:46:10] data/creaturescripts/scripts/addonFrags.lua:onKill [18/03/2014 14:46:10] Description: [18/03/2014 14:46:10] (luaDoTeleportThing) Thing not found [18/03/2014 14:46:10] [Error - CreatureScript Interface] [18/03/2014 14:46:10] In a timer event called from: [18/03/2014 14:46:10] data/creaturescripts/scripts/addonFrags.lua:onKill [18/03/2014 14:46:10] Description: [18/03/2014 14:46:10] (luaGetThingPosition) Thing not found Editado Março 19, 2014 por beenii Link para o comentário https://xtibia.com/forum/topic/230303-ajuda-em-creaturescript-funcion-onkill-solved/ Compartilhar em outros sites More sharing options...
0 Duuhzinhow 30 Postado Março 18, 2014 Share Postado Março 18, 2014 Esta acontecendo algum erro? se estiver poste aqui. Link para o comentário https://xtibia.com/forum/topic/230303-ajuda-em-creaturescript-funcion-onkill-solved/#findComment-1625251 Compartilhar em outros sites More sharing options...
0 RodriigoRobson 111 Postado Março 19, 2014 Share Postado Março 19, 2014 Tenta Assim: local bmale = createConditionObject(CONDITION_OUTFIT)setConditionParam(bmale, CONDITION_PARAM_TICKS, -1)addOutfitCondition(bmale, {lookType = 328, lookHead = 59, lookBody =114, lookLegs = 85, lookFeet = 85, lookTypeEx = 0, lookAddons = 3})local bfemale = createConditionObject(CONDITION_OUTFIT)setConditionParam(bfemale, CONDITION_PARAM_TICKS, -1)addOutfitCondition(bfemale, {lookType = 329, lookHead = 59, lookBody =114, lookLegs = 85, lookFeet = 85, lookTypeEx = 0, lookAddons = 3})local StorageNovia = 38381local arena_event_pos = {x = 794, y = 513, z = 7} --- centro de la arena del eventolocal zonaSpawn = {x = 794, y = 528, z = 6} -- zona spawnlocal timeSpawn = 15function onKill(cid, target)if getPlayerStorageValue(target, StorageNovia) >= 1 thensetPlayerStorageValue(target, StorageNovia, 0)doAddCondition(target, bmale)doTeleportThing(cid, arena_event_pos)doSendMagicEffect(getPlayerPosition(target), CONST_ME_TELEPORT)addEvent(SendSpawnEventNovia, timeSpawn * 1000, target)doAddCondition(cid, bfemale)setPlayerStorageValue(cid, StorageNovia, 1)endreturn trueendfunction SendSpawnEventNovia(cid,target)doTeleportThing(cid, arena_event_pos)doSendMagicEffect(getPlayerPosition(target), CONST_ME_TELEPORT)end Link para o comentário https://xtibia.com/forum/topic/230303-ajuda-em-creaturescript-funcion-onkill-solved/#findComment-1625651 Compartilhar em outros sites More sharing options...
0 zipter98 1102 Postado Março 19, 2014 Share Postado Março 19, 2014 Tópico movido para a seção de dúvidas e pedidos resolvidos. Link para o comentário https://xtibia.com/forum/topic/230303-ajuda-em-creaturescript-funcion-onkill-solved/#findComment-1625723 Compartilhar em outros sites More sharing options...
Pergunta
Bennyhappy 2
local bmale = createConditionObject(CONDITION_OUTFIT) setConditionParam(bmale, CONDITION_PARAM_TICKS, -1) addOutfitCondition(bmale, {lookType = 328, lookHead = 59, lookBody =114, lookLegs = 85, lookFeet = 85, lookTypeEx = 0, lookAddons = 3}) local bfemale = createConditionObject(CONDITION_OUTFIT) setConditionParam(bfemale, CONDITION_PARAM_TICKS, -1) addOutfitCondition(bfemale, {lookType = 329, lookHead = 59, lookBody =114, lookLegs = 85, lookFeet = 85, lookTypeEx = 0, lookAddons = 3}) local StorageNovia = 38381 local arena_event_pos = {x = 794, y = 513, z = 7} --- centro de la arena del evento local zonaSpawn = {x = 794, y = 528, z = 6} -- zona spawn local timeSpawn = 15 function onKill(cid, target) if getPlayerStorageValue(target, StorageNovia) >= 1 then setPlayerStorageValue(target, StorageNovia, 0) doAddCondition(target, bmale) doTeleportThing(target, arena_event_pos) doSendMagicEffect(getPlayerPosition(target), CONST_ME_TELEPORT) addEvent(SendSpawnEventNovia, timeSpawn * 1000, target) doAddCondition(cid, bfemale) setPlayerStorageValue(cid, StorageNovia, 1) end return true end function SendSpawnEventNovia(target) doTeleportThing(target, arena_event_pos) doSendMagicEffect(getPlayerPosition(target), CONST_ME_TELEPORT) end
Editado por beeniiLink para o comentário
https://xtibia.com/forum/topic/230303-ajuda-em-creaturescript-funcion-onkill-solved/Compartilhar em outros sites
3 respostass a esta questão
Posts Recomendados