[ Entregue ] Bah Será?

DevilMoon
em Lixeira Pública

DevilMoon

@leonartei
avatar
Conde
Conde

INFOS

Grupo: CondeRegistrado: 30/01/10Posts: 706Gênero: MasculinoChar no Tibia: Bakwin

ai queria uma Talkactions mt foda :D que o player falava !newoutfit e o numero do look type .. bom queria todos menos o 287 e o outfit de God e Gm e Cm so esses e o resto poderia botar eu tava tentando fazer e axo que eu fiz ate a metade ahshaushua e nao sei se ta certo D:

 

 

function onSay(cid, words, param)

if(words == "!newoutfit") then

if(doPlayerRemoveMoney(cid, ,50000) == TRUE) then

doPlayerAddOutfit(cid, 300,1)

else

doPlayerSendCancel(cid, "Você não tem o dinheiro suficiente.")

return TRUE

end

 

end

end

Contato: DevilMoon@Xtibia.com

kkk111

LOL?
avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 29/08/07Posts: 27

Aqui está...

 

function onSay(cid, words, param, channel)
if(param == '') then
	doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires param.")
	return true
end

local t = string.explode(param, ",")
t[1] = tonumber(t[1])
if(not t[1]) then
	doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires numeric param.")
	return true
end

local pid = cid
if(t[2]) then
	pid = getPlayerByNameWildcard(t[2])
	if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. t[2] .. " not found.")
		return true
	end
end

if(t[1] <= 1 or t[1] == 135 or (t[1] > 160 and t[1] < 192) or t[1] > 351) then
	doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Such outfit does not exist.")
	return true
end
if(t[1] == 287 or t[1] == 75 or t[1] == 266 or t[1] == 302) then
	doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "That outfit is not allowed.")
	return true
end

local tmp = getCreatureOutfit(pid)
tmp.lookType = t[1]

money = 50000
if(doPlayerRemoveMoney(cid, money) == true) then
	doCreatureChangeOutfit(pid, tmp)
else
	doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You do not have enough money. ("..money..")")
end
return true
end

 

<talkaction words="!outfit" event="script" value="outfit.lua"/>

É por isso que eu gosto de ajudar (pelo menos tentar ajudar) este fórum, os caras sabe Agradecer né?

 

 

Att,

PẫulǾ

paulo.boc@hotmail.com