Ir para conteúdo
Banner com Efeitos

Featured Replies

Postado

Bom dia, Boa Tarde e Boa Noite a todos

 

eu jogo meu ot da versão 11.49 e fui tentar criar um monstro com o comando "/m" e disse isso:
"/m dragon"  parece que o comando não executou, tentei de varias formas, com letra maiúsculas, minúsculas, e no fim não funcionou.

Ignorei o problema e logo depois fui testar o comando de criar itens "/i" e disse isso:

"/i spellbook" ou "i 2456" (EXEMPLO DE UM ID) e o comando também não executou, alguem poderia me ajudar a entender o por que não funciona os comandos??

(OBS: quando eu aperto enter para mandar o comando, não aparece nada no chat, geralmente quando você escreve algo errado aparece algumas mensagens, mas não sei o por que, o meu NÃO executa esse comando e nem aparece nada no chat)

 

Já testei os comandos em outros ot's e funcionou de boa.
(Já fui também ver no TalkAction, qual comando era) vou colocar o script para vocês:

 

 

PLACE_MONSTER.XML

 

 

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

	if player:getAccountType() < ACCOUNT_TYPE_GOD then
		return false
	end

	local position = player:getPosition()
	local monster = Game.createMonster(param, position)
	if monster ~= nil then
		monster:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
		position:sendMagicEffect(CONST_ME_MAGIC_RED)
	else
		player:sendCancelMessage("There is not enough room.")
		position:sendMagicEffect(CONST_ME_POFF)
	end
	return false
end

 

 

CREATE_ITEM.XML

 

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

	if player:getAccountType() < ACCOUNT_TYPE_GOD then
		return false
	end

	local split = param:split(",")

	local itemType = ItemType(split[1])
	if itemType:getId() == 0 then
		itemType = ItemType(tonumber(split[1]))
		if itemType:getId() == 0 then
			player:sendCancelMessage("There is no item with that id or name.")
			return false
		end
	end

	local count = tonumber(split[2])
	if count ~= nil then
		if itemType:isStackable() then
			count = math.min(10000, math.max(1, count))
		elseif not itemType:isFluidContainer()  then
			count = math.min(100, math.max(1, count))
		else
			count = math.max(0, count)
		end
	else
		count = itemType:isFluidContainer() and 0 or 1
	end

	local result = player:addItem(itemType:getId(), count)
	if result ~= nil then
		if not itemType:isStackable() then
			if type(result) == "table" then
				for i = 1, #result do
					result[i]:decay()
				end
			else
				result:decay()
			end
		end
		player:getPosition():sendMagicEffect(CONST_ME_MAGIC_GREEN)
	end
	return false
end

 

TALKACTIONS.XML

 

<?xml version="1.0" encoding="UTF-8"?>
<talkactions>
	<!-- Gods -->
	<talkaction words="/addskill" separator=" " script="add_skill.lua" />
	<talkaction words="/r" separator=" " script="removething.lua" />
	<talkaction words="/chameleon" separator=" " script="chameleon.lua" />
	<talkaction words="/clean" script="clean.lua" />
	<talkaction words="/closeserver" separator=" " script="closeserver.lua" />
	<talkaction words="/save" separator=" " script="save.lua" />
	<talkaction words="/i" separator=" " script="create_item.lua" /> <!-- ESSE É O COMANDO QUE APARENTEMENTE NÃO FUNCIONA-->
	<talkaction words="/ghost" script="ghost.lua" />
	<talkaction words="/hide" script="hide.lua" />
	<talkaction words="/mccheck" script="mccheck.lua" />
	<talkaction words="/openserver" script="openserver.lua" />
	<talkaction words="/reload" separator=" " script="reload.lua" />
	<talkaction words="/raid" separator=" " script="force_raid.lua" />
	<talkaction words="/owner" separator=" " script="owner.lua" />
	<talkaction words="/m" separator=" " script="place_monster.lua" /> <!-- ESSE É O OUTRO COMANDO QUE APARENTEMENTE NÃO FUNCIONA TAMBÉM-->
	<talkaction words="/s" separator=" " script="place_npc.lua" />
	<talkaction words="/summon" separator=" " script="place_summon.lua" />
	<talkaction words="/addach" separator=" " script="achievements.lua" />
	<talkaction words="/removeach" separator=" " script="achievements.lua" />
	<talkaction words="/set" separator=" " script="setstorage.lua" />
	<talkaction words="/get" separator=" " script="getstorage.lua" />
	<talkaction words="/reportadm" separator=" " script="reportadm.lua"/>
	<talkaction words="/addgm" separator=" " script="add_gm.lua" />
	<talkaction words="/attr" separator=" " script="attributes.lua" />
	<talkaction words="/addon" separator=" " script="addon.lua" />

	<!-- Gamemasters -->
	<talkaction words="/ban" separator=" " script="ban.lua" />
	<talkaction words="/ipban" separator=" " script="ipban.lua" />
	<talkaction words="/unban" separator=" " script="unban.lua" />
	<talkaction words="/up" script="up.lua" />
	<talkaction words="/down" script="down.lua" />
	<talkaction words="/c" separator=" " script="teleport_creature_here.lua" />
	<talkaction words="/goto" separator=" " script="teleport_to_creature.lua" />
	<talkaction words="/gotopos" separator=" " script="teleport_to_pos.lua" />
	<talkaction words="/t" script="teleport_home.lua" />
	<talkaction words="/town" separator=" " script="teleport_to_town.lua" />
	<talkaction words="/a" separator=" " script="teleport_ntiles.lua" />
	<talkaction words="/pos" separator=" " script="position.lua" />
	<talkaction words="/info" separator=" " script="info.lua" />
	<talkaction words="/kick" separator=" " script="kick.lua" />
	<talkaction words="/B" separator=" " script="broadcast.lua" />
	<talkaction words="/looktype" separator=" " script="looktype.lua" />
	<talkaction words="/mute" script="mute.lua" />

	<!-- Senior Tutors -->
	<talkaction words="/addtutor" separator=" " script="add_tutor.lua" />
	<talkaction words="/removetutor" separator=" " script="remove_tutor.lua" />

	<!--Tutors -->
	<talkaction words="/mute" separator=" " script="mute.lua" />

	<!-- player talkactions -->
	<talkaction words="!buyhouse" script="buyhouse.lua" />
	<talkaction words="!leavehouse" script="leavehouse.lua" />
	<talkaction words="!sellhouse" separator=" " script="sellhouse.lua" />
	<talkaction words="!uptime" script="uptime.lua" />
	<talkaction words="!online" script="online.lua" />
	<talkaction words="!serverinfo" script="serverinfo.lua" />
	<talkaction words="!report" separator=" " script="adminreport.lua"/>

	<!-- Cast System -->
	<talkaction words="!cast" separator=" " script="start_cast.lua" />
	<talkaction words="!stopcast" script="stop_cast.lua" />
	<talkaction words="!spectators" script="spectators.lua" />
</talkactions>
Postado
  • Autor
18 horas atrás, Sekk disse:

vai na tabela accounts da database, e na conta do god, coloca type 5(acho q eh 5)

Valeu!! Funcionou! +REP

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.

Conteúdo Similar

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo