Tile rejeitar chars com (',-") no nome

Thiach
Por Thiach
em Scripts

Thiach

avatar
Artesão
Artesão

INFOS

Grupo: ArtesãoRegistrado: 17/06/06Posts: 144

Opa, alguem poderia me ajudar com um movement?

 

Queria um script para ao passar no tile, rejeitar todos os players que tiverem algum character especial no nome como (',-) , ao pisar no tile, se tiver com isso no nome, teleportar pro templo, eu tinha esse script mais perdi ele, preciso muito!

 

Dou rep+ ae, fico no aguardo de alguma luz, vlw!

 

 

Omega

o/
avatar
Marquês
Marquês

INFOS

Grupo: MarquêsRegistrado: 17/06/07Posts: 1165Gênero: MasculinoChar no Tibia: Nenhum
function onStepIn(cid, item, position, lastPosition, fromPosition)
	local check = {',', ';', '-',}
	local pname = getCreatureName(cid)
	for _, spchar in pairs(check) do
		if string.find(pname, spchar) then
			doTeleportThing(cid, fromPosition)
			break
		end
	end
	return true
end

TAG movements.xml

<movevent type="StepIn" actionid="ACTIONID" script="ARQUIVO.lua"/>

Testei em 8.6... cara, posso te perguntar qual é a utilidade disso pra você? Fiquei curioso aqui =P

SkyDarkyes

avatar
Infante
Infante

INFOS

Grupo: InfanteRegistrado: 28/01/13Posts: 1685Gênero: Masculino

Eu tambem,tou muito curioso rsrsrs

48EnrrM.png

 

Thiach

avatar
Artesão
Artesão

INFOS

Grupo: ArtesãoRegistrado: 17/06/06Posts: 144

kkkkk , vlw vou testar aqui..

 

Sobre a utilidade é simples, tenho um server de war e vou implantar o evento defend the king nele, mais nesse evento, quem tiver char com (') no nome buga o evento, por isso o tile :)

 

Irei testar aqui, muito obrigado!

 

 

SkyDarkyes

avatar
Infante
Infante

INFOS

Grupo: InfanteRegistrado: 28/01/13Posts: 1685Gênero: Masculino

Ah tendi rsrsrs,muito bem pensado xD

48EnrrM.png