sábado, 10 de julho de 2010

[Action] Wall Portal


local position = {x=161, y=55, z=0}

function onUse(cid, item, frompos, item2, topos)
if isPlayerPzLocked(cid) then
doPlayerSendTextMessage(cid, 22, "Opa, voar com PZ locked não !")
else
doTeleportThing(cid, position)
doSendMagicEffect(cid, 10)
end
end

sexta-feira, 9 de julho de 2010

[Movement] Change Prof. Tile


local voc = getPlayerVocation(cid)

 function onStepIn(cid, item, frompos, item2, topos)
   if voc == 1 then
 doPlayerSetVocation(cid,2)
 doSendMagicEffect(topos, 28)
     elseif voc == 2 then
 doPlayerSetVocation(cid, 3)
 doSendMagicEffect(topos, 28)
     elseif voc == 3 then
 doPlayerSetVocation(cid, 4)
 doSendMagicEffect(topos, 28)
     elseif voc == 4 then
 doPlayerSetVocation(cid, 1)
 doSendMagicEffect(topos, 28)
     elseif voc == 5 then
 doPlayerSetVocation(cid, 6)
 doSendMagicEffect(topos, 28)
     elseif voc == 6 then
 doPlayerSetVocation(cid, 7)
 doSendMagicEffect(topos, 28)
     elseif voc == 7 then
 doPlayerSetVocation(cid, 8)
 doSendMagicEffect(topos, 28)
     elseif voc == 8 then
 doPlayerSetVocation(cid, 1)
 doSendMagicEffect(topos, 28)
   end
  end

[Action] Fly Sistem


local position = {x=161, y=55, z=0}

function onUse(cid, item, frompos, item2, topos)
if isPlayerPzLocked(cid) then
doPlayerSendTextMessage(cid, 22, "Opa, voar com PZ locked não !")
else
doTeleportThing(cid, position)
doSendMagicEffect(cid, 10)
end
end


local position = {x=160, y=51, z=7}

function onUse(cid, item, frompos, item2, topos)
if isPlayerPzLocked(cid) then
doPlayerSendTextMessage(cid, 22, "Opa, parar de voar... Não pode com PZ LOCKED não !")
else
doTeleportThing(cid, position)
doSendMagicEffect(cid, 10)
end
end

[TalkAction] Skull Remover


--Inicio Configurações | Script feito por: tigerx2 --
local money1 = 50 -- dinheiro a ser pago para remover white skull PS: Dinheiro em K's
local money2 = 100 -- dinheiro a ser pago para remover red skull PS: Dinheiro em K's
local money3 = 200 -- dinheiro a ser pago para remover black skull PS: Dinheiro em K's
local msg1 = "Você nao está com nenhum tipo de skull, ou nao tem dinheiro" -- msg se o player não tem dinheiro ou nenhum tipo de skull
local msg2 = "Você perdeu seu white skull por 500k" -- msg quando o player perde white skull
local msg3 = "Você perdeu seu red skull por 1kk" -- msg quando o player perde red skull
local msg4 = "Você perdeu seu black skull por 2kk" -- msg quando o player perde black skull
--Final Configurações--   
    
    
        function onSay(cid, words, param)
    if getPlayerSkullType(cid) == 0 or getPlayerItemCount(cid, 2160) < money1 then
 doPlayerSendTextMessage(cid, 22, msg1)
     elseif getPlayerSkullType(cid) == 3 and getPlayerItemCount(cid, 2160) >= money1 then
  doCreatureSetSkullType(cid, 0)
   doRemoveItem(cid, 2160, 50)
    doPlayerSendTextMessage(cid, 22, msg2)
      elseif getPlayerSkullType(cid) == 4 and getPlayerItemCount(cid, 2160) >= money2 then
     doCreatureSetSkullType(cid, 0)
      doRemoveItem(cid, 2160, 100)
       doPlayerSendTextMessage(cid, 22, msg3)
       elseif getPlayerSkullType(cid) == 5 and getPlayerItemCount(cid, 2160) >= money3 then
 doCreatureSetSkullType(cid, 0)
  doRemoveItem(cid, 2160, 200)
   doPlayerSendTextMessage(cid, 22, msg4)
      end
    end