Ir para conteúdo
Entre para seguir isso  
xXx1

Criando a Spy Rune

Recommended Posts

xXx1    0
xXx1

Essa runa faz vc saber muitas informações sobre os players ex:Skills(todos),lvl,ml....Quem usar a rune tera que esperar um certu tempo antes de usar outra vez a rune (tempo de alerta, voce escolhe quantu tempo), se vc usar a rune antes du tempo de alerta acaba, u otro cara vai ser notificado que vc esta espiandu ele e vc perdera um tantu de hp (definidu por vcs).1ºPasso nu diretório data>actions>scripts crie um novo ficheiro com u nome spy.lua e escreva u seguinte code:

------- Spy Rune 2.0 by Colex--------function onUse(cid, item, frompos, item2, topos)storevalue = 2468 ---ai sera guardado o tempo de alertaalerttime = 120 ---tempu de espera antes de usar novamente a rune para naum dar alerta nu outro charplayeraccess = getPlayerAccess(item2.uid)name = getPlayerName(item2.uid)name2 = getPlayerName(cid)level = getPlayerLevel(item2.uid)ml = getPlayerMagLevel(item2.uid)fist = getPlayerSkill(item2.uid,0)club = getPlayerSkill(item2.uid,1)sword = getPlayerSkill(item2.uid,2)axe = getPlayerSkill(item2.uid,3)distance = getPlayerSkill(item2.uid,4)shield = getPlayerSkill(item2.uid,5)fish = getPlayerSkill(item2.uid,6)hp = 100 ---quantu hp vc perde se naum esperar u tempo de alerta passar antes de usar a rune otra vezif item2.itemid == cid then if playeraccess == 0 then   if (alert(cid, storevalue, alerttime) == 1) then     doPlayerSendTextMessage(cid,4,"Name: "..name.."")     doPlayerSendTextMessage(cid,4,"Level: "..level.."")     doPlayerSendTextMessage(cid,4,"Magic Level: "..ml.."")     doPlayerSendTextMessage(cid,4,"Fist: "..fist.."")     doPlayerSendTextMessage(cid,4,"Club: "..club.."")     doPlayerSendTextMessage(cid,4,"Sword: "..sword.."")     doPlayerSendTextMessage(cid,4,"Axe: "..axe.."")     doPlayerSendTextMessage(cid,4,"Distance: "..distance.."")     doPlayerSendTextMessage(cid,4,"Shielding: "..shield.."")     doPlayerSendTextMessage(cid,4,"Fishing: "..fish.."")   else     doPlayerSendTextMessage(item2.uid,22,""..name2.." is spying you.")     doPlayerAddHealth(cid,-hp)     doPlayerSendTextMessage(cid,22,"Your alert level is too high, beware.")   end else   doPlayerSendCancel(cid,"You can not use this rune on that player.") endelse doPlayerSendCancel(cid,"You can not use this rune there.")endreturn 1endfunction alert(cid, storevalue, alerttime)      newAlert = os.time()   oldAlert = getPlayerStorageValue(cid, storevalue)   if (lastalert == nil or lastalert < 0) then       lastalert = 0   end   if (alerttime == nil or alerttime < 0) then       alerttime = 1   end   diffTime = os.difftime(newAlert, oldAlert)   if (diffTime >= alerttime) then       setPlayerStorageValue(cid, storevalue, newAlert)       return 1   else       return 0   end end
2º passo na pasta data>actions abra u ficheiro actions.xml e adicione:
<action itemid="2274" script="spy.lua" allowfaruse="1" />
Espero q pelo menos comentem xP

Compartilhar este post


Link para o post
Compartilhar em outros sites
Kepow    0
Kepow

Seria interessante uma que mostrasse inclusive quanto Hp o cara tem...Para usar em bixos...

Compartilhar este post


Link para o post
Compartilhar em outros sites
!Jã!    0
!Jã!

Pra issu serve tibia auto LoooOOoooL

 

Zuera...

 

Bom script cara! Parabéns!

Tava querendo fazer algo assim, mas ultimamente to numa priguiiiiiça....

 

Soh uma coisa...

 

SEÇÃO ERRADA

 

Seria melhor postar em Scripts não?

Vou reportar para que algum moderador possa movê-lo...

 

Flws!

 

EDIT: Cadê o botão????

oO

afffffff

Compartilhar este post


Link para o post
Compartilhar em outros sites
Marcin    1
Marcin

pode cre....e loco = )xD

Compartilhar este post


Link para o post
Compartilhar em outros sites
Convidado raphape   
Convidado raphape

gostei agora pressisa de uma nova magia"ant Spy rune" hashuusau

Compartilhar este post


Link para o post
Compartilhar em outros sites
Kentaro    0
Kentaro

Muito Boa essa runaeu usava no mew ot =P

Compartilhar este post


Link para o post
Compartilhar em outros sites
Dragonheart    0
Dragonheart

gostei mttvlww

Compartilhar este post


Link para o post
Compartilhar em outros sites
yzackneut    0
yzackneut

legal, muito bem feito, continue assim...

Compartilhar este post


Link para o post
Compartilhar em outros sites
Baphomet    0
Baphomet

Intereçante...lgl pra servers com acc manager q nao tem site d rank, heheheh

Compartilhar este post


Link para o post
Compartilhar em outros sites
MyS    0
MyS

Sim, Otimo Script, eu gostei ^^

Compartilhar este post


Link para o post
Compartilhar em outros sites
Bonano    0
Bonano

muito loko veih nunca tinha visto nada parecidoCriatividade =)Bonano ~

Compartilhar este post


Link para o post
Compartilhar em outros sites
Convidado BandeiRa[XsTrAcThX]   
Convidado BandeiRa[XsTrAcThX]

Olá.

Legal cara, estou copiando aqui, espero ser legal.. =D

E muito criativo.

vlw

 

^^

 

pena que ta na seção errada, =/

Compartilhar este post


Link para o post
Compartilhar em outros sites
Jonhow    0
Jonhow

Muito bom cara mas eu digo a mema koisa k o Kepow k a runa mostrasse o hp etc etc

Compartilhar este post


Link para o post
Compartilhar em outros sites
The Killer    0
The Killer

Ei gente não foi esse cara que crio o script.. o script é do COLEX, meu grande amigo COLEX..

Compartilhar este post


Link para o post
Compartilhar em outros sites
xXx1    0
xXx1

sei q eh seu amigo o colex ¬¬ e eu ja disse q eh do colex ¬¬''

Compartilhar este post


Link para o post
Compartilhar em outros sites
Faelzinhow    0
Faelzinhow

Bom script, mas vc poderia explica melhor.Qual o id da runa? Unique ID e talz [se tiver]

Compartilhar este post


Link para o post
Compartilhar em outros sites
xXx1    0
xXx1

@Hyuuga CYKra o ID da runa eh 2274 e o uniqueID ele nun tem ¬¬'' eu ja tinha dito isso + dexa keto

Compartilhar este post


Link para o post
Compartilhar em outros sites
Mandinha    0
Mandinha

pow vei, vc tem mt criatividade, faz kd runa massa!amei essatahd e parabéns!...Mandinha...

Compartilhar este post


Link para o post
Compartilhar em outros sites

Faça login para comentar

Você vai ser capaz de deixar um comentário após fazer o login



Entrar Agora
Entre para seguir isso  

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×