Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local items = {107,106,105,104,103,102,2482,448,407,406,405,368,355,354,353,352,351,109,108,448,412,413,414,415,420,424,431,457,458,777,791,806,1284,3139,3152,3153,264,3265,3756,3757,3762,3763,3764,3765,4405,4412,4411,4410,4409,4408,4407,4406,4413,4414,4415,4416,4417,4418,4419,4420,4421,4422,4423,4424,4425,4426,4427,4428,4429,4430,4431,4432,4433,4434,4435,4436,4437,4438,5743,5744,5768,5769,5770,4542,4543,4544,4545,4546,4547,4548,4549,4550,4551,4552,4825,926,3128,4667,4668,4669,4670,4671,4672,4673,4674,4675,4676,4677,4678,3153,4553}
- function onUse(cid, item, frompos, item2, topos) -- Feito por ADM Goren --
- if getPlayerStorageValue(cid,8999)-os.time() > 0 then
- doPlayerSendTextMessage(cid,18,"Você precisa esperar mais ".. getPlayerStorageValue(cid,8999)-os.time() .." segundos!")
- return true
- end
- if item2.itemid == 2203 then
- doSendMagicEffect(frompos,246) --efeito 2
- return true
- end
- if item2.itemid == 2482 then
- doTeleportThing(cid,topos)
- setPlayerStorageValue(cid,8999,os.time()+15)
- doSendAnimatedText(getPlayerPosition(cid), "ShunShin!", 102)
- doSendMagicEffect(topos,341) --efeito 1
- return true
- end
- if getPlayerStorageValue(cid,45708) == 1 then
- doPlayerSendTextMessage(cid,19,"Você não pode usar, estando sobre efeitos do Shimon!")
- return true
- end
- if getPlayerStorageValue(cid,13202) == 1 then
- doPlayerSendTextMessage(cid,19,"Você não pode usar, estando sobre efeito de um genjutsu!")
- return true
- end
- if getTilePzInfo(topos) == 0 then
- for i = 1, #items do
- if item2.itemid == itens[i] then
- doTeleportThing(cid,topos)
- setPlayerStorageValue(cid,8999,os.time()+15)
- doSendAnimatedText(getPlayerPosition(cid), "ShunShin!", 102)
- doSendMagicEffect(topos,341) --efeito 2
- else
- doPlayerSendTextMessage(cid,19,"Seal Failed!")
- doSendMagicEffect(frompos,246) -- efeito 1
- end
- end
- return 0
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment