Bom, o sharingan do nrl (rofl) tu ta usando como base 7.81 ou 8.54?
action Item que copia "CONTIDADE CERTA DE MANA DO INIMIGO"
By Wiihtop, 22 de mar. de 2014 in Scripts
8,54 u.u sim parecido achei mt massa o do nrl .
info
Group: Conde
Joined: 18/01/12
Posts: 988
Reputation: +327
Gender: Masculino
Tibia Character: Xerife Woody

não entendi ;s
exemplo eu uso um item em algum player ele copia a mana do player e vai para voce ! direto sem armazenar
como se roubasse a mana !!
Toma ae
function onUse(cid, item, frompos, item2, topos)
local pos = getPlayerPosition(cid)
local name = getPlayerName(item2.uid)
local manaplayer = 100 ---mana do player oponente necessita para usar esta rune
local max = 9999 ---maximo de mana que pode ser absorvida
local min = 1 ---minimo de mana que pode ser absorvida
local mana = math.random(min,max) -- n mexe aki
if item2.itemid == cid then
if (getPlayerMana(item2.uid)) >= manaplayer then
if getTilePzInfo(pos) == 0 then
if getTilePzInfo(topos) == 0 then
if getPlayerExhaust(cid,1237,10) == -1 then
doPlayerAddMana(cid,mana)
doSendAnimatedText(pos, math.random(100, 100), 71)
doSendMagicEffect(pos,183)
doSendMagicEffect(topos,183)
doSendAnimatedText(getPlayerPosition(item2.uid), math.random(100, 100), 71)
else
doPlayerSendCancel(cid,"You are exhausted.")
end
else
doPlayerSendCancel(cid,"O Player Está Dentro do Pz.")
end
else
doPlayerSendCancel(cid,"Vc Está Dentro do Pz.")
end
else
doPlayerSendCancel(cid,""..name.." Está Sem Mana.")
end
else
doPlayerSendCancel(cid,"Não Pode Usar.")
end
return 1
end
Edited Março 22 by eryrrel
info
Group: Artesão
Joined: 22/02/14
Posts: 101
Reputation: +21

Se for oque eu tenha intendido.
Ai está:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local target = getCreatureTarget(cid)
local mana = getCreatureMana(itemEx.uid)
local temp = {
exhausted = 120, --tempo em segundos, por exemplo, 60x2 = 120 = 2 minutos.
storage = 298 --storage
}
if getTilePzInfo(topos) == 0 then
doPlayerSendCancel(cid,"O player esta dentro do PZ.")
return false
end
if getPlayerStorageValue(cid, 298) > os.time() then
doPlayerSendTextMessage(cid, 22, "Voce está exausto, espere " .. getPlayerStorageValue(cid, temp.storage) - os.time() .. ' segundo' .. ((getPlayerStorageValue(cid, temp.storage) - os.time()) == 1 and "" or "s"))
return true
end
if isPlayer(itemEx.uid) then
doCreatureAddMana(cid, mana)
doPlayerSay(cid, 'Sharingan', TALKTYPE_ORANGE_1)
setPlayerStorageValue(cid, temp.storage, os.time() + temp.exhausted)
else
return doPlayerSendCancel(cid, "Você só pode usar esse item em players.")
end
return true
end
Tag:
<action itemid="iddoitem" script="nomedoscript.lua" allowfaruse="1"/>
Edited Março 22 by lucasromero
nenhum dos 2 funfo ):
o do eyrell deu o seguinte erro
[22/03/2014 18:33:15] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/sharingann.lua)
[22/03/2014 18:33:15] data/actions/scripts/sharingann.lua:25: 'then' expected near 'end'
info
Group: Artesão
Joined: 22/02/14
Posts: 101
Reputation: +21

Seu item é de use with?
Pois aqui é funcional.
e o seu lucas nao funciona nada ;/
sim de [e use with?
é sim !*
info
Group: Conde
Joined: 18/01/12
Posts: 988
Reputation: +327
Gender: Masculino
Tibia Character: Xerife Woody

function onUse(cid, item, fromPosition, itemEx, toPosition)
local storage = 1234 -- storage
local time = 1 -- tempo em minutos
local mana = getCreatureMana(itemEx.uid)
if getTilePzInfo(getCreaturePosition(cid)) or getTilePzInfo(getCreaturePosition(itemEx.uid)) then
return false
end
if getPlayerStorageValue(cid, storage) - os.time() <= 0 then
if isPlayer(itemEx.uid) then
doCreatureAddMana(itemEx.uid, -mana)
doCreatureAddMana(cid, mana)
doSendMagicEffect(getCreaturePosition(cid), 11)
doSendMagicEffect(getCreaturePosition(itemEx.uid), 12)
setPlayerStorageValue(cid, storage, os.time()+1*60)
else
doPlayerSendCancel(cid, "Você só pode usar o item em players.")
end
else
doPlayerSendCancel(cid, "Você só pode usar o item a cada "..time.." segundos.")
end
return true
end
Edited Março 22 by DuuhCarvalho
agora mesmo eu clicando para atacar em um player aparece que eu nao posso usar em player ![]()
Wiihtop editei meu post tenta la com oque eu fiz
info
Group: Conde
Joined: 18/01/12
Posts: 988
Reputation: +327
Gender: Masculino
Tibia Character: Xerife Woody

errei uma letra ! kkk, testa ae denovo




info
Group: Artesão
Joined: 31/12/10
Posts: 136
Reputation: +1
galer
Edited Março 26 by Wiihtop