• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

CHANGE OUTFITS TALKCTION

alkenizs

New Member
Joined
Mar 27, 2022
Messages
21
Reaction score
4
alguém pode me ajudar

Estou tentando executar um comando para trocar de roupa via soucer, fiz assim, mas não deu certo

tf 1.3

void Jogo: :playerRequestOutfit(uint32_t playerId)
{
std::string text = "!roupas";
if (!g_config.getBoolean(ConfigManager::ALLOW_CHANGEOUTFIT)) {
Retorna;
}
Jogador* jogador = getPlayerByID(playerId);
if (!jogador) {
Retorna;
}
jogador->sendOutfitWindow();
}
 
Last edited:
alguém pode me ajudar

Estou tentando executar um comando para trocar de roupa via soucer, fiz assim, mas não deu certo

tf 1.3

void Jogo: :playerRequestOutfit(uint32_t playerId)
{
std::string text = "!roupas";
if (!g_config.getBoolean(ConfigManager::ALLOW_CHANGEOUTFIT)) {
Retorna;
}
Jogador* jogador = getPlayerByID(playerId);
if (!jogador) {
Retorna;
}
jogador->sendOutfitWindow();
}
Use this better add\/ in actions xml
<action itemid="2140" script="voodoo.lua"/>
and creact file name voodoo.lua in actions/scripts and p
Lua:
local outfits = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 68, 69, 70, 71, 72, 74, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 159, 160, 192, 193,
194, 195, 196, 197, 198, 199, 200, 201,202}
local outfit =
{
lookType = 2,
lookHead = 78,
lookBody = 114,
lookLegs = 77,
lookFeet = 0,
lookAddons = 3
}
local outfit0 =
{
lookType = 2,
lookHead = 78,
lookBody = 114,
lookLegs = 77,
lookFeet = 0,
lookAddons = 3
}
function onUse(cid, item, frompos, item2, topos)
if getPlayerStorageValue(cid,1921) == -1 or getPlayerStorageValue(cid,1921) == #outfits then
setPlayerStorageValue(cid,1921,1)
doSetCreatureOutfit(cid, outfit0, -1)
else
for i=1,#outfits do
if getPlayerStorageValue(cid,1921) == i then
outfit.lookType = outfits[i]
doSendAnimatedText(getPlayerPosition(cid), "Addon", math.random(1, 206))
doSetCreatureOutfit(cid, outfit, -1)
doSendMagicEffect(topos,6)
doSendMagicEffect(topos,39)
setPlayerStorageValue(cid,1921,i+1)
break
end
end
end
end
ut this script
 
I found this function here, it doesn't work in tfs 1.3 only in 0.4, it would be possible for us to work it in tfs 1.3

bool Game::playerRequestOutfit(uint32_t playerId)
{
std::string text = "!spells";
Player* player = getPlayerByID(playerId);
if(!player || player->isRemoved())
return false;
g_talkActions->onPlayerSay(player, CHANNEL_DEFAULT, text, false);
return true;
}
 
I found this function here, it doesn't work in tfs 1.3 only in 0.4, it would be possible for us to work it in tfs 1.3

bool Game::playerRequestOutfit(uint32_t playerId)
{
std::string text = "!spells";
Player* player = getPlayerByID(playerId);
if(!player || player->isRemoved())
return false;
g_talkActions->onPlayerSay(player, CHANNEL_DEFAULT, text, false);
return true;
}
<talkaction words="!spells" script="spells.lua"/>
Write down all the spells you have


Lua:
function onSay(cid, words, param)
    doPlayerSendTextMessage(cid, 16, "Spells and Such")
    doPlayerSendTextMessage(cid, 16, "---------------------------------------")
    doPlayerSendTextMessage(cid, 16, "Sorcerers:")
    doPlayerSendTextMessage(cid, 16, "Mage Bless Name")
    doPlayerSendTextMessage(cid, 16, "Mage Max Bless Name")
    doPlayerSendTextMessage(cid, 16, "---------------------------------------")
    doPlayerSendTextMessage(cid, 16, "Mazoori")
    doPlayerSendTextMessage(cid, 16, "Exevo Gran Mas Vis")
    doPlayerSendTextMessage(cid, 16, "Exevo Gran Mas Flam")
    doPlayerSendTextMessage(cid, 16, "Exevo Gran Mas Mort")
    doPlayerSendTextMessage(cid, 16, "Exevo Mort Hur")
    doPlayerSendTextMessage(cid, 16, "Exevo Vis Hur")
    doPlayerSendTextMessage(cid, 16, "Exori Ko")
    doPlayerSendTextMessage(cid, 16, "---------------------------------------")
    doPlayerSendTextMessage(cid, 16, "Druids:")
    doPlayerSendTextMessage(cid, 16, "Mana Bless Name")
    doPlayerSendTextMessage(cid, 16, "Mana Max Bless Name")
    doPlayerSendTextMessage(cid, 16, "---------------------------------------")
    doPlayerSendTextMessage(cid, 16, "Rattle")
    doPlayerSendTextMessage(cid, 16, "Exevo Gran Mas Tera")
    doPlayerSendTextMessage(cid, 16, "Exevo Gran Mas Frigo")
    doPlayerSendTextMessage(cid, 16, "Exevo Gran Mas Nara")
    doPlayerSendTextMessage(cid, 16, "Exevo Tera Hur")
    doPlayerSendTextMessage(cid, 16, "Exevo Frigo Hur")
    doPlayerSendTextMessage(cid, 16, "So")
    doPlayerSendTextMessage(cid, 16, "----------------------------------------")
    doPlayerSendTextMessage(cid, 16, "Paladins:")
    doPlayerSendTextMessage(cid, 16, "Divine Bless Name")
    doPlayerSendTextMessage(cid, 16, "Divine Max Bless Name")
    doPlayerSendTextMessage(cid, 16, "---------------------")
    doPlayerSendTextMessage(cid, 16, "Exevo Mas San")
    doPlayerSendTextMessage(cid, 16, "Exevo Mas Ran")
    doPlayerSendTextMessage(cid, 16, "Exevo Gran Mas Ran")
    doPlayerSendTextMessage(cid, 16, "Exura San")
    doPlayerSendTextMessage(cid, 16, "-----------------------------------------")
    doPlayerSendTextMessage(cid, 16, "Knights:")
    doPlayerSendTextMessage(cid, 16, "Exura Bless Name")
    doPlayerSendTextMessage(cid, 16, "Exura Max Bless Name")
    doPlayerSendTextMessage(cid, 16, "-----------------------------------------")
    doPlayerSendTextMessage(cid, 16, "Exori")
    doPlayerSendTextMessage(cid, 16, "Exori Mas")
    doPlayerSendTextMessage(cid, 16, "Exori Axe")
    doPlayerSendTextMessage(cid, 16, "Exevo Gran Mas Exori")
    doPlayerSendTextMessage(cid, 16, "-----------------------------------------")
    doPlayerSendTextMessage(cid, 16, "To Get Magic level:")
    doPlayerSendTextMessage(cid, 16, "waste500mana")
    doPlayerSendTextMessage(cid, 16, "waste1000mana")
    doPlayerSendTextMessage(cid, 16, "waste5000mana")
    doPlayerSendTextMessage(cid, 4, "Server Mad By Mr Abdala Ragab.")

        end
 
Back
Top