Postado Maio 8, 2015 10 anos VIPSISTEMA.LUA > DA PASTA MOVIMENTS function onStepIn(cid, item, position, fromPosition) timenow = os.time() quantity = math.floor((getPlayerStorageValue(cid,13500) - timenow)/(3600*24)) if isPlayer(cid) then if quantity > 0 then doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Você ainda tem ".. quantity .." dia(s) restante(s) de VIP.") else dir = getPlayerLookDir(cid) pos = getCreaturePosition(cid) if dir == 0 then newpos = {x=pos.x, y=pos.y+1, z=pos.z} elseif dir == 2 then newpos = {x=pos.x, y=pos.y-1, z=pos.z} elseif dir == 1 then newpos = {x=pos.x-1, y=pos.y, z=pos.z} elseif dir == 3 then newpos = {x=pos.x+1, y=pos.y, z=pos.z} end doTeleportThing(cid, newpos, dir) doSendMagicEffect(position, CONST_ME_MAGIC_BLUE) doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Somente jogadores VIPs podem entrar nesta área.") end end end O ERRO É OI SEGUINTE QUANDO O PLAYER VAI RETO NA TILE OOU ACTION DO PPISO PRA ENTRA NA AREA VIP ELE VOLTA PRA TRAZ E DIZ Q PRECISA SER VIP PRA ENTRA LA , ATÉ AI TA TUDO CERTO MAIS QUANDO O PLAYER VAI EM DIAGONAL EM CIMA DA TILE OU ACITON DO PISO PRA ENTRA NA VIP ELE VAI PRO LADO E N PRA TRAZ DIZENDO QUE ELE N É VIP , O ERRO É ESSE ALGUEM SABE RESOLVER.
Postado Maio 8, 2015 10 anos ai tem esse topico muito bom! de uma olhada http://www.tibiaking.com/forum/topic/50254-area-vip/ site acesse:http://rexwar.esy.es se te ajudei mi ajude com um like canal do youtube:https://www.youtube.com/channel/ blog:http://yakinhotutoriais.blogspot.com.br/ site acesse:http://rexwar.esy.es 0 comentários:
Postado Maio 8, 2015 10 anos Autor ai tem esse topico muito bom! de uma olhada http://www.tibiaking.com/forum/topic/50254-area-vip/ VLW PELA AJUDA MAIS N É ISSO ALI NÃO O MEU SCRIPT É DIFERENT.
Postado Maio 8, 2015 10 anos function onStepIn(cid, item, position, fromPosition) timenow = os.time() quantity = math.floor((getPlayerStorageValue(cid,13500) - timenow)/(3600*24)) if isPlayer(cid) then if quantity > 0 then doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Você ainda tem ".. quantity .." dia(s) restante(s) de VIP.") else dir = getPlayerLookDir(cid) pos = getCreaturePosition(cid) if dir == 0 then newpos = {x=pos.x, y=pos.y+1, z=pos.z} elseif dir == 2 then newpos = {x=pos.x, y=pos.y-1, z=pos.z} elseif dir == 1 then newpos = {x=pos.x-1, y=pos.y, z=pos.z} elseif dir == 3 then newpos = {x=pos.x+1, y=pos.y, z=pos.z} end doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) doSendMagicEffect(position, CONST_ME_MAGIC_BLUE) doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Somente jogadores VIPs podem entrar nesta área.") end end end _ .-'` `} _./) / } .'o \ | } '.___.'`.\ {` /`\_/ , `. } ME DA UMA NOZ! \=' .-' _`\ { `'`;/ `, } _\ @ ; } /__`;-...'--' Cluck!
Postado Maio 9, 2015 10 anos Autor function onStepIn(cid, item, position, fromPosition) timenow = os.time() quantity = math.floor((getPlayerStorageValue(cid,13500) - timenow)/(3600*24)) if isPlayer(cid) then if quantity > 0 then doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Você ainda tem ".. quantity .." dia(s) restante(s) de VIP.") else dir = getPlayerLookDir(cid) pos = getCreaturePosition(cid) if dir == 0 then newpos = {x=pos.x, y=pos.y+1, z=pos.z} elseif dir == 2 then newpos = {x=pos.x, y=pos.y-1, z=pos.z} elseif dir == 1 then newpos = {x=pos.x-1, y=pos.y, z=pos.z} elseif dir == 3 then newpos = {x=pos.x+1, y=pos.y, z=pos.z} end doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) doSendMagicEffect(position, CONST_ME_MAGIC_BLUE) doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Somente jogadores VIPs podem entrar nesta área.") end end end MAIS ISSO QUANDO ALGUEM N TIVER AQUELA STORAG VAI SER TELEPORTADO PRO TEMPLO ,MAIS EU QUERIA QUE SO VOLTA-SE PRA TRAZ.
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.