Ir para conteúdo
  • Cadastre-se

(Resolvido)Pedido Comando Attr


Ir para solução Resolvido por ViitinG,

Posts Recomendados

Preciso dos comandos de /attr group 1,2,3,4,5,6 que nao estar pegando ja procurei na pasta do ot e não ta la nem fala /promote pega alquem ae pode mim ajudar com isso

Link para o post
Compartilhar em outros sites
  • Solução

Tente adicionar isso em :

"data/talkactions.xml"

<talkaction log="yes" words="/attr" access="5" event="function" value="thingProporties"/>

OBS : não esquece de colocar na tag dos comandos do GOD.

Editado por phodarks (veja o histórico de edições)
Link para o post
Compartilhar em outros sites

O tópico foi movido para a área correta, preste mais atenção da próxima vez!

Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680

Este tópico foi movido:

De: "OTServScriptingGeral"

Para: "OTServSuporte OTServSuporte de Scripts"

"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

Bom Não Pego >> fala isso quando coloco /attr group ,1,2,3,4,5,6 << todos ja tentei

 

18:19 Following action was invalid: security failure - you can set only lower group than your own!

 

o que poderar ser

Link para o post
Compartilhar em outros sites

"data/talkactions/scripts/attr.lua"

local itemFuncs =
{
["attackspeed"] = setItemAttackSpeed,
["name"] = setItemName,
["plural"] = setItemPluralName,
["attack"] = setItemAttack,
["extraattack"] = setItemExtraAttack,
["defense"] = setItemDefense,
["armor"] = setItemArmor,
["extradefense"] = setItemExtraDefense,
["hitchance"] = setItemHitChance,
["range"] = setItemShootRange,
["actionid"] = doSetItemActionId,
["action"] = doSetItemActionId,
["aid"] = doSetItemActionId,
["description"] = doSetItemSpecialDescription,
["desc"] = doSetItemSpecialDescription,
["protection"] = doSetItemProtection,
["charges"] = doChangeTypeItem,
["count"] = doChangeTypeItem
}[/size][/color][/font]
[font="helvetica, arial, sans-serif"][color="#282828"][size=3]local creatureFuncs =
{
["health"] = doCreatureAddHealth,
["maxhealth"]= setCreatureMaxHealth,
["mana"] = doCreatureAddMana,
["maxmana"] = setCreatureMaxMana,
["speed"] = doChangeSpeed,
["droploot"] = doCreatureSetDropLoot,
["cannotmove"] = doCreatureSetNoMove,
["skull"] = doCreatureSetSkullType,
["redskull"] = doPlayerSetRedSkullTicks
}[/size][/color][/font]
[font="helvetica, arial, sans-serif"][color="#282828"][size=3]local playerFuncs =
{
["fyi"] = doPlayerPopupFYI,
["tutorial"] = doPlayerSendTutorial,
["guildrank"] = doPlayerSetGuildRank,
["guildnick"] = doPlayerSetGuildNick,
["group"] = doPlayerSetGroupId,
["vocation"] = doPlayerSetVocation,
["promotion"] = setPlayerPromotionLevel,
["stamina"] = doPlayerAddStamina,
["town"] = doPlayerSetTown,
["balance"] = doPlayerDepositMoney
}[/size][/color][/font]

[font="helvetica, arial, sans-serif"][color="#282828"][size=3]function onSay(cid, words, param, channel)
if(param == "") then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
return TRUE
end[/size][/color][/font]
[font="helvetica, arial, sans-serif"][color="#282828"][size=3]local pos = {x=getCreaturePosition(cid).x, y=getCreaturePosition(cid).y, z=getCreaturePosition(cid).z, stackpos=1}
if getCreatureLookDirection(cid) == SOUTH then
pos = {x=getCreaturePosition(cid).x, y=getCreaturePosition(cid).y+1, z=getCreaturePosition(cid).z, stackpos=255}
elseif getCreatureLookDirection(cid) == NORTH then
pos = {x=getCreaturePosition(cid).x, y=getCreaturePosition(cid).y-1, z=getCreaturePosition(cid).z, stackpos=255}
elseif getCreatureLookDirection(cid) == EAST then
pos = {x=getCreaturePosition(cid).x+1, y=getCreaturePosition(cid).y, z=getCreaturePosition(cid).z, stackpos=255}
elseif getCreatureLookDirection(cid) == WEST then
pos = {x=getCreaturePosition(cid).x-1, y=getCreaturePosition(cid).y, z=getCreaturePosition(cid).z, stackpos=255}
end[/size][/color][/font]
[font="helvetica, arial, sans-serif"][color="#282828"][size=3]local t = string.explode(param, ",")[/size][/color][/font]

[font="helvetica, arial, sans-serif"][color="#282828"][size=3]local getThing = getThingFromPos(pos)[/size][/color][/font]
[font="helvetica, arial, sans-serif"][color="#282828"][size=3]if itemFuncs[t[1]] then
if getThing.itemid > 0 then
if itemFuncs[t[1]](getThing.uid, t[2]) then
doSendMagicEffect(pos, CONST_ME_MAGIC_GREEN)
return TRUE
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sorry, you can not add attribute to this item.")
return TRUE
end
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Item not found.")
return TRUE
end
elseif creatureFuncs[t[1]] then
if isCreature(getThing.uid) then
if creatureFuncs[t[1]](getThing.uid, t[2]) then
doSendMagicEffect(pos, CONST_ME_MAGIC_GREEN)
return TRUE
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sorry, you can not add attribute to this creature.")
return TRUE
end
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Creature not found.")
return TRUE
end
elseif playerFuncs[t[1]] then
if isPlayer(getThing.uid) then
if playerFuncs[t[1]](getThing.uid, t[2]) then
doSendMagicEffect(pos, CONST_ME_MAGIC_GREEN)
return TRUE
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sorry, you can not add attribute to this player.")
return TRUE
end
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player not found.")
return TRUE
end
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Unknow attribute.")
return TRUE
end
return TRUE
end

"data/talkactions/talkactions.xml"

<talkaction log="yes" words="/attr" access="5" event="function" value="attr.lua"/>
Editado por phodarks (veja o histórico de edições)
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.

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo