Ir para conteúdo

IagoNp

Membro
  • Registro em

  • Última visita

Tudo que IagoNp postou

  1. Aew galera consegui aqui: Peguei o script que o Skyforever passou ai: function onStepIn(cid, item, fromPosition, toPosition) local monsters = {{"Demon", {x = 1094 , y = 1069, z = 7}}, {"Morgaroth", {x = 1095 ,y = 1070, z = 7}}} if not isPlayer(cid) then return true end for i = 1, #monsters do doCreateMonster(monsters[i][1], monsters[i][2]) doSendMagicEffect(monsters[i][2], 10) end doCreatureSay(cid, "Kill the monsters.") doSendMagicEffect(getThingPos(cid), math.random(28, 30)) return true end e adicionei isso: function onStepIn(cid, item, fromPosition, toPosition) local monsters = {{"Dona Morte", {x = 1032 , y = 2267, z = 8}}, {"Abominavel", {x = 1031 ,y = 2267, z = 8}}} local pos = {x = 1030, y = 2267, z = 8} -- posicao do tile onde vai ser adicionado o item if not isPlayer(cid) then return true end for i = 1, #monsters do doCreateMonster(monsters[i][1], monsters[i][2]) doCreateItem(387, pos) -- Item que vai ser adicionado ao tile doSendMagicEffect(monsters[i][2], 10) end doCreatureSay(cid, "Mate os Monstros!") doSendMagicEffect(getThingPos(cid), math.random(28, 30)) return true end ai quando o player pisar no tile aparece a rocha onde ele ta e os mob são sumonado, ai o player nao pode ficar pisando no tile mas só no outro dia quando o server for reiniciar! era isso q eu tava procurando, obg a tds q ajudaram REP+ pro Skyforever de todo jeito me ajudou vlw msm mano!
  2. mano essa script ai ta mt boa só ta faltando sumonar tipo uma pedra, ID 387, pro player nao conseguir mas pisar no tile se nao vai ficar sumonando monstro direto ta ligado? tem como por esse efeito nessa skill pra quando o player pisar no piso e sumonar os monstro aparecer onde ele ta esse item ID 387 q é umas roxa dai ele nao vai poder mas pisar no tile, se puder por esse efeito ai vai ajudar mt ,
  3. Nemat o script q vc passou deu certo só q eu quero um script q tipo a cada tile q o player andar vai sumonar um monstro diferente, e esse seu script da pra fazer isso só q tem q esperar o tempo exp: 3 então se alguem pisar em 1 tile q sumona um dragão opr exemplo os outros tile vão ficar em espera até completar os 3 min pra voltar a sumonar monstro, dai a quest fica facil desse jeito, tem como fazer esse script só que ao inves de tempo o player ganha uma storage temporaria pra quando passar fizer efeito só uma vez, ou então aparecer o montros e no lugar onde vc pisou aparecer um rocha igual king shield do radbr, tem como?
  4. vlw vou testar aki o q dé mais certo pra quest do rep ++ ,
  5. Alguem poderia me passar um script que sumona monstro quando o player passar pelo tile? REP + pra quem ajudar
  6. Tipo o player q estar com skill 350 quando morri perde skill mas quando chega no 347 para de perder, pode morrer até 10 vezes q a skill n baixa, e o ml tbm, eu quero q baixe a skill e o ml quando morrer! Alguem sabe da um jeito nisso? vlw
  7. arrumei aki manolo REP ++ vlw
  8. ta aparecendo este erro no server quando vai ler as spell ou monster: [28/10/2012 15:06:18] [Warning - Monsters::loadMonster] Cannot load monster (Whatafuck) file (data/monster/Whatafuck.xml). [28/10/2012 15:06:18] Info: failed to load external entity "data/monster/Whatafuck.xml" o script dele ta assim: <?xml version="1.0" encoding="UTF-8"?> <monster name="Whatafuck" nameDescription="Whatafuck" race="fire" experience="1899950" speed="1060" manacost="0"> <health now="69000" max="69000"/> <look type="226" head="0" body="0" legs="0" feet="0" corpse="6080"/> <targetchange interval="60000" chance="0"/> <strategy attack="75" defense="40"/> <flags> <flag summonable="0"/> <flag attackable="1"/> <flag hostile="1"/> <flag illusionable="0"/> <flag convinceable="0"/> <flag pushable="0"/> <flag canpushitems="1"/> <flag canpushcreatures="1"/> <flag targetdistance="1"/> <flag staticattack="90"/> <flag runonhealth="0"/> </flags> <attacks> <attack name="melee" interval="2000" skill="150" attack="165" poison="500"/> <attack name="Ondas de Fogo" interval="1000" chance="13" radius="8" target="0" min="-2500" max="-15000"> <attribute key="areaEffect" value="fire"/> </attack> <attack name="Espiritos Dos Inferno" interval="1000" chance="13" radius="8" target="0" min="-25000" max="-30000"> <attribute key="areaEffect" value="death"/> </attack> </attacks> <defenses armor="200" defense="165"> <defense name="healing" interval="1000" chance="15" min="300" max="680"> <attribute key="areaEffect" value="blueshimmer"/> </defense> <defense name="speed" interval="2000" chance="8" speedchange="360" duration="60"> <attribute key="areaEffect" value="redshimmer"/> </defense> </defenses> <immunities> <immunity physical="0"/> <immunity energy="1"/> <immunity fire="1"/> <immunity poison="1"/> <immunity lifedrain="1"/> <immunity paralyze="1"/> <immunity outfit="1"/> <immunity drunk="1"/> <immunity invisible="1"/> </immunities> <voices interval="5000" chance="10"> <voice sentence="I speak english!Eu falo protugues!Yo hablo espanol!" yell="1"/> <voice sentence="Chlyck as'tees!Elis'soul!" yell="1"/> <voice sentence="!" yell="1"/> <voice sentence="Hjy.lynne! Hourglass Power is mine!" yell="1"/> </voices> <loot capacity="5000"> <item id="2165" countmax="25" chance="3500"/> <item id="2139" countmax="1" chance="9000"/> </loot> </monster> alguem sabe resolver esse erro?
  9. aew cara eu resolvi o problema coloquei assim! onde tava : if getPlayerVocation(cid) then Coloquei isso: if not isDrunou(cid) then e Deu certo.. mas vlw a tentativa de ajudar ai manolo! obg pela atenção ! ,
  10. é sim, no server tem knight, paladin, druid, sorcerer, infernalist e drunou! todos presta pra comprar skill, menos drunou, mas é como eu disse tava prestando mas do nada parou de prestar tenso!
  11. testei com outros char tbm, e nao da erro no DISTRO, tipo só faz aparecer isso msm no jogo: "14:12 Somente Drunous podem comprar skill de club." mas nao aparece erro apenas n ta prestando pros drunou comprar as skill! =/
  12. prestou nao =/ .. é como eu disse tava funcionando parou de funcionar mas eu n me lembro de mexer em nada pra desmantelar!
  13. essa ai é só uma parte do script , pq o resto ta funcionando de boa, e esse ai tambem tava mas agora nao ta mais, é como se o drunou no meu server n fosse drunou ou n fosse reconhecido como drunou huasuasha, tava prestando agora nao ta mas é tenso isso! =/
  14. to com problema aki... eu tenho um script q ta prestando certinho pra comprar todas as skill, e a club tava prestando mas agora nao ta mais, agora ta aparecendo isso: 13:03 Somente Drunous podem comprar skill de club. (só q eu to usando o comando em um drunou!). o script ta assim: if(param == "skillclub") then if getPlayerSkillLevel(cid, SKILL_CLUB) >= 350 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não pode ter skill acima de 350.") return TRUE end if getPlayerVocation(cid) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Somente Drunous podem comprar skill de club.") return TRUE end if getPlayerItemCount(cid, 9971) >= 1 then local pid = getPlayerGUID(cid) local club = getPlayerSkillLevel(cid, SKILL_CLUB) doPlayerRemoveItem(cid, 9971, 1) setPlayerStorageValue(cid,11548,os.time()+1) doRemoveCreature(cid) db.executeQuery("UPDATE `player_skills` SET `value` = " .. (club + 1) .. ", `count` = 0 WHERE `skillid` = 1 and `player_id` = " .. pid .. ";") return TRUE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não possui a quantidade necessária para comprar.") return TRUE end end alguem poderia me ajudar pf?
  15. to tentando ver o meu mas tentei ver de outro tbm e n foi e o char era vip! da o msm erro sempre! =/
  16. Puxa vida mano vlw mesmo, arrumou aki vou te da rep +, só mas uma coisa... eu to com problema no comando !vida no meu server fiz um topico ja mas ninguem conseguil arrumar, será q vc poderia olhar pra ajeitar isso? aparece esse erro aki quando uso: [28/10/2012 02:04:14] [Error - TalkAction Interface] [28/10/2012 02:04:14] data/talkactions/scripts/vida.lua:onSay [28/10/2012 02:04:14] Description: [28/10/2012 02:04:14] data/talkactions/scripts/vida.lua:3: attempt to call global 'getCreatureHealth' (a nil value) [28/10/2012 02:04:14] stack traceback: [28/10/2012 02:04:14] data/talkactions/scripts/vida.lua:3: in function <data/talkactions/scripts/vida.lua:1> essa descrição ai tentar chamar mundial 'getCreatureHealth' quer dizer oq? e entre parente "um valor nulo" se puder ajudar mano ficarei mt grato!
  17. ainda deu esse erro =/ [28/10/2012 01:52:38] [Error - CreatureScript Interface] [28/10/2012 01:52:38] data/creaturescripts/scripts/login.lua [28/10/2012 01:52:38] Description: [28/10/2012 01:52:38] data/creaturescripts/scripts/login.lua:80: attempt to concatenate a nil value [28/10/2012 01:52:38] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/login.lua)
  18. agora ta dando esse erro mano [28/10/2012 00:44:29] [Error - CreatureScript Interface] [28/10/2012 00:44:29] data/creaturescripts/scripts/login.lua [28/10/2012 00:44:29] Description: [28/10/2012 00:44:29] data/creaturescripts/scripts/login.lua:80: attempt to compare boolean with number [28/10/2012 00:44:29] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/login.lua) pq? =/
  19. galera to com esse problema aki: e no script ta assim: local config = { loginMessage = getConfigValue('loginMessage'), useFragHandler = getBooleanFromString(getConfigValue('useFragHandler')) } 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, "questLook") registerCreatureEvent(cid, "Idle") if(config.useFragHandler) then registerCreatureEvent(cid, "SkullCheck") registerCreatureEvent(cid, "Reward") end registerCreatureEvent(cid, "ReportBug") registerCreatureEvent(cid, "AdvanceSave") registerCreatureEvent(cid, "advance") registerCreatureEvent(cid, "FimVip") registerCreatureEvent(cid, "SkullCheck") registerCreatureEvent(cid, "ReportBug") registerCreatureEvent(cid, VipReceive) 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 end local resets = getPlayerStorageValue(cid,1020) doPlayerSetSpecialDescription(cid, ". [Resets: "..(resets < 0 and 0 or resets).."]" return true end end Alguem sabe concertar esse erro pf ?
  20. se o problema for na lib como faço pra dar uma olhada? qual arquivo e como ajeito algum de vcs sabe? =/
  21. mas aki fica aparecendo isso e nao funciona! e no servidor aparece esse erro como ja disse!
  22. no talkaction ta assim, <talkaction words="!vida" event="script" value="vida.lua"/> e no server aparece esse erro quando alguem digita "!vida". [25/10/2012 18:18:21] [Error - TalkAction Interface] [25/10/2012 18:18:21] data/talkactions/scripts/vida.lua:onSay [25/10/2012 18:18:21] Description: [25/10/2012 18:18:21] data/talkactions/scripts/vida.lua:3: attempt to call global 'getCreatureHealth' (a nil value) [25/10/2012 18:18:21] stack traceback: [25/10/2012 18:18:21] data/talkactions/scripts/vida.lua:3: in function <data/talkactions/scripts/vida.lua:1> =/
  23. Ae galera, to com um problema aki no comando vida ta dando esse erro, [25/10/2012 18:18:21] [Error - TalkAction Interface] [25/10/2012 18:18:21] data/talkactions/scripts/vida.lua:onSay [25/10/2012 18:18:21] Description: [25/10/2012 18:18:21] data/talkactions/scripts/vida.lua:3: attempt to call global 'getCreatureHealth' (a nil value) [25/10/2012 18:18:21] stack traceback: [25/10/2012 18:18:21] data/talkactions/scripts/vida.lua:3: in function <data/talkactions/scripts/vida.lua:1> o Script do comando ta assim: function onSay(cid, words, param, channel) if(param == "") then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "\nVida atual: " .. getCreatureHealth(cid) .. "\nVida máxima: " .. getCreatureMaxHealth(cid) .. "") return true end if isPremium(cid) == TRUE then local pid = getPlayerByNameWildcard(param) if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "O jogador com o nome " .. param .. " não esta online ou não existe.") return true end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "\nVida de [ " .. getCreatureName(pid) .. " ] atual: " .. getCreatureHealth(pid) .. "\nVida de [ " .. getCreatureName(pid) .. " ] máxima: " .. getCreatureMaxHealth(pid) .. "") return true else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Apenas jogadores VIP podem utilizar este comando para visualizar informações de outros jogadores.") return true end end Alguem sabe como me ajudar? nao ta prestando pra saber quanto de Vida o player tem =/ Rep ++ pra quem solucionar esse problema ..

Informação Importante

Confirmação de Termo