SO

[Ajuda]Só Teleporta Sem Battle

Por soldoran, 17 de set. de 2011 em Archived

script
7
807
soldoranS
17 de setembro de 2011 às 18:11

Ola pessoal,mais uma vez venho aqui pedir ajuda de vocês

bom so horrivel em scripts,entao queria saber se tem como colocar pro player nao se teleportar quando estiver com battle nesse script

 

function onSay(cid, words, param)
newpos = {x=1130, y=1145, z=7}  
if getPlayerLevel(cid) >= 0 then
doTeleportThing(cid,newpos)
doSendMagicEffect(getPlayerPosition(cid), 49)
doPlayerSendTextMessage(cid, 22, "" .. getPlayerName(cid) .. " foi teleportado para Eremo Island(aol seller)")
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "você digitou errado.")
doSendMagicEffect(getPlayerPosition(cid), 11)
end
return TRUE
end

 

quem ajudar agradeço e dou rep+

 

abraços

Editado Setembro 17 por soldoran

fokus090F
17 de setembro de 2011 às 18:18
function onSay(cid, words, param)

newpos = {x=1130, y=1145, z=7}  

if getCreatureCondition(cid, CONDITION_INFIGHT) == TRUE then
	doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Você precisa estar sem battler pra poder teleportar.")
else
	doTeleportThing(cid,newpos)
	doSendMagicEffect(getPlayerPosition(cid), 49)
	doPlayerSendTextMessage(cid, 22, "" .. getPlayerName(cid) .. " foi teleportado para Eremo Island(aol seller)")
end
return TRUE
end

soldoranS
17 de setembro de 2011 às 18:21

vleu xD

 

 

rep +

 

edit@ ops ainda tenho que esperar pra dar rep mas eu darei quando puder

 

abraços

Editado Setembro 17 por soldoran

fokus090F
17 de setembro de 2011 às 18:24
edit@ ops ainda tenho que esperar pra dar rep mas eu darei quando puder

 

Sem Problemas, foi um Prazer ajudar.

Abraços !! :smile_positivo:

soldoranS
17 de setembro de 2011 às 18:29

só aproveitando

 

tem como colocar neste tbm?se não for pedir muito

 

function onSay(cid, words, param)
newpos = {x=2085, y=2250, z=4}  
if getPlayerLevel(cid) >= 200 and doPlayerRemoveItem(cid,12385,1) then
doTeleportThing(cid,newpos)
doSendMagicEffect(getPlayerPosition(cid), 66)
doPlayerSendTextMessage(cid, 22, "[Mission]Você entrou em Blood Castle")
doPlayerSendTextMessage(cid, 22, "[Mission]Ajude o Archangel a pegar de volta sua arma,destrua os inimigos,destrua os portoes e invada o castelo,destrua o cubo e pegue a arma,e traga até o Archangel")
else
doPlayerSendTextMessage(cid, 22, "[Aviso]Você não tem o level nescessario ou o item")
doSendMagicEffect(getPlayerPosition(cid), 68)
end
return TRUE
end

fokus090F
17 de setembro de 2011 às 19:05

Sem Problemas !

 

function onSay(cid, words, param)

newpos = {x=2085, y=2250, z=4}  
item_id = 12385

   if getCreatureCondition(cid, CONDITION_INFIGHT) == TRUE then
       doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Você precisa estar sem battler pra poder teleportar.")
end
if getPlayerLevel(cid) >= 200 and getPlayerItemCount(cid,item_id) >= 1 and getCreatureCondition(cid, CONDITION_INFIGHT) == FALSE then
	doTeleportThing(cid,newpos)
	doSendMagicEffect(getPlayerPosition(cid), 66)
	doPlayerSendTextMessage(cid, 22, "[Mission]Você entrou em Blood Castle")
	doPlayerSendTextMessage(cid, 22, "[Mission]Ajude o Archangel a pegar de volta sua arma,destrua os inimigos,destrua os portoes e invada o castelo,destrua o cubo e pegue a arma,e traga até o Archangel")
else
	doPlayerSendTextMessage(cid, 22, "[Aviso]Você não tem o level nescessario ou o item")
	doSendMagicEffect(getPlayerPosition(cid), 68)
end
return TRUE
end

 

 

Abraços !! :smile_positivo:

Editado Setembro 17 por Frenesy

soldoranS
17 de setembro de 2011 às 19:17

vlwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww novamente *--------------------*

 

 

mais um rep agendado xD

 

 

abraços