Ir para conteúdo

Featured Replies

Postado

Ola ,boa noite.

Então estou tentando usar os novos look do 10.90 -.

Porem quando tento mexer no script da esse erro.

Spoiler

568c526c08a95_errolook.jpg.cf98b13b65b84

Mais so quando troco o script o script original funciona normal.

esse é o script original que funciona até o look 595.

function onSay(cid, words, param)
	local player = Player(cid)
	if not player:getGroup():getAccess() then
		return true
	end

	local lookType = tonumber(param)
	if lookType >= 0 and lookType ~= 1 and lookType ~= 135 and lookType ~= 411 and lookType ~= 415 and lookType ~= 424 and (lookType <= 160 or lookType >= 192) and lookType ~= 439 and lookType ~= 440 and lookType ~= 468 and lookType ~= 469 and (lookType < 474 or lookType > 485) and lookType ~= 501 and lookType ~= 518 and lookType ~= 519 and lookType ~= 520 and lookType ~= 524 and lookType ~= 525 and lookType ~= 536 and lookType ~= 543 and lookType ~= 549 and lookType ~= 576 and lookType ~= 581 and lookType ~= 582 and lookType <= 595 then
		local playerOutfit = player:getOutfit()
		playerOutfit.lookType = lookType
		player:setOutfit(playerOutfit)
	else
		player:sendCancelMessage("A look type with that id does not exist.")
	end
	return false
end

E esse oque estou tentando usar que da o erro.

function onSay(player, words, param)
     if not player:getGroup():getAccess() then
         return true
     end

     local lookType = tonumber(param)
     if not lookType then
         lookType = MonsterType(param) and MonsterType(param):getOutfit().lookType
         if not lookType then
             player:sendCancelMessage("A monster with that name does not exist.")
             return false
         end
     end
     if lookType >= 0 and lookType ~= 1 and lookType ~= 135 and lookType ~= 411 and lookType ~= 415 and lookType ~= 424 and (lookType <= 160 or lookType >= 192) and lookType ~= 439 and lookType ~= 440 and lookType ~= 468 and lookType ~= 469 and (lookType < 474 or lookType > 485) and lookType ~= 501 and lookType ~= 518 and lookType ~= 519 and lookType ~= 520 and lookType ~= 524 and lookType ~= 525 and lookType ~= 536 and lookType ~= 543 and lookType ~= 549 and lookType ~= 576 and lookType ~= 581 and lookType ~= 582 and lookType ~= 597 and lookType ~= 598 and lookType ~= 599 and lookType ~= 600 and lookType ~= 616 and lookType ~= 623 and lookType ~= 625 and lookType ~= 636 and lookType ~= 637 and lookType ~= 638 and lookType ~= 639 and lookType ~= 640 and lookType ~= 641 and lookType ~= 642 and lookType ~= 643 and lookType ~= 645 and lookType ~= 646 and lookType ~= 652 and lookType ~= 653 and lookType ~= 654 and lookType ~= 655 and lookType ~= 656 and lookType ~= 657 and lookType ~= 658 and lookType ~= 659 and lookType ~= 660 and lookType ~= 661 and lookType ~= 662 and lookType ~= 663 and lookType ~= 678  and lookType ~= 700 and lookType <= 701 then
         local playerOutfit = player:getOutfit()
         playerOutfit.lookType = lookType
         player:setOutfit(playerOutfit)
     else
         player:sendCancelMessage("A look type with that id does not exist.")
     end
     return false
end

Tenho que adicionar em mais algum lugar ,alguém poderia dar uma luz do que poderia ser.

 

 

Editado por sirarcken (veja o histórico de edições)

Postado
function onSay(cid, words, param)
	local player = Player(cid)
	if not player:getGroup():getAccess() then
		return true
	end
	
	local lookType = tonumber(param)
	if not lookType then
		lookType = MonsterType(param) and MonsterType(param):getOutfit().lookType
		if not lookType then
			player:sendCancelMessage("A monster with that name does not exist.")
			return false
		end
	end

	if lookType >= 0 and lookType ~= 1 and lookType ~= 135 and lookType ~= 411 and lookType ~= 415 and lookType ~= 424 and (lookType <= 160 or lookType >= 192) and lookType ~= 439 and lookType ~= 440 and lookType ~= 468 and lookType ~= 469 and (lookType < 474 or lookType > 485) and lookType ~= 501 and lookType ~= 518 and lookType ~= 519 and lookType ~= 520 and lookType ~= 524 and lookType ~= 525 and lookType ~= 536 and lookType ~= 543 and lookType ~= 549 and lookType ~= 576 and lookType ~= 581 and lookType ~= 582 and lookType ~= 597 and lookType ~= 598 and lookType ~= 599 and lookType ~= 600 and lookType ~= 616 and lookType ~= 623 and lookType ~= 625 and lookType ~= 636 and lookType ~= 637 and lookType ~= 638 and lookType ~= 639 and lookType ~= 640 and lookType ~= 641 and lookType ~= 642 and lookType ~= 643 and lookType ~= 645 and lookType ~= 646 and lookType ~= 652 and lookType ~= 653 and lookType ~= 654 and lookType ~= 655 and lookType ~= 656 and lookType ~= 657 and lookType ~= 658 and lookType ~= 659 and lookType ~= 660 and lookType ~= 661 and lookType ~= 662 and lookType ~= 663 and lookType ~= 678  and lookType ~= 700 and lookType <= 701 then
		local playerOutfit = player:getOutfit()
		playerOutfit.lookType = lookType
		player:setOutfit(playerOutfit)
	else
		player:sendCancelMessage("A look type with that id does not exist.")
	end
	return false
end

 

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.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo