(1º Post, calma plx XD)
Oi gente, hoje decidi criar um post aqui no Xtibia, e ajudar a todos que gostariam de adicionar os comandos !aol , !bless, !go
(Perguntas Frequentes)
Noob[8]:Pra q serv o comando !aol???
RE:
Retira 10k do personagem(ou quanto voce quiser) , e da o aol (Amulet of loss} ao player!
Noob[8]:Pra q serv o comando !bless???
RE:
Retira uma certa quantidade de dinheiro em troca do bless, serv para que nao perca tanta experiencia quando morrer
Noob[8]:Pra q serv o comando !go???
RE:
Troca a COR da ropa da guild inteira, voce prescisa ser o Lider da guild para falar o comando
(se alguem souber como faz para que mude a outfit tambem)
COMANDO !AOL:
Abra a pasta talkactions/scripts, pegue qualquer arquivo do formato .lua e COPIE (nao retire) para o desktop, e renomeie ao seu gosto, Ex: buyaol.lua
function onSay(cid, words, param)
if doPlayerRemoveMoney(cid, 10000) == TRUE then
local bp = doPlayerAddItem(cid, 2173, 1)
doSendMagicEffect(getCreaturePosition(cid),30)
doCreatureSay(cid, "Voce comprou um AOL", TALKTYPE_ORANGE_1)
else
doCreatureSay(cid, "Voce nao tem dinheiro suficiente 10k", TALKTYPE_ORANGE_1)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
end
Salve e Feche,
Agora volte para a pasta do ot/data/talkactions, abra o talkactions.XML com o bloco de notas, e adicione isso:
<talkaction words="!aol" event="script" value="buyaol.lua"/>
Salve e feche.
Coloque dentro da pasta do ot/talkactions/scripts<>
COMANDO !BLESS:
Faça a mesma coisa com o script do aol, mais com outro .lua, renomeie a seu gosto Ex: bless
local bless = {1, 2, 3, 4, 5}
local cost = 80000
function onSay(cid, words, param)
for i = 1, table.maxn(bless) do
if(getPlayerBlessing(cid, bless)) then
doPlayerSendCancel(cid, "Voceja tem todas as bless.")
return TRUE
end
end
if(doPlayerRemoveMoney(cid, cost) == TRUE) then
for i = 1, table.maxn(bless) do
doPlayerAddBlessing(cid, bless)
end
doCreatureSay(cid, "You are now blessed by the GOD's!" ,19)
doSendMagicEffect(getPlayerPosition(cid), 29)
else
doPlayerSendCancel(cid, "Voce precisa de 80k para a bless.")
end
return TRUE
end
Abra pasta do ot/data/talkactions, abra o talkactions.XML com o bloco de notas, adicione isso
<talkaction words="!bless" event="script" value="bless.lua"/>
Salve e feche.
COMANDO !GO:
Copie qualquer .lua no desktop, e renomeie a gosto Ex: go.lua
local config =
{
sexChangeable = false,
copyOutfitAndAddonsEverytime = false
}
function onSay(cid, words, param, channel)
party = getPlayerParty(cid)
if (config.sexChangeable == true) then
sex = getPlayerSex(cid)
end
if (party) then
if (party == cid) then
outfit = getCreatureOutfit(cid)
members = getPartyMembers(party)
if (#members >= 1) then
tmp = outfit
for i=1,#members do
if (config.sexChangeable == true) then
if (sex ~= getPlayerSex(members)) then
doPlayerSetSex(members, sex)
end
end
if(config.copyOutfitAndAddonsEverytime == false and canPlayerWearOutfit(members, tmp.lookType, tmp.lookAddons) ~= true) then
local tmpOutfit = getCreatureOutfit(members)
tmp.lookType = tmpOutfit.lookType
tmp.lookAddons = tmpOutfit.lookAddons
end
doCreatureChangeOutfit(members, tmp)
doSendMagicEffect(getCreaturePosition(members), 66)
end
end
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "This command can use only leader of a party!")
end
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You must be in a party!")
end
return true
end
Abra o talkactions.XML com o bloco de notas e adicione isso:
<talkaction words="!go" script="go.lua"/>
Feche e salve.
Gente, Espero que voces tenham gostado, vlws ai :slap:
HeHe :smile_positivo: flws ae bom proveito,
NAO ESQUEÇA DE COLOCAR OS SCRIPTS DENTRO DA PASTA DO OT/DATA/TALKACTIONS/SCRIPTS!!!
Os devidos creditos serão colocados!! :bad:
Credtz:Vodkart
Me
Me
XD