Drazyn1291

asdsdsadas

Dec 29th, 2015
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.88 KB | None | 0 0
  1. 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}
  2.  
  3. function onUse(cid, item, frompos, item2, topos) -- Feito por ADM Goren --
  4.  
  5.     if getPlayerStorageValue(cid,8999)-os.time() > 0 then
  6.         doPlayerSendTextMessage(cid,18,"Você precisa esperar mais ".. getPlayerStorageValue(cid,8999)-os.time() .." segundos!")
  7.         return true
  8.     end
  9.  
  10.     if item2.itemid == 2203 then
  11.         doSendMagicEffect(frompos,246) --efeito 2
  12.         return true
  13.     end
  14.  
  15.     if item2.itemid == 2482 then
  16.         doTeleportThing(cid,topos)
  17.         setPlayerStorageValue(cid,8999,os.time()+15)
  18.         doSendAnimatedText(getPlayerPosition(cid), "ShunShin!", 102)
  19.         doSendMagicEffect(topos,341) --efeito 1
  20.         return true
  21.     end
  22.  
  23.     if getPlayerStorageValue(cid,45708) == 1 then
  24.         doPlayerSendTextMessage(cid,19,"Você não pode usar, estando sobre efeitos do Shimon!")
  25.         return true
  26.     end
  27.  
  28.     if getPlayerStorageValue(cid,13202) == 1 then
  29.         doPlayerSendTextMessage(cid,19,"Você não pode usar, estando sobre efeito de um genjutsu!")
  30.         return true
  31.     end
  32.  
  33.     if getTilePzInfo(topos) == 0 then
  34.         for i = 1, #items do
  35.             if item2.itemid == itens[i] then
  36.                 doTeleportThing(cid,topos)
  37.                 setPlayerStorageValue(cid,8999,os.time()+15)
  38.                 doSendAnimatedText(getPlayerPosition(cid), "ShunShin!", 102)
  39.                 doSendMagicEffect(topos,341) --efeito 2
  40.             else
  41.                 doPlayerSendTextMessage(cid,19,"Seal Failed!")
  42.                 doSendMagicEffect(frompos,246) -- efeito 1
  43.             end
  44.         end
  45.  
  46.         return 0
  47.     end
  48. end
Advertisement
Add Comment
Please, Sign In to add comment