Aprovado
- Forums
- OTServ
- Recursos
- Scripting
- Actions e Talkactions
- Tile Morador de cidade com 11 town o melhor!
L3
Tile Morador de cidade com 11 town o melhor!
By L3K0T, 12 de jun. de 2015 in Actions e Talkactions
tile town
tibia
otserv
4
1.2k
info
Group: Marquês
Joined: 24/12/09
Posts: 1k
Reputation: +326
Gender: Masculino
Tibia Character: Necromanser

12 de junho de 2015 às 20:25
info
Group: Herói
Joined: 20/05/10
Posts: 3.4k
Reputation: +1.5k
Gender: Masculino

15 de junho de 2015 às 09:20
obg por trazer conteúdo, só uma dica, poderia encurtar seu código usando tabela, exemplo:
local t = {
[4036] = {town = 1, name = "Saffron"},
[4037] = {town = 2, name = "Cerulean"},
[4038] = {town = 3, name = "Cidade 3"},
}
function onStepIn(cid, item, pos)
if not isPlayer(cid) then return true end
if t[item.actionid] then
doSendMagicEffect(getPlayerPosition(cid), 14)
doPlayerSendTextMessage(cid,24,"Você virou morador de "..t[item.actionid].name..".")
doPlayerSetTown(cid, t[item.actionid].town)
doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
end
return true
end
1 month later...
info
Group: Infante
Joined: 13/10/08
Posts: 1.6k
Reputation: +420
Tibia Character: Demonbholder

09 de julho de 2015 às 11:18
Isso era pra estar na seção de movements, não de tutoriais.
É um código específico que você ensinou a configurar...



info
Group: Visconde
Joined: 02/01/14
Posts: 304
Reputation: +149
Gender: Outro
Tibia Character: Psy Skyline
CONTEÚDO REMOVIDO: AGORA VOCÊ VAI TER QUE TER CRIATIVIDADE OU SE PENDURAR-SE NAS COSTA DE ALGUÉM, MENOS NA MINHA
- BOA SORTE!
error 404 - I do not serve the forum I retired.Edited Setembro 29 by L3K0T