joaohd 200 Postado Junho 22, 2010 Share Postado Junho 22, 2010 Este script foi uma sugestão do usuário Guilhermee56. Você pode dar suas idéias aqui. O que faz: Adiciona um item para um usuário, retirando este item do jogador que mandou. Vá até data/talkactions/scripts e crie um arquivo chamado giveitem.lua, contendo: function onSay(cid, words, param) if(param == "") then doPlayerSendTextMessage(cid, 25, "Name, item name and quantity are required.\nE.g.: !giveitem ".. getCreatureName(cid) ..",Crown armor,1") return TRUE end local t = string.explode(param, ",") local player = getPlayerByNameWildcard(t[1]) local item = getItemIdByName(t[2]) local quant = tonumber(t[3]) if(not player) then doPlayerSendCancel(cid, "You must fill with player name.") return TRUE end if(not item) then doPlayerSendCancel(cid, "You must fill with a item name.") return TRUE end if(not quant) then doPlayerSendCancel(cid, "You must fill with a quantity.") return TRUE end if(quant <= 0) then doPlayerSendCancel(cid, "You must add the quantity.") return TRUE end if getPlayerGroupId(cid) >= 4 then doPlayerAddItem(player,item, quant) doPlayerSendTextMessage(cid, 25, "You gave ".. t[2] .." to " .. getCreatureName(player) .. ".") doPlayerSendTextMessage(player, 25, "You got ".. t[2] .." from " .. getCreatureName(cid) .. ".") elseif getPlayerGroupId(cid) < 4 then if getPlayerItemCount(cid, item) >= quant then doPlayerAddItem(player,item, quant) doPlayerSendTextMessage(cid, 25, "You gave ".. t[2] .." to " .. getCreatureName(player) .. ".") doPlayerSendTextMessage(player, 25, "You got ".. t[2] .." from " .. getCreatureName(cid) .. ".") doPlayerRemoveItem(cid, item, quant) else doPlayerSendTextMessage(cid, 25, "You don't have that item!.") end end return TRUE end Salve e feche. Abra o seu talkactions.xml e adicione: <talkaction words="!giveitem" case-sensitive="no" event="script" value="giveitem.lua"/> Salve e feche. Modo de usar: !giveitem apocarai, golden armor, 1 Nota: Usuários com acesso acima de 4 não precisam ter o item para envio. flw Link para o comentário Compartilhar em outros sites More sharing options...
lukaszn09 0 Postado Julho 2, 2010 Share Postado Julho 2, 2010 Cara, script muito bom, é bom para um evento que tem de prêmio xx item e o GOD simplesmente faz o comando e o jogador ganha o item Link para o comentário Compartilhar em outros sites More sharing options...
dwhfms 168 Postado Julho 2, 2010 Share Postado Julho 2, 2010 Puts cara esse é o melhor script que você criou nos últimos tempos cara, ta de parabéns. REP+ Link para o comentário Compartilhar em outros sites More sharing options...
luisfe23 199 Postado Julho 2, 2010 Share Postado Julho 2, 2010 Caramba, que script perfeito e útil, parabens apocarai. Abraços. Link para o comentário Compartilhar em outros sites More sharing options...
DevilMoon 125 Postado Julho 12, 2010 Share Postado Julho 12, 2010 (editado) Cara Muinto Bom , Bom Mesmo! Muinto Bom o Script!! Parabéns! Abraços Editado Julho 12, 2010 por DevilMoon Link para o comentário Compartilhar em outros sites More sharing options...
Henrique Moura 193 Postado Julho 12, 2010 Share Postado Julho 12, 2010 #Won helder Não foi o melhor script dele, mas sim o mais funcional. #Apocarai Estava procurando isso, mas nunca tive saco pra fazer. Muito obrigado. #DevilMoon Trouxidos? Tenta falar certo e acaba errando, pois isso não existe. É Trazidos. Com atenção, Henrique. Link para o comentário Compartilhar em outros sites More sharing options...
Vodkart 1515 Postado Julho 12, 2010 Share Postado Julho 12, 2010 o script é muito fera mais tem um Bug (eu acho) tipo eu tentei enviar 2 golden armor e não foi... assim: !giveitem vodkart, golden armor, 2 talz e não consegui :X Link para o comentário Compartilhar em outros sites More sharing options...
refi 2 Postado Março 8, 2011 Share Postado Março 8, 2011 Script mt bom! Me ajudou bastante em relação a eventos... Rep ++ :button_ok: Link para o comentário Compartilhar em outros sites More sharing options...
victorpuntel 7 Postado Março 9, 2011 Share Postado Março 9, 2011 @GlobalRefi Revivendo topicos... Link para o comentário Compartilhar em outros sites More sharing options...
refi 2 Postado Março 19, 2011 Share Postado Março 19, 2011 e vc flodando a cada post meu né? pq não reporta logo e para de ficar ganhando numero de posts com a mesma coisa? Link para o comentário Compartilhar em outros sites More sharing options...
Posts Recomendados