Ir para conteúdo

Command Sem A Pasta Talkactions :s


grilloko

Posts Recomendados

Fala XTibianos, to precisando de uma mãozinha aqui no meu OT de NaruTibia.



 

É assim, meu OT está sem um comando muito importante "/r" sem ele sempre que faço algum NPC tenho que reinicia-lo :S

 

Já procurei Tópicos com esse tipo de pergunta mas não achei, é assim meu OT só tem duas coisinhas o commands.xml e a pasta Action.

Os comandos do commands.xml é tais:

 

 

 

<?xml version="1.0"?>

 

<commands>

 

-- Gods

<command cmd="/reload" access="5" /> -- Reload configurations

<command cmd="/s" access="5" /> -- Summon a NPC

<command cmd="/openserver" access="5" /> -- Open server

<command cmd="/closeserver" access="5" /> -- Close server

<command cmd="/owner" access="5" /> -- Set a player to house owner -- Check effects

<command cmd="/makesay" access="5" /> -- Check effects

<command cmd="/kagemane_velo" access="5" /> -- Speed Kagemane

<command cmd="/2xyzl47" access="5" /> -- Check effects

<command cmd="/shutdown" access="5" /> -- Shutdown the Server

<command cmd="/i" access="5" /> -- Create a item by ID

<command cmd="/n" access="5" /> -- Create a item by name

<command cmd="/pvp" access="5" /> -- Change world type

<command cmd="/addon" access="5" /> -- Teleport a player

<command cmd="/ban" access="5" /> -- Ban a player

<command cmd="/kuchyose2" access="5" /> -- Check effects

 

-- Senior Gamemasters

<command cmd="/m" access="4" /> -- Summon a "wild" monster

<command cmd="/info" access="4" /> -- Info about a player

<command cmd="/z" access="4" /> -- Check effects

 

-- Gamemasters

<command cmd="/b" access="3" /> -- IP BAN a player

<command cmd="/t" access="3" /> -- Teleport to your temple

<command cmd="/gethouse" access="3" /> -- Info about house of a player

<command cmd="/bans" access="3" /> -- Info about who are banished

<command cmd="/town" access="3" /> -- Go to your town

<command cmd="/save" access="3" /> -- Cast Server save

<command cmd="/invisible" access="2" /> -- Info about house of a player

<command cmd="/promote" access="3" /> -- Promote a player

<command cmd="/up" access="3" /> -- Teleport a floor up

<command cmd="/bc" access="1" /> -- Broadcast to players in colors

<command cmd="/down" access="3" /> -- Teleport a floor down

<command cmd="/raid" access="3" /> -- Execute a raid

<command cmd="/premium" access="3" /> -- Give someone a premium account

<command cmd="/a" access="3" /> -- Teleport by SQMs

<command cmd="/kick" access="3" /> -- Kick a player

<command cmd="/exiva" access="3" /> -- Find a player

<command cmd="/goto" access="3" /> -- Teleport to players, creatures or NPCs

<command cmd="/c" access="3" /> -- Teleport a player

 

 

-- Senior Tutors

<command cmd="/max" access="2" />

<command cmd="/q" access="2" /> -- Check your money

<command cmd="/pos" access="2" />

<command cmd="/clean" access="2" />

 

-- Tutors --

<command cmd="/B" access="1" /> -- Broacast message

<command cmd="/getonline" access="1" /> -- Info about how many players are online

<command cmd="/check" access="1" /> -- Check all Multiclienting players

<command cmd="/send" access="1" /> -- Send a player to a decent position

 

-- Players

<command cmd="!report" access="0" /> -- report a bug to the Hoster

<command cmd="!uptime" access="0" /> -- Shows the server's uptime

<command cmd="!frags" access="0" /> -- Shows how many frags the player has

<command cmd="!sellhouse" access="0" /> -- Sell your house to a player

<command cmd="!buyhouse" access="0" /> -- Buy a house

<command cmd="!leavehouse" access="0" /> -- Leave a house

<command cmd="!exp" access="0" /> -- Show how many exp you need until the next level

<command cmd="!mana" access="0" /> -- Show how mana you need to spent until the next magic level

<command cmd="!online" access="0" /> -- Shows the amount of online players

</commands>

 

 

 

OBS: E o mais estranho é que não tem nenhum suporte .lua, é como se não precisasse de uma Script entendem? :S

 

OBS²: Quando abro o OT com o HexEditor eu posso editar como esses commandos são feitos por exemplo, devez ser /i pode ser /p, mas não tem nada sobre o script do comando :S

 

É isso ai eu preciso de um comando /r para NaruTibia, não sei se tem como fazer, mas se tiver ajudem porfavor...

Link para o comentário
Compartilhar em outros sites

Não entendi muito bem, você quer um comando de remover coisas? Se for está ai:

 

Vá na pasta do seu ot /data/talkactions

 

Em talkactions.xml adicione a seguinte linha:

	<talkaction log="yes" words="/r" access="4" event="script" value="remove.lua"/>

 

Agora entre na pasta /data/talkactions/scripts

Copie um arquivo .lua qualquer e renomeie para remove.lua, entre dentro dele delete tudo e coloque isso:

 

function onSay(cid, words, param, channel)
local toPos = getCreatureLookPosition(cid)
if(isInArray({"full", "all"}, param:lower())) then
	doCleanTile(toPos, false)
	doSendMagicEffect(toPos, CONST_ME_MAGIC_RED)
	return true
end

local amount = 1
param = tonumber(param)
if(param) then
	amount = param
end

toPos.stackpos = STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE
local tmp = getThingFromPos(toPos)
if(tmp.uid ~= 0) then
	if(isCreature(tmp.uid)) then
		doRemoveCreature(tmp.uid)
	else
		doRemoveItem(tmp.uid, math.min(math.max(1, tmp.type), amount))
	end

	doSendMagicEffect(toPos, CONST_ME_MAGIC_RED)
	return true
end

toPos.stackpos = STACKPOS_TOP_FIELD
tmp = getThingFromPos(toPos)
if(tmp.uid ~= 0) then
	doRemoveItem(tmp.uid, math.min(math.max(1, tmp.type), amount))
	doSendMagicEffect(toPos, CONST_ME_MAGIC_RED)
	return true
end

toPos.stackpos = STACKPOS_TOP_CREATURE
tmp = getThingFromPos(toPos)
if(tmp.uid ~= 0) then
	doRemoveCreature(tmp.uid)
	doSendMagicEffect(toPos, CONST_ME_MAGIC_RED)
	return true
end

for i = 5, 1, -1 do
	toPos.stackpos = i
	tmp = getThingFromPos(toPos)
	if(tmp.uid ~= 0) then
		if(isCreature(tmp.uid)) then
			doRemoveCreature(tmp.uid)
		else
			doRemoveItem(tmp.uid, math.min(math.max(1, tmp.type), amount))
		end

		doSendMagicEffect(toPos, CONST_ME_MAGIC_RED)
		return true
	end
end

doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
return true
end

 

Espero ter ajudado!!

Se ajudei +REP ali

Editado por JairoCoelho
Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...