Ir para conteúdo

miguel223

Visconde
  • Total de itens

    322
  • Registro em

  • Última visita

  • Dias Ganhos

    7

Tudo que miguel223 postou

  1. miguel223

    [8.60] Rotworm Town!

    Galerinha, to passando pra deixar um rotworm town pra vocês: Rotworm Town.rar Rotworm Town.rar
  2. IP: imperiumnew.com VERSÃO: 8.60 - PORTA: 7171 Site: http://imperiumnew.com/ Crie sua conta pelo site ou pelo 1/1 e se divirta! O ImperiumNew possui War System, Cast System, Capture the Flag, Castle 24H, War of Emperium e outros! Com muito RPG e até mesmo com NPC vendedor de quase todos os itens, para que você se equipe conforme upe, o ImperiumNew visa restaurar um bom padrão de jogabilidade, mesclando RPG e agilidade (através de teleports). A exp começa em 100x e cai de forma contínua e devagar. Já o skill rate é 20x, e, o magic, 12x. Não perca tempo, corra jogar!
  3. Seu problema não é mais causado pelo script. Fiz com que ele não interferisse no look.
  4. O look foi arrumado. Checar o tópico oficial.
  5. Acabei de alterar todo o creaturescripts, para aparecer uma mensagem a parte, não só quando o player clica em si só, mas quando alguém clica nele. Sobre sua dúvida, Bruno, isso é porque sua versão de NPCs é incompatível com a minha (8.6). Não sei a estrutura de sua versão. Mas basta abrir um .lua de algum npc seu e adaptar o início do código.
  6. No caso de servidor que não o tfs 0.4, usem da seguinte maneira: function onLook(cid, thing, position, lookDistance)local t = {{name = "engenheiro", storage = 12012, value = 1},{name = "professor", storage = 12013, value = 1}}for _, prof in ipairs(t) doif isPlayer(thing.uid) thenif getPlayerStorageValue(thing.uid, prof.storage) >= prof.value and thing.uid ~= cid thendoPlayerSetSpecialDescription(thing.uid, " and "..prof.name.." (Level "..getPlayerStorageValue(thing.uid, prof.storage)..")")endif getPlayerStorageValue(thing.uid, prof.storage) >= prof.value and thing.uid == cid thenlocal text = "You are "..prof.name.." (Level "..getPlayerStorageValue(thing.uid, prof.storage)..")."doPlayerSendTextMessage(cid, 22, text) endendendreturn trueend
  7. miguel223

    Pedido Stafftime

    Sistema estava com defeito na hora de transmitir as horas jogadas e no logout. Reinstale conforme meu tópico em scripts > actions, talkactions e movements.
  8. Editei o script, tenta agora. EDIT: acabei de editar de novo, usa exatamente do jeito que está ai, já até configurei pra ti.
  9. Aqui isso também ocorre. Creio que não. Mas também não acho que seja um problema. Uma skull piscando é claramente indicativa de que o player não a pegará. Isso ocorre porque, sempre que o player vai perder a skull, ela pisca ;/.
  10. miguel223

    Pedido Stafftime

    Em creaturescripts.xml, adicione: <event type="logout" name="time" event="script" value="time.lua"/> Crie, em creaturescripts/scripts/, um arquivo de nome time.lua e adicione: function onLogout(cid) setPlayerStorageValue(cid, 19821, getPlayerStorageValue(cid, 19821) + os.time - getPlayerLastLogin(cid)) return true end Em talkactions/scripts/, crie um arquivo de nome time.lua e adicione: function onSay(cid, words, param, channel)local t = param:explode(", ")if not(t[1]) thendoPlayerSendTextMessage(cid, 22, "This command need a param. Like: /time check, PLAYERNAME or /time clear, PLAYERNAME.")endif t[1] == "check" thenif not(t[2]) thendoPlayerSendTextMessage(cid, 22, "You need to put the players name in the command.")elseif getPlayerByName(t[2]) thenif getPlayerStorageValue(getPlayerByName(t[2]), 19821) < 0 thensetPlayerStorageValue(getPlayerByName(t[2]), 19821, 0)enddoPlayerSendTextMessage(cid, 22, "This player has "..(getPlayerStorageValue(getPlayerByName(t[2]), 19821)/60*60).." hours played until his left login.")elsedoPlayerSendTextMessage(cid, 22, "This player isnt online now or he doesnt exist.")endendendif t[1] == "clear" thenif not(t[2]) thendoPlayerSendTextMessage(cid, 22, "You need to put the players name in the command.")elseif getPlayerByName(t[2]) and getPlayerGroupId(cid) == 6 thensetPlayerStorageValue(getPlayerByName(t[2]), 19821, 0)doPlayerSendTextMessage(cid, 22, "You cleaned this players hours played.")elsedoPlayerSendTextMessage(cid, 22, "This player isnt online now or he doesnt exist. Or, you arent a GOD to use this command.")endendendreturn trueend Em talkactions.xml, adicione: <talkaction log="yes" words="/time;!time" access="2" event="script" value="time.lua" />
  11. Em actions.xml, adicione a tag: <action itemid="15557;15558" script="outfititem.lua"/> Em actions/scripts/, crie um arquivo de nome outfititem.lua e adicione: local configs = { {itemid = 15557, gender = 0, storage = 12987, value = 1, name = "Chun Li"}; {itemid = 15558, gender = 1, storage = 12988, value = 1, name = "NOMEDOOUTFIT2"} } function onUse(cid, item) for _, outfit in ipairs(configs) do if item.itemid == outfit.itemid then if getPlayerStorageValue(cid, outfit.storage) <= 0 then if getPlayerSex(cid) == outfit.gender then setPlayerStorageValue(cid, outfit.storage, outfit.value) doSendMagicEffect(getPlayerPosition(cid), 12) doPlayerSendTextMessage(cid, 22, "You gained the "..outfit.name.." outfit.") doRemoveItem(item.uid, 1) return true else doSendMagicEffect(getPlayerPosition(cid), 2) doPlayerSendTextMessage(cid, 22, "You arent of the correct gender.") return true end else doSendMagicEffect(getPlayerPosition(cid), 2) doPlayerSendTextMessage(cid, 22, "You already has the "..outfit.name.." outfit.") return true end end end return false end Em XML/outfits.xml, adicione, na frente de outfit id="IDDOOUTFIT": storageId="12987" storageValue="1"
  12. Segue link do sistema de facções: Desculpe-me o double post.
  13. Só uma pergunta: as facçoes serao vocaçoes msm ou vai ser algo separado?
  14. Amanha faço para ti. La pras 6 horas posto aqui.
  15. miguel223

    dodge e Critical

    Embora seja por item, vale a pena conferir meu tópico sobre isso em scripts > mods e funções. Caso, ainda sim, queira um npc, me avise pvt que eu posto aqui.
  16. miguel223

    Poromotion bugada

    Não é nas vocações que indica se o player está promovido ou não. É nessa parte aqui: O problema está apenas no seu gesior. Vá em htdocs/config/config.php e ache: $vocation_name[0][0] = array(0 => 'None', 1 => 'Sorcerer', 2 => 'Druid', 3 => 'Paladin', 4 => 'Knight'); // id => 'name' , $vocation_name[0] - promotion level 0, $vocation_name[0] - for world ID 0 $vocation_name[0][1] = array(1 => 'Sorcerer', 2 => 'Druid', 3 => 'Paladin', 4 => 'Knight'); // id => 'name' , $vocation_name[1] - promotion level 1, $vocation_name[0] - for world ID 0 Edite para: $vocation_name[0][0] = array(0 => 'None', 1 => 'Sorcerer', 2 => 'Druid', 3 => 'Paladin', 4 => 'Knight'); // id => 'name' , $vocation_name[0] - promotion level 0, $vocation_name[0] - for world ID 0 $vocation_name[0][1] = array(1 => 'Master Sorcerer', 2 => 'Elder Druid', 3 => 'Royal Paladin', 4 => 'Elite Knight'); // id => 'name' , $vocation_name[1] - promotion level 1, $vocation_name[0] - for world ID 0
  17. Substitua: for y=1, #items do doPlayerAddItemStacking(cid, items[y].i, items[y].q) doPlayerSendTextMessage(cid, 20, "Looted "..items[y].q.."x "..getItemNameById(items[y].i)..".") end Por: for y=1, #items do if items ~= nil then doPlayerAddItemStacking(cid, items[y].i, items[y].q) doPlayerSendTextMessage(cid, 20, "Looted "..items[y].q.."x "..getItemNameById(items[y].i)..".") end end
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...