KI
pedido

TP SCROLL

Por kinglekke, 05 de nov. de 2013 em Scripts

resolvido
script
36
3.2k
MaenilseM
05 de novembro de 2013 às 19:54

nao é preciso, reiniciar o ot, basta falar /reload actions, e pronto.

kinglekkeK
05 de novembro de 2013 às 20:12

ele nao funciona mais

:(


ele nao da erro , mais tbm nao teleporta

MaenilseM
05 de novembro de 2013 às 20:29

tenta assim.

 

function onUse(cid, item, topos, item2, frompos)
 
local pos = {x = xxx, y = yyy, z = zzz}   --Coordenadas para onde o player será teleportado.
 
function teleport_thing(cid, toPos, time, storage, cd)
 
    if isCreature(cid) then
        addEvent(doTeleportThing, time*1000, cid, toPos)
        addEvent(setPlayerStorageValue, time*1000, cid, storage, os.time () + cd)
end
return true
end
 
    if getCreatureSkull(cid) >= 3 then
        return doPlayerSendCancel(cid, "Você não pode usar este item enquanto está PK.")
end
    if not isPremium(cid) then
        return doPlayerSendCancel(cid, "Você não é premium.")
end
    if getPlayerStorageValue(cid, 141029) > os.time () then
        return doPlayerSendCancel(cid, "Aguarde "..getPlayerStorageValue(cid, 141029) - os.time ().." para se teleportar novamente.")
end
        local a = 10
        for i = 1, 10 do
            a = a - 1
            addEvent(doCreatureSay, i*1000, cid,  " ..a.." ", TALKTYPE_ORANGE_1 )
    end
        teleport_thing(cid, pos, 10, 141029, 30)
return true
end
kinglekkeK
05 de novembro de 2013 às 20:44

dnv sem resultados

MaenilseM
05 de novembro de 2013 às 20:47

estranho era pra ter funcionado, tenta ae man.

 

function onUse(cid, item, topos, item2, frompos)
 
local pos = {x = xxx, y = yyy, z = zzz}   --Coordenadas para onde o player será teleportado.
 
function teleport_thing(cid, toPos, time, storage, cd)
 
    if isCreature(cid) then
        addEvent(doTeleportThing, time*1000, cid, toPos)
        addEvent(setPlayerStorageValue, time*1000, cid, storage, os.time () + cd)
end
return true
end
 
    if getCreatureSkull(cid) >= 3 then
        return doPlayerSendCancel(cid, "Você não pode usar este item enquanto está PK.")
end
    if not isPremium(cid) then
        return doPlayerSendCancel(cid, "Você não é premium.")
end
    if getPlayerStorageValue(cid, 141029) > os.time () then
        return doPlayerSendCancel(cid, "Aguarde "..getPlayerStorageValue(cid, 141029) - os.time ().." para se teleportar novamente.")
end
        local a = 10
        for i = 1, 10 do
            a = a - 1
            addEvent(doCreatureSay, i*1000, cid,  "" ...a..."", TALKTYPE_ORANGE_1 )
    end
        teleport_thing(cid, pos, 10, 141029, 30)
return true
end
kinglekkeK
05 de novembro de 2013 às 20:53

 

tem como por animaçao para tipo fogo enquanto esta nos numeros , por exemplo pegar fogo ou algo parecido

Editado Novembro 5 por kinglekke

zipter98Z
05 de novembro de 2013 às 21:02

 

function onUse(cid, item, topos, item2, frompos)
 
local pos = {x = xxx, y = yyy, z = zzz}   --Coordenadas para onde o player será teleportado.
 
function teleport_thing(cid, toPos, time, storage, cd)
 
    if isCreature(cid) then
        addEvent(doTeleportThing, time*1000, cid, toPos)
        addEvent(setPlayerStorageValue, time*1000, cid, storage, os.time () + cd)
end
return true
end
 
    if getCreatureSkull(cid) >= 3 then
        return doPlayerSendCancel(cid, "Você não pode usar este item enquanto está PK.")
end
    if not isPremium(cid) then
        return doPlayerSendCancel(cid, "Você não é premium.")
end
    if getPlayerStorageValue(cid, 141029) > os.time () then
        return doPlayerSendCancel(cid, "Aguarde "..getPlayerStorageValue(cid, 141029) - os.time ().." para se teleportar novamente.")
end
        local a = 10
        for i = 1, 10 do
            a = a - 1
            addEvent(doCreatureSay, i*1000, cid,  "" ...a..."", TALKTYPE_ORANGE_1)
            addEvent(doSendMagicEffect, i*1000, getThingPos(cid), 12)   --No lugar de 12, coloque o efeito desejado.
    end
        teleport_thing(cid, pos, 10, 141029, 30)
return true
end
MaenilseM
05 de novembro de 2013 às 21:05

/\ botei uma variavel, pra ficar mas facil de ser configurado.

 

function onUse(cid, item, topos, item2, frompos)
 
local pos = {x = xxx, y = yyy, z = zzz}   --Coordenadas para onde o player será teleportado.
local efeito = 12
 
function teleport_thing(cid, toPos, time, storage, cd)
 
    if isCreature(cid) then
        addEvent(doTeleportThing, time*1000, cid, toPos)
        addEvent(setPlayerStorageValue, time*1000, cid, storage, os.time () + cd)
end
return true
end
 
    if getCreatureSkull(cid) >= 3 then
        return doPlayerSendCancel(cid, "Você não pode usar este item enquanto está PK.")
end
    if not isPremium(cid) then
        return doPlayerSendCancel(cid, "Você não é premium.")
end
    if getPlayerStorageValue(cid, 141029) > os.time () then
        return doPlayerSendCancel(cid, "Aguarde "..getPlayerStorageValue(cid, 141029) - os.time ().." para se teleportar novamente.")
end
        local a = 10
        for i = 1, 10 do
            a = a - 1
            addEvent(doCreatureSay, i*1000, cid,  "" ...a..."", TALKTYPE_ORANGE_1)
            addEvent(doSendMagicEffect, i*1000, getThingPos(cid), efeito)
    end
        teleport_thing(cid, pos, 10, 141029, 30)
return true
end

 

só editar nessa parte.

local efeito = 12
kinglekkeK
05 de novembro de 2013 às 21:11

nao funcionou

MaenilseM
05 de novembro de 2013 às 21:12

estranho, erro na distro? poste aqui se tiver erro.

kinglekkeK
05 de novembro de 2013 às 21:18

gente nao sei pq , mais so ta funcionando com esse que o cara posto , tente montar por cima dele pfv

function onUse(cid, item, topos, item2, frompos) local pos = {x = 32787, y = 31276, z = 7}   --Coordenadas para onde o player será teleportado. function teleport_thing(cid, toPos, time, storage, cd)     if isCreature(cid) then        addEvent(doTeleportThing, time*1000, cid, toPos)        addEvent(setPlayerStorageValue, time*1000, cid, storage, os.time () + cd)endreturn trueend     if getCreatureSkull(cid) >= 3 then        return doPlayerSendCancel(cid, "Você não pode usar este item enquanto está PK.")end    if not isPremium(cid) then        return doPlayerSendCancel(cid, "Você não é premium.")end    if getPlayerStorageValue(cid, 141029) > os.time () then        return doPlayerSendCancel(cid, "Aguarde "..getPlayerStorageValue(cid, 141029) - os.time ().." para se teleportar novamente.")end        local a = 10        for i = 1, 10 do            a = a - 1            addEvent(doPlayerSendTextMessage, i*1000, cid, 27, "Você será teleportado em "..a.." segundo(s).")    end        teleport_thing(cid, pos, 10, 141029, 30)return trueend

Editado Novembro 5 por kinglekke

zipter98Z
05 de novembro de 2013 às 21:20
function onUse(cid, item, topos, item2, frompos)
 
local pos = {x = xxx, y = yyy, z = zzz}   --Coordenadas para onde o player será teleportado.
local efeito = 12
 
function teleport_thing(cid, toPos, time, storage, cd)
 
    if isCreature(cid) then
        addEvent(doTeleportThing, time*1000, cid, toPos)
        addEvent(setPlayerStorageValue, time*1000, cid, storage, os.time () + cd)
end
return true
end
 
    if getCreatureSkull(cid) >= 3 then
        return doPlayerSendCancel(cid, "Você não pode usar este item enquanto está PK.")
end
    if not isPremium(cid) then
        return doPlayerSendCancel(cid, "Você não é premium.")
end
    if getPlayerStorageValue(cid, 141029) > os.time () then
        return doPlayerSendCancel(cid, "Aguarde "..getPlayerStorageValue(cid, 141029) - os.time ().." para se teleportar novamente.")
end
        local a = 10
        for i = 1, 10 do
            a = a - 1
            addEvent(doCreatureSay, i*1000, cid,  "" ..a.."", TALKTYPE_ORANGE_1)
            addEvent(doSendMagicEffect, i*1000, getThingPos(cid), efeito)
    end
        teleport_thing(cid, pos, 10, 141029, 30)
return true
end

Testado, funcionando perfeitamente. Basta configurar o que é indicado.

Editado Novembro 5 por zipter98

kinglekkeK
05 de novembro de 2013 às 21:28

deu ceerto vlw :0


onde eu vejo qual numero faz oq ??? , alguem sabe algum comando de god que da para ver ?

 

 

bom juro que e esse eo ultimo pedido , tem como fazer o enquanto esta na contagem o player fika travado , ele nao poder andar :) e o ultimo prometo

 

to usando esse script que e do zipter98

unction onUse(cid, item, topos, item2, frompos) local pos = {x = xxx, y = yyy, z = zzz}   --Coordenadas para onde o player será teleportado.local efeito = 12 function teleport_thing(cid, toPos, time, storage, cd)     if isCreature(cid) then        addEvent(doTeleportThing, time*1000, cid, toPos)        addEvent(setPlayerStorageValue, time*1000, cid, storage, os.time () + cd)endreturn trueend     if getCreatureSkull(cid) >= 3 then        return doPlayerSendCancel(cid, "Você não pode usar este item enquanto está PK.")end    if not isPremium(cid) then        return doPlayerSendCancel(cid, "Você não é premium.")end    if getPlayerStorageValue(cid, 141029) > os.time () then        return doPlayerSendCancel(cid, "Aguarde "..getPlayerStorageValue(cid, 141029) - os.time ().." para se teleportar novamente.")end        local a = 10        for i = 1, 10 do            a = a - 1            addEvent(doCreatureSay, i*1000, cid,  "" ..a.."", TALKTYPE_ORANGE_1)            addEvent(doSendMagicEffect, i*1000, getThingPos(cid), efeito)    end        teleport_thing(cid, pos, 10, 141029, 30)return trueend

Editado Novembro 5 por kinglekke

MaenilseM
05 de novembro de 2013 às 22:15

o comando q ver os efeitos de god, é o /z. e ao seu pedido, toma ae testa.

function onUse(cid, item, topos, item2, frompos)
 
local pos = {x = xxx, y = yyy, z = zzz}   --Coordenadas para onde o player será teleportado.
local efeito = 12
local condition1 = createConditionObject(CONDITION_INFIGHT)
setConditionParam(condition1, CONDITION_PARAM_TICKS, -1)
 
function teleport_thing(cid, toPos, time, storage, cd)
 
    if isCreature(cid) then
        addEvent(doTeleportThing, time*1000, cid, toPos)
        addEvent(setPlayerStorageValue, time*1000, cid, storage, os.time () + cd)
end
return true
end
 
    if getCreatureSkull(cid) >= 3 then
        return doPlayerSendCancel(cid, "Você não pode usar este item enquanto está PK.")
end
    if not isPremium(cid) then
        return doPlayerSendCancel(cid, "Você não é premium.")
end
    if getPlayerStorageValue(cid, 141029) > os.time () then
        return doPlayerSendCancel(cid, "Aguarde "..getPlayerStorageValue(cid, 141029) - os.time ().." para se teleportar novamente.")
end
        local a = 10
        for i = 1, 10 do
            a = a - 1
            addEvent(doCreatureSay, i*1000, cid,  "" ..a.."", TALKTYPE_ORANGE_1)
            addEvent(doSendMagicEffect, i*1000, getThingPos(cid), efeito)
            doAddCondition(cid, condition1)
    end
        teleport_thing(cid, pos, 10, 141029, 30)
return true
end

Editado Novembro 5 por Maenilse

kinglekkeK
05 de novembro de 2013 às 22:39

ainda o char consegue andar