O próprio /i ja faz por nome, pelo menos no tfs.
Qualquer coisa, esse é o script:
function onSay(cid, words, param, channel) if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.") return true end local t = string.explode(param, ",") local ret = RETURNVALUE_NOERROR local tmp = getCreaturePosition(cid) local id = tonumber(t[1]) if(not id) then id = getItemIdByName(t[1], false) if(not id) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Item wich such name does not exists.") return true end end local amount = 100 if(t[2]) then amount = t[2] end local item = doCreateItemEx(id, amount) if(t[3] and getBooleanFromString(t[3])) then if(t[4] and getBooleanFromString(t[4])) then tmp = getPlayerLookPos(cid) end ret = doTileAddItemEx(tmp, item) else ret = doPlayerAddItemEx(cid, item, true) end if(ret ~= RETURNVALUE_NOERROR) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Couldn't add item: " .. t[1]) return true end doSendMagicEffect(tmp, CONST_ME_MAGIC_RED) return true end


info
Grupo: Campones
Registrado: 15/09/09
Posts: 0
Reputação: 0
Bom no meu ot o GOD nao pode fazer um simples comando como o /i pois o account protection nao deixa, para quem nao se lembra é aquela mensagem que nao deixa você passar sua acc para ninguem logado no tibia.
Gostaria de saber como sanar este problema ou intao implementar o comando /n que seria para criar apartir de um nome o item.
Ja procurei em varios lugares e ninguem soube me ajudar.
desde ja agradeço!