Ir para conteúdo
  • 0

botar pra pega blatle au usar magia


Dennyz Dias

Pergunta

alguem poderia botar pra pega batle "espada vermelha" nesse script
se der pra bota pro blatle fica 4 segundos ficaria melhor se não der blz

function onCastSpell(cid, var)
parameters = {cid=cid}
setPlayerGroupId(cid, 2)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
doCreatureExecuteTalkAction(cid, "/ghost", TRUE)
addEvent(talk, 3000, parameters)
return true
end
function talk(parameters)
doCreatureExecuteTalkAction(parameters.cid, "/ghost", TRUE)
setPlayerGroupId(parameters.cid, 1)
end

 

Link para o comentário
Compartilhar em outros sites

2 respostass a esta questão

Posts Recomendados

  • 0

Tenta assim:

function onCastSpell(cid, var)
parameters = {cid=cid}
setPlayerGroupId(cid, 2)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
doCreatureExecuteTalkAction(cid, "/ghost", TRUE)
addEvent(talk, 3000, parameters)
	if isPlayer(cid) and isPlayerPzLocked(cid, false) then
	doPlayerSetPzLocked(cid, true)
	addEvent(doPlayerSetPzLocked, tempo*1000, cid, false)
	end
return true
end

function talk(parameters)
doCreatureExecuteTalkAction(parameters.cid, "/ghost", TRUE)
setPlayerGroupId(parameters.cid, 1)
end
Link para o comentário
Compartilhar em outros sites

  • 0

 

Tenta assim:

 

function onCastSpell(cid, var)
parameters = {cid=cid}
setPlayerGroupId(cid, 2)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
doCreatureExecuteTalkAction(cid, "/ghost", TRUE)
addEvent(talk, 3000, parameters)
	if isPlayer(cid) and isPlayerPzLocked(cid, false) then
	doPlayerSetPzLocked(cid, true)
	addEvent(doPlayerSetPzLocked, tempo*1000, cid, false)
	end
return true
end

function talk(parameters)
doCreatureExecuteTalkAction(parameters.cid, "/ghost", TRUE)
setPlayerGroupId(parameters.cid, 1)
end

n deu mano

 

[27/12/2015 22:19:43] [Error - Spell Interface]
[27/12/2015 22:19:43] data/spells/scripts/support/omitto.lua:onCastSpell
[27/12/2015 22:19:43] Description:
[27/12/2015 22:19:43] (LuaInterface::luaSetCombatParam) This function can only be used while loading the script
[27/12/2015 22:19:44] [Error - Spell Interface]
[27/12/2015 22:19:44] data/spells/scripts/support/omitto.lua:onCastSpell
[27/12/2015 22:19:44] Description:
[27/12/2015 22:19:44] (LuaInterface::internalGetPlayerInfo) Player not found when requesting player info #26
Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...