TE
dúvida

Tile Vip

Por TeteuziiN, 18 de ago. de 2012 em Scripts

11
1.3k
TeteuziiNT
18 de agosto de 2012 às 03:02

Como Colocar Para quando um player que nao seja vip passar ensima do tile e ser teleportado para um local de minha escolha aki esta o meu tile vip!

 

 

 

 

function onStepIn(cid, item, position, fromPosition)

 

local config = {

 

 

}

 

if(isInArray({5, 6, 7, 8}, getPlayerVocation(cid))) then

return TRUE

end

doTeleportThing(cid, fromPosition, true)

doPlayerPopupFYI(cid,"Desculpe,Camelôs Apenas Para Jogadores Vips")

return TRUE

end

notle2012N
18 de agosto de 2012 às 03:58

vip

function onStepIn(cid, item, pos)
-- teleports config
teleport1 ={x=, y=, z=} -- edita
if isPlayer(cid) then
if item.actionid == 19999 then
vip = getPlayerStorageValue(cid,19999)
if vip == -1 then
doPlayerSendCancel(cid,"Desculpe,Camelôs Apenas Para Jogadores Vips.")
doTeleportThing(cid,teleport1)
else
end
end
end
end

vip2

function onStepIn(cid, item, position, fromPosition)
local tileConfig = {
kickPos = fromPosition,
kickEffect = CONST_ME_POFF,
kickMsg = "Desculpe,Camelôs Apenas Para Jogadores Vips.",
enterMsg = "Bem-vindo à área vip!",
enterEffect = CONST_ME_MAGIC_BLUE,
vipStorage = 19999,
}
if(getPlayerStorageValue(cid, tileConfig.vipStorage) <= 0) then
doTeleportThing(cid, tileConfig.kickPos)
doSendMagicEffect(tileConfig.kickPos, tileConfig.kickEffect)
doPlayerSendCancel(cid, tileConfig.kickMsg)
return
end
doPlayerSendTextMessage(cid, 25, tileConfig.enterMsg)
doSendMagicEffect(position, tileConfig.enterEffect)
return true
end

 

 

<movevent event="StepIn" actionid="19999" script="vip.lua" />
<movevent type="StepIn" actionid="20000" event="script" value="vip2.lua"/>


actionid="20000" coloca no chao com map editor

Editado Agosto 18 por notle2012

SkyLighS
18 de agosto de 2012 às 14:44

Criei um de 2 maneira oq você escolhe pra onde vai

 

e um que vai pra traís

 

primeiro oq vai pra traís

 

function onStepIn(cid, item, position, fromPosition)

if getPlayerStorageValue(cid, 13545) - os.time() <= 0 then
doTeleportThing(cid, fromPosition, true)
doPlayerSendTextMessage(cid, 22 ,"Bem Vindo A Area Vip")
else
doPlayerSendTextMessage(cid, 22 ,"Desculpe Camelo Voce Nao E Vip ")
end
return true
end

 

segundo oq voce escolhe a pos

 

function onStepIn(cid, item, position)

local pos = {x=160,y=54,z=7} -- pos para onde vai teleporta

if getPlayerStorageValue(cid, 13545) - os.time() <= 0 then
doTeleportThing(cid, pos, true)
doPlayerSendTextMessage(cid, 22 ,"Bem Vindo A Area Vip")
else
doPlayerSendTextMessage(cid, 22 ,"Desculpe Camelo Voce Nao E Vip ")
end
return true
end

 

agora no movements.xml

 

<movevent event="StepIn" actionid=STORAGE DA VIP" script="NOME DO ARQUIVO.lua" />

TeteuziiNT
18 de agosto de 2012 às 16:30

Nenhum Deu tem que ser por akele meu script se consegurem

SkyLighS
18 de agosto de 2012 às 16:43

Ok !

 

function onStepIn(cid, item, position, fromPosition)
local config = {

}
if(isInArray({5, 6, 7, 8}, getPlayerVocation(cid))) then
return TRUE
end
if getPlayerStorageValue(cid, 13545) - os.time() <= 0 then
doTeleportThing(cid, fromPosition, true)doPlayerPopupFYI(cid,"Desculpe,Camelôs Apenas Para Jogadores Vips")
return TRUE
end
end

Editado Agosto 18 por SkyLigh

TeteuziiNT
18 de agosto de 2012 às 16:57

Sim esse mesmo mas presizo q quando o player que nao for vip passar por sima dele ele é teleportado para tal lugar

SkyLighS
18 de agosto de 2012 às 17:16

ata

 

function onStepIn(cid, item, position, fromPosition)
local config = {
pos = {x=160,y=54,z=7} -- position
}
if(isInArray({5, 6, 7, 8}, getPlayerVocation(cid))) then
return TRUE
end
if getPlayerStorageValue(cid, 13545) - os.time() <= 0 then
doTeleportThing(cid, config.pos)
doPlayerPopupFYI(cid,"Desculpe,Camelôs Apenas Para Jogadores Vips")
return TRUE
end
end

TeteuziiNT
18 de agosto de 2012 às 17:45

Não deu,Me Manda um sem Isso -->if getPlayerStorageValue(cid, 13545) - os.time() <= 0 then<---

SkyLighS
18 de agosto de 2012 às 17:47

Não deu,Me Manda um sem Isso -->if getPlayerStorageValue(cid,13545)- os.time()<=0then<---

 

Teteu essa function e que vai detectar se ele e vip ou nao pra o script funcionar ali aonde ta 13545 voce vai tenque por a storage da vip que vai ser em numeros os memos numeros que voce por ali vai por no movements.xml e vai por no tille

TeteuziiNT
18 de agosto de 2012 às 17:53

Agora eu Consegui,Valew \ii rep mais

Editado Agosto 18 por TeteuziiN

SkyLighS
18 de agosto de 2012 às 17:57

duvida sanada reportado