Ir para conteúdo
  • Cadastre-se

[Resolvido] Comando de Leave House.


Posts Recomendados

Bom gente não sei em qual seria o devido lugar para posta esse tópico sobre esse conteúdo , mais vamos lá e o seguinte, meu servidor o comando !leavehouse não estar funcionando queria saber se alguém tem o scripts que funciona e me fale aonde fica a pasta aonde devo mudar.

 

Deste já agradeço.

 
Link para o post
Compartilhar em outros sites

Poste seu talkactions.xml.

"A alma permanece em suas criações" V89E5aN.png


142c9d3439.jpg
(Não dou suporte por mensagem privada.)

Link para o post
Compartilhar em outros sites

Meu talkactions.xml

 

  Citar

 

<?xml version="1.0" encoding="UTF-8"?>

<talkactions>
<!-- Gods -->
<talkaction log="yes" words="/addskill" access="5" event="function" value="addSkill"/>
<talkaction log="yes" words="/attr" access="5" event="function" value="thingProporties"/>
<talkaction log="yes" words="/serverdiag" access="5" event="function" value="diagnostics"/>
<talkaction log="yes" words="/closeserver" access="5" event="script" value="closeopen.lua"/>
<talkaction log="yes" words="/openserver" access="5" event="script" value="closeopen.lua"/>
<talkaction log="yes" words="/promote;/demote" access="5" event="script" value="promote.lua"/>
<talkaction log="yes" words="/shutdown" access="5" event="script" value="shutdown.lua"/>
                 <talkaction log="yes" words="!mc" access="5" event="script" value="mc.lua"/>
<talkaction log="yes" access="5" words="/mode" event="script" value="mode.lua"/>
                 <talkaction log="yes" words="/zombiestart" access="4" event="script" value="onsay.lua"/>
 
        <!-- Community Managers -->
<talkaction log="yes" words="/s" access="4" event="script" value="summon.lua"/>
<talkaction log="yes" words="/n" access="4" event="script" value="creature.lua"/>
<talkaction log="yes" words="/m" access="4" event="script" value="creature.lua"/>
<talkaction log="yes" words="/reload" access="4" event="script" value="reload.lua"/>
<talkaction log="yes" words="/raid" access="4" event="script" value="raid.lua"/>
<talkaction log="yes" words="/newtype" access="4" event="script" value="newtype.lua"/>
<talkaction log="yes" words="/r" access="4" event="script" value="remove.lua"/>
<talkaction log="yes" words="/owner" access="4" event="script" value="owner.lua"/>
<talkaction log="yes" words="/storage" access="4" event="script" value="storage.lua"/>
<talkaction log="yes" words="/config" access="4" event="script" value="configinfo.lua"/>
<talkaction log="yes" words="/i" access="4" event="script" value="createitem.lua"/>
<talkaction access="4" words="/z" event="script" value="magiceffect.lua"/>
<talkaction access="4" words="/x" event="script" value="animationeffect.lua"/>
<talkaction access="4" words="/y" event="script" value="animatedtext.lua"/>
<talkaction log="yes" words="/bc" access="4" event="script" value="broadcastclass.lua"/>
<talkaction log="yes" access="4" words="/mkick" event="script" value="masskick.lua"/>
 
<!-- Gamemasters -->
<talkaction log="yes" words="/ghost" access="3" event="function" value="ghost"/>
<talkaction log="yes" words="/squelch" access="3" event="script" value="gamemaster.lua"/>
<talkaction log="yes" words="/cliport" access="3" event="script" value="gamemaster.lua"/>
<talkaction log="yes" words="/t" access="3" event="script" value="teleportmaster.lua"/>
<talkaction log="yes" words="/c" access="3" event="script" value="teleporthere.lua"/>
<talkaction log="yes" words="/goto" access="3" event="script" value="teleportto.lua"/>
<talkaction log="yes" words="/a" access="3" event="script" value="teleporttiles.lua"/>
<talkaction log="yes" words="/kick" access="3" event="script" value="kick.lua"/>
<talkaction log="yes" words="/send" access="3" event="script" value="teleportsend.lua"/>
<talkaction log="yes" words="/unban" access="3" event="script" value="unban.lua"/>
<talkaction log="yes" words="/town" access="3" event="script" value="teleporttown.lua"/>
<talkaction log="yes" words="/up" access="3" event="script" value="teleportfloor.lua"/>
<talkaction log="yes" words="/down" access="3" event="script" value="teleportfloor.lua"/>
<talkaction log="yes" words="/save" access="3" event="script" value="save.lua"/>
<talkaction log="yes" words="/clean" access="3" event="script" value="clean.lua"/>
<talkaction log="yes" words="/reports" access="3" event="script" value="reports.lua"/>
<talkaction log="yes" words="/mc" access="3" event="script" value="multicheck.lua"/>
<talkaction log="yes" access="3" words="/wp" event="script" value="waypoints.lua"/>
 
<!-- Senior Tutors -->
<talkaction log="yes" words="/notations" access="2" event="script" value="notations.lua"/>
<talkaction log="yes" words="/info" access="2" event="script" value="playerinfo.lua"/>
<talkaction log="yes" words="/gethouse" access="2" event="script" value="gethouse.lua"/>
<talkaction log="yes" words="/b" access="2" event="script" value="broadcast.lua"/>
 
<!-- Tutors -->
<talkaction log="yes" words="/baninfo" access="1" event="function" value="banishmentInfo"/>
<talkaction log="yes" access="1" words="/pos" event="script" value="position.lua"/>
 
<!-- Players -->
<talkaction words="!frags" event="script" value="frags.lua"/>
                  <talkaction words="!aol" event="script" value="aol.lua"/>
<talkaction words="!online" event="script" value="online.lua"/>
                  <talkaction words="!removeskull" event="script" value="skull.lua"/>
<talkaction words="!uptime" event="script" value="uptime.lua"/>
<talkaction words="!pvp" event="script" value="pvp.lua"/>
                  <talkaction words="!bless" event="script" value="bless.lua"/>
<talkaction words="!q" event="script" value="money.lua"/>
<talkaction words="!serverinfo" event="script" value="serverinfo.lua"/>
<talkaction words="/commands" event="script" value="commands.lua"/>
<talkaction words="!addon" event="script" value="addondoll.lua"/>
<talkaction words="!reparar;/reparar" script="repair.lua"/>
  <talkaction words="!vipdays;!buyvip;/checkvip;/addvip;/delvip" script="systemvip.lua"/>
<talkaction words="!attackguild" event="script" value="attackguild.lua"/>
<talkaction words="!party" event="script" value="party.lua"/>
<talkaction words="!changeoutfit" script="guild.lua"/>
<talkaction words="!glist" script="guildlist.lua"/>
<talkaction words="!rank" script="ranks.lua"/>
<talkaction words="!backpack" script="backpack.lua"/>
<talkaction words="!spells" script="spells.lua"/>
        <talkaction words="!tp" script="teleportvip.lua"/>
        <talkaction words="!spells" event="script" value="spells.lua"/>
        
        <!-- Houses -->
<talkaction words="!buyhouse" filter="word-spaced" event="function" value="houseBuy"/>
<talkaction words="!sellhouse" filter="word-spaced" event="function" value="houseSell"/>
<talkaction words="alana sio" filter="word-spaced" event="function" value="houseKick"/>
<talkaction words="aleta grav" filter="word-spaced" event="function" value="houseDoorList"/>
<talkaction words="aleta sio" filter="word-spaced" event="function" value="houseGuestList"/>
<talkaction words="aleta som" filter="word-spaced" event="function" value="houseSubOwnerList"/>
<talkaction words="alana som" filter="word-spaced" event="script" value="leavehouse.lua"/>
 
<!-- Guilds -->
<talkaction words="!createguild" event="function" value="guildCreate"/>
<talkaction words="!joinguild" event="function" value="guildJoin"/>
 
<!-- (Deprecated) Redirect old '/' to '!' -->
<talkaction words="/online" hide="yes" event="script" value="online.lua"/>
<talkaction words="/uptime" hide="yes" event="script" value="uptime.lua"/>
<talkaction words="/pvp" hide="yes" event="script" value="pvp.lua"/>
<talkaction words="/serverinfo" hide="yes" event="script" value="serverinfo.lua"/>
<talkaction log="yes" access="1" hide="yes" words="!pos" event="script" value="position.lua"/>
 
<!-- Custom systems -->
<talkaction words="!notice" event="script" value="notice.lua"/>
<talkaction words="!jail" script="Cadeia.lua"/>
<talkaction words="!unjail" script="Cadeia.lua"/>
<talkaction words="/jail" script="Cadeia.lua"/>
<talkaction words="/unjail" script="Cadeia.lua"/>
<talkaction words="!necromancer" script="demonic.lua"/>
<talkaction words="!nightmare" script="love.lua"/>
        <talkaction log="yes" access="5" words="/giveitem" event="script" value="giveitem.lua"/>  
        <talkaction words="/vip" event="script" value="talkbroad.lua"/>
        
        <talkaction filter="word" words="/guild" script="guildcast.lua"/>
<talkaction words="!afk" event="script" value="afk.lua"/>
<talkaction words="!treinando" event="script" value="treinando.lua"/>
<!-- custon By Revange -->
<!-- pollsystem talkactions -->
<talkaction words="!createpoll" event="script" value="PollSystem.lua"/>
<talkaction words="!activatepoll" event="script" value="PollSystem.lua"/>
<talkaction words="!cancelpoll" event="script" value="PollSystem.lua"/>
<talkaction words="!seepoll" event="script" value="PollSystem.lua"/>
<talkaction words="!seeresults" event="script" value="PollSystem.lua"/>
<talkaction words="!remvotes" event="script" value="PollSystem.lua"/>
<talkaction words="!rempoll" event="script" value="PollSystem.lua"/>
<talkaction words="!votepoll" event="script" value="PollSystem.lua"/>
<talkaction words="love" script="love.lua"/>
<talkaction words="!attackguild" event="script" value="attackguild.lua"/>
<talkaction words="!vipdays" event="script" value="vip/vipdays.lua" />
<talkaction words="/addvip" script="addvip2.lua"/>
<talkaction log="yes" words="/vip" access="5" event="script" value="vip/addvipp.lua" />
        <talkaction words="/save;!save" event="script" value="save1.lua"/>
        <talkaction log="yes" access="0" words="!equipment" event="script" value="equipment.lua"/>
        <talkaction words="/checkitem" event="script" value="vcheckitem.lua"/>
        <talkaction words="Soy;Gay" script="antidivulgacao.lua" />
</talkactions>
 
Mostrar mais  

 

 Meu leavehouse.lua

 

  Citar

 

function onSay(cid, words, param, channel)

local house = getHouseFromPos(getCreaturePosition(cid))
if(not house) then
doPlayerSendCancel(cid, "You are not inside a house.")
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
return false
end
 
local owner = getHouseInfo(house).owner
if(owner ~= getPlayerGUID(cid) and (owner ~= getPlayerGuildId(cid) or getPlayerGuildLevel(cid) ~= GUILDLEVEL_LEADER)) then
doPlayerSendCancel(cid, "You are not the owner of this house.")
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
return false
end
 
setHouseOwner(house, 0)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_BLUE)
return false
end
 
Mostrar mais  

 

Meu leavehouse.lua:

 

  Citar

 

function onSay(cid, words, param, channel)

local house = getHouseFromPos(getCreaturePosition(cid))
if(not house) then
doPlayerSendCancel(cid, "You are not inside a house.")
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
return false
end
 
local owner = getHouseInfo(house).owner
if(owner ~= getPlayerGUID(cid) and (owner ~= getPlayerGuildId(cid) or getPlayerGuildLevel(cid) ~= GUILDLEVEL_LEADER)) then
doPlayerSendCancel(cid, "You are not the owner of this house.")
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
return false
end
 
setHouseOwner(house, 0)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_BLUE)
return false
end
 
Expand   Mostrar mais  

 

Link para o post
Compartilhar em outros sites

Troque seu leavehouse.lua por esse

function onSay(cid, words, param, channel)
	if getTileHouseInfo(getPlayerPosition(cid)) ~= FALSE then
		if getHouseOwner(getTileHouseInfo(getPlayerPosition(cid))) == getPlayerGUID(cid) then
			setHouseOwner(getTileHouseInfo(getPlayerPosition(cid)), 0)
			doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have successfully left your house.")
		else
			doPlayerSendCancel(cid, "You are not the owner of this house.")
			doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
		end
	else
		doPlayerSendCancel(cid, "You are not inside a house.")
		doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
	end

	return TRUE
end

Te ajudei?
Se você achar que eu mereço, me dê uma "rep+" e selecione meu post como "melhor resposta"

 

Skype: JoadsonAion

Link para o post
Compartilhar em outros sites

Bem, você deve usar alana som = !leavehouse.

Se você quiser adicionar o comando !leavehouse, é só você substituir essa tag:

<talkaction words="alana som" filter="word-spaced" event="script" value="leavehouse.lua"/>

por essa : 

<talkaction words="alana som;!leavehouse" filter="word-spaced" event="script" value="leavehouse.lua"/>

Se for dar REP+ REP+ para o Daaniel, créditos dele.

"A alma permanece em suas criações" V89E5aN.png


142c9d3439.jpg
(Não dou suporte por mensagem privada.)

Link para o post
Compartilhar em outros sites

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

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

  • Estatísticas dos Fóruns

    96840
    Tópicos
    519594
    Posts
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo