Ir para conteúdo

hadamais

Cavaleiro
  • Total de itens

    195
  • Registro em

  • Última visita

Tudo que hadamais postou

  1. hadamais

    Duvidasona

    <item id="2173" article="an" name="amulet of loss"> <attribute key="weight" value="420" /> <attribute key="slotType" value="necklace" /> <attribute key="charges" value="1" /> <attribute key="preventDrop" value="1" /> aqui ta assim, o que devo fazer pra não cair nada? Mas a questão, é que ta dropando mesmo com aol... é alguma configuração que não sei fazer. Eu quero que não caia nada, com ou sem AOL, como no OT MEga War.
  2. hadamais

    Duvidasona

    Como assim alterar as chances? Explica?
  3. hadamais

    Duvidasona

    Tem como..o Mega War não cai seu loot.
  4. hadamais

    Duvidasona

    Tenho mais uma me particular! Como faz para as coisas dos players não cair? Poque eles estão dropando loot mesmo com AOL.
  5. hadamais

    Duvidasona

    De qualquer forma aparece na lista de Onlines se não me engano.
  6. hadamais

    Duvidasona

    Como faz para o God não aparecer na lista de players online?
  7. Mudando esse Type ja acaba com esses problemas?
  8. Tipo, pra quando os players se matarem, nenhum deles ficar PK, nem Ficar RED, nem Ficar BLACK entende?
  9. Certinho. Vlw, vou dar Rep pro cara la em cima, e amanhã te dou tambem Notle2012! PRecisa de mexer alguma coisa pra tirar, pra não ter ban nem PK?
  10. Beleza, e como faz pro coração cair tambem?
  11. Mas como eu o 5943 e 2160 juntos? Não queria tirar o coração. Tentei rewardid = 5943, 2160, Mas não deu. Deixa pra la, ficou bom...mas só ganha 10k como faço pra colocar pra ganhar 100k?
  12. Usei esse ultimo sem level. criei o arquivo killbonus e joguei dentro. Eu tenho o onkill.lua tambem e talz. Ah cara, tem esse arquivo chamado REWARD: function onDeath(cid, corpse, deathList) if isPlayer(cid) and isPlayer(deathList[1]) then local v = { rewardid = 5943, killer_name = getCreatureName(deathList[1]), killer_level = getPlayerLevel(deathList[1]), target_name = getCreatureName(cid), target_level = getPlayerLevel(cid), pos = getCreaturePosition(cid), text = 'TO HELL!' } local reward = doPlayerAddItem(deathList[1], v.rewardid, 1) doItemSetAttribute(reward, "description", "Killed at level " .. v.target_level .. " by " .. v.killer_name .. " I was at level " .. v.killer_level .. " when. " .. (getCreatureSkullType(cid) <= SKULL_GREEN and "[Not-Justified]" or "[Justified]")) doItemSetAttribute(reward, "name", v.target_name .."'s Heart") doPlayerSendTextMessage(deathList[1], MESSAGE_STATUS_CONSOLE_ORANGE, "You killed ".. v.target_name .." " .. (getCreatureSkullType(cid) <= SKULL_GREEN and "wrong." or "just.")) doSendAnimatedText(v.pos, v.text, TEXTCOLOR_RED) end return true end Não quero tirar, mas ja sei que é esse...como acrescento dinheiro?
  13. Tem algo errado, o cara só ta ganhando o coração... quer ver algum arquivo do meu serv específico? Meu onKill.lua ta ai em cima. Me ajuda ai.
  14. Mas o pessoal do meu servidor começa no LVL 150, não tem esses leveis altos. Como devo editar esses leveis ae?
  15. bom, estou com outro problema. Quando os players matam não recebe dinheiro de recompensa. Recebe outras coisas, menos dinheiro. eu quero que receba dinheiro, me ajuda? Complementando, aqui está meu Onkill.lua function onKill(cid, target) --config---------------------------- local lvl = getPlayerLevel(cid) --players level local nlvl = getPlayerLevel(cid) + 5 -- add 5 levels --end------------------------------- if isPlayer(target) == TRUE then if getPlayerIp(cid) ~= getPlayerIp(target) then local exp = (50 * (lvl) * (lvl) * (lvl) - 150 * (lvl) * (lvl) + 400 * (lvl)) / 5 local nexp = (50 * (nlvl) * (nlvl) * (nlvl) - 150 * (nlvl) * (nlvl) + 400 * (nlvl)) / 5 local newexp = nexp - exp doPlayerAddExp(cid,newexp) doPlayerAddMoney(cid, 20) doCreatureSetDropLoot(target, false) doSendAnimatedText(getPlayerPosition(cid), "Orgasmic~", 198) else doPlayerAddExperience(cid, -50000) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"You have been punished for killing a player of the same IP.") end end return TRUE end
  16. bom, estou com outro problema. Quando os players matam não recebe dinheiro de recompensa. Recebe outras coisas, menos dinheiro. eu quero que receba dinheiro, me ajuda?
  17. Consegui, pode fechar
  18. bom, tem que ver se vai dar certo agora, mas ja deixo meu rep. sua atenção foi essêncial.
  19. local config = { loginMessage = getConfigValue('loginMessage') } function onLogin(cid) local loss = getConfigValue('deathLostPercent') if(loss ~= nil) then doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10) end local accountManager = getPlayerAccountManager(cid) if(accountManager == MANAGER_NONE) then local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage if(lastLogin > 0) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str) str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "." else str = str .. " Please choose your outfit." doPlayerSendOutfitWindow(cid) end doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str) elseif(accountManager == MANAGER_NAMELOCK) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?") elseif(accountManager == MANAGER_ACCOUNT) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to manage your account and if you want to start over then type 'cancel'.") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to create an account or type 'recover' to recover an account.") end if(not isPlayerGhost(cid)) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT) end registerCreatureEvent(cid, "Mail") registerCreatureEvent(cid, "GuildMotd") registerCreatureEvent(cid, "killer") registerCreatureEvent(cid, "Idle") registerCreatureEvent(cid, "attackguild") registerCreatureEvent(cid, "advance") registerCreatureEvent(cid, "FimVip") registerCreatureEvent(cid, "SkullCheck") registerCreatureEvent(cid, "ReportBug") registerCreatureEvent(cid, VipReceive) registerCreatureEvent(cid, "deathBroadcast") registerCreatureEvent(cid, "kill") registerCreatureEvent(cid, "onPrepareDeath") registerCreatureEvent(cid, "addon") registerCreatureEvent(cid, "Reward") registerCreatureEvent(cid, "firstitems") registerCreatureEvent(cid, "PlayerKill") if (InitArenaScript ~= 0) then InitArenaScript = 1 -- make arena rooms free for i = 42300, 42309 do setGlobalStorageValue(i, 0) setGlobalStorageValue(i+100, 0) end end -- if he did not make full arena 1 he must start from zero if getPlayerStorageValue(cid, 42309) < 1 then for i = 42300, 42309 do setPlayerStorageValue(cid, i, 0) end end -- if he did not make full arena 2 he must start from zero if getPlayerStorageValue(cid, 42319) < 1 then for i = 42310, 42319 do setPlayerStorageValue(cid, i, 0) end end -- if he did not make full arena 3 he must start from zero if getPlayerStorageValue(cid, 42329) < 1 then for i = 42320, 42329 do setPlayerStorageValue(cid, i, 0) end end if getPlayerStorageValue(cid, 42355) == -1 then setPlayerStorageValue(cid, 42355, 0) -- did not arena level end setPlayerStorageValue(cid, 42350, 0) -- time to kick 0 setPlayerStorageValue(cid, 42352, 0) -- is not in arena return true end
  20. antes ou depois? Porque depois tem umas paradinhas parecidas com essas ai.
  21. Aguardo, fico agradecido.
  22. Agora axo que deu certo...não ta caindo nada do meu corpo. Outra duvida é a seguinte: Os Players começam no lvl 150 no meu serv, mas se for matando vai caindo o lvl. Eu quero que o minimo que possa chegar amigo, seja 150 mesmo. Como faço pra ficar estacionado ai?
  23. Experiência esta normal, subindo normal. fiz essa alteração, testando nesse momento.
  24. Cara, colokei no mesmo arquivo ONKILL.LUA e não ta ganhando dinheiro. Será que fiz algo errado? Olha: function onKill(cid, target) --config---------------------------- local lvl = getPlayerLevel(cid) --players level local nlvl = getPlayerLevel(cid) + 5 -- add 5 levels --end------------------------------- if isPlayer(target) == TRUE then if getPlayerIp(cid) ~= getPlayerIp(target) then local exp = (50 * (lvl) * (lvl) * (lvl) - 150 * (lvl) * (lvl) + 400 * (lvl)) / 5 local nexp = (50 * (nlvl) * (nlvl) * (nlvl) - 150 * (nlvl) * (nlvl) + 400 * (nlvl)) / 5 local newexp = nexp - exp doPlayerAddExp(cid,newexp) doPlayerAddMoney(cid, 20) doCreatureSetDropLoot(cid, false) doSendAnimatedText(getPlayerPosition(cid), "Orgasmic~", 198) else doPlayerAddExperience(cid, -50000) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"You have been punished for killing a player of the same IP.") end end return TRUE end
  25. Ja add no mesmo arquivo ali...vou testar e ja lhe dou rep!
  • Quem Está Navegando   0 membros estão online

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