Postado Março 13, 2017 8 anos Alguem sabe um script de teleport, vc entra nele e depois só pode entra denovo depois de 24horas
Postado Março 13, 2017 8 anos function onStepIn(cid, item, position, fromPosition) local s = 19001 -- storage, n mexa local t = 1 * 24 * 60 * 60 * 1000 -- tempo em horas pra entrar no tp dnv local o = os.time() local h = -- escreve aqui o nome do local pra mandar a mensagem de boas vindas ao player local pos = getCreaturePosition(cid) if getPlayerStorageValue(cid, s) > 0 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You can enter again in "..s.." hours.") doTeleportThing(cid, fromPosition) doSendMagicEffect(pos, CONST_ME_POFF) else setPlayerStorageValue(cid, s, o + t) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Welcome to "..h.."!") doSendMagicEffect(pos, CONST_ME_MAGIC_BLUE) end return true end <movevent type="StepIn" actionid="19544" event="script" value="extile.lua" /> GitHub: https://github.com/s3kk Conteúdo: [SERVER] Heromassa[GESIOR] Gesior 2012 modificado por Sekk[GESIOR] Shop Addons & Mounts - TFS 1.x[GESIOR] Outfitter para Characters e Rank[SISTEMA] Castle 24h[TALKACTION] Multi Element Wand[ACTION] Multi Elemental Arrow & Shield[PROGRAMAÇÃO] Compilar TFS 0.4 no Linux[PROGRAMAÇÃO] Compilando TFS 0.4 no MSVC(x64 e x32) [INFRAESTRUTURA] Configuração COMPLETA Google VM + Tibia 11.x
Postado Março 13, 2017 8 anos function onStepIn(cid, item, position, fromPosition) local s = 19001 -- storage, n mexa local t = 1 * 24 * 60 * 60 * 1000 -- tempo em horas pra entrar no tp dnv local o = os.time() local h = 'essa porra' -- escreve aqui o nome do local pra mandar a mensagem de boas vindas ao player local pos = getCreaturePosition(cid) if getPlayerStorageValue(cid, s) > 0 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You can enter again in "..s.." hours.") doTeleportThing(cid, fromPosition) doSendMagicEffect(pos, CONST_ME_POFF) else setPlayerStorageValue(cid, s, o + t) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Welcome to "..h.."!") doSendMagicEffect(pos, CONST_ME_MAGIC_BLUE) end return true end Mano tu tem que por o h ali onde tá escrito sem tira as aspa igual o cara comento pra ti kkkkkkkkk Life is so meaningless, there is nothing worth a smile So goodbye, I'll miss you sugestões?
Postado Março 13, 2017 8 anos 4 horas atrás, rogaforyn2 disse: function onStepIn(cid, item, position, fromPosition) local s = 19001 -- storage, n mexa local t = 1 * 24 * 60 * 60 * 1000 -- tempo em horas pra entrar no tp dnv local o = os.time() local h = 'essa porra' -- escreve aqui o nome do local pra mandar a mensagem de boas vindas ao player local pos = getCreaturePosition(cid) if getPlayerStorageValue(cid, s) > 0 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You can enter again in "..s.." hours.") doTeleportThing(cid, fromPosition) doSendMagicEffect(pos, CONST_ME_POFF) else setPlayerStorageValue(cid, s, o + t) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Welcome to "..h.."!") doSendMagicEffect(pos, CONST_ME_MAGIC_BLUE) end return true end Mano tu tem que por o h ali onde tá escrito sem tira as aspa igual o cara comento pra ti kkkkkkkkk e eu tinha esquecido das aspas uahsuahsa testei o meu script aqui, ele n ta teleportando pro fromPosition se o cara ta com a storage == 1 kct GitHub: https://github.com/s3kk Conteúdo: [SERVER] Heromassa[GESIOR] Gesior 2012 modificado por Sekk[GESIOR] Shop Addons & Mounts - TFS 1.x[GESIOR] Outfitter para Characters e Rank[SISTEMA] Castle 24h[TALKACTION] Multi Element Wand[ACTION] Multi Elemental Arrow & Shield[PROGRAMAÇÃO] Compilar TFS 0.4 no Linux[PROGRAMAÇÃO] Compilando TFS 0.4 no MSVC(x64 e x32) [INFRAESTRUTURA] Configuração COMPLETA Google VM + Tibia 11.x
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.