Ir para conteúdo

DuuhCarvalho

Conde
  • Total de itens

    988
  • Registro em

  • Última visita

  • Dias Ganhos

    21

Tudo que DuuhCarvalho postou

  1. DuuhCarvalho

    AJUDA

    imaginei.. sua vip é por storage? se sim manda. ou premium?
  2. DuuhCarvalho

    AJUDA

    editei o script, testa ae..
  3. DuuhCarvalho

    AJUDA

    não vi ainda 'rsr.. parece que mudou mt coisa @Tulio271, testa isso aqui: function onSay(player, words, param) --[[ Config lugares]]-- local lugar = { ["demolay"] = {pos = {x=1229, y=990, z=7}}, ["fidelitas"] = {pos = {x=1023, y=1026, z=7}}, ["shopping"] = {pos = {x=1044, y=1052, z=7}}, ["tpfree"] = {pos = {x=1108, y=998, z=7}}, ["tpfree2"] = {pos = {x=1248, y=1070, z=7}}, ["tpvip2"] = {pos = {x=1249, y=1064, z=7}}, ["tpvip"] = {pos = {x=1108, y=1028, z=7}}, } if player:getCondition(CONDITION_INFIGHT) == true then player:sendTextMessage(MESSAGE_EVENT_DEFAULT, "Você não pode se teleportar em uma batalha.") return false end if player:isVip() == false then player:sendTextMessage(MESSAGE_EVENT_DEFAULT, "Apenas Vip's podem se teleportar.") return false end local a = lugar[tostring(param)] local tmp = player:getPosition() if not a then player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "As cidades que você pode ir são: demolay, fidelitas.") player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Os lugares que você pode ir são: shopping, tpfree, tpfree2, tpvip, tpvip2.") tmp:sendMagicEffect(CONST_ME_POFF) else tmp:sendMagicEffect(CONST_ME_TELEPORT) player:teleportTo(a.pos) player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) end return false end
  4. DuuhCarvalho

    AJUDA

    o script está correto, e não da nenhum erro, para ser sincero não sei qual o problema :s
  5. DuuhCarvalho

    AJUDA

    editei. Não tem nada errado no seu script, nem nesse que eu criei agora. se não funcionar, manda sua tag aqui, e confirma as posições..
  6. DuuhCarvalho

    AJUDA

    EDITADO : function onSay(cid, words, param, param2, channel)if(param == '') thendoPlayerSendCancel(cid, "Command param required.")return trueendlocal config = {battle = true, -- players deve estar sem battle (true or false)vip = false -- se precisa ser premium account (true or false)}--[[ Config lugares]]--local lugar = {["demolay"] = {pos = {x=1229, y=990, z=7}},["fidelitas"] = {pos = {x=1023, y=1026, z=7}},["shopping"] = {pos = {x=1044, y=1052, z=7}},["tpfree"] = {pos = {x=1108, y=998, z=7}},["tpfree2"] = {pos = {x=1248, y=1070, z=7}},["tpvip2"] = {pos = {x=1249, y=1064, z=7}},["tpvip"] = {pos = {x=1108, y=1028, z=7}},}if config.vip == true and not isVip(cid) then return doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Apenas contas vip tem esse recurso.")endif config.battle == true and getCreatureCondition(cid, CONDITION_INFIGHT) == true then return doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Você não pode se teleportar em uma batalha.")endlocal a = lugar[param]if not a then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "As cidades que você pode ir são: demolay, fidelitas") doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Os lugares que você pode ir são: shopping, tpfree, tpfree2, tpvip, tpvip2") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)else doSendMagicEffect(getPlayerPosition(cid),27) doTeleportThing(cid, a.pos) doSendMagicEffect(getPlayerPosition(cid),40)endreturn trueend
  7. como assim ? do nada vai aparecer um item na posição x ?
  8. DuuhCarvalho

    AJUDA

    Dá erro na distro ? qual o erro?
  9. exatamente o que pensei kk, estava fazendo aqui.. mas se já tiver feito ótimo o único problema com a storage é que se o player upar e aumentar a hp quando voltar o hp para o valor da storage, o player vai ficar com o hp menor do q deveria
  10. primeiro substitui o script, depois vai em creaturescripts/scripts/login.lua e antes do ultimo return true coloca isso: local storage22 = 80888local health = getCreatureMaxHealth(cid)*0.10if getPlayerStorageValue(cid, storage22) >= 1 then setPlayerStorageValue(cid, storage22, 0) setCreatureMaxHealth(cid, getCreatureMaxHealth(cid) - health) doRemoveCreature(cid)end
  11. faz uma animação onde ? explica mais detalhado
  12. usa o script do zypter e coloca as posições no script mano
  13. @marcelinhok tenta agora: 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, "attackguild") registerCreatureEvent(cid, "prevetloss") registerCreatureEvent(cid, "tkexp4") registerCreatureEvent(cid, "tkexp3") registerCreatureEvent(cid, "advance") registerCreatureEvent(cid, "AdvEffect") registerCreatureEvent(cid, "Idle") registerCreatureEvent(cid, "Antimagebomb") registerCreatureEvent(cid, "checkmcmanager") registerCreatureEvent(cid, "effect") registerCreatureEvent(cid, "onPrepareDeath") registerCreatureEvent(cid, "DeathSystem") registerCreatureEvent(cid, "LevelItem") registerCreatureEvent(cid, "anunciarmorte") registerCreatureEvent(cid, "CombatDodge") registerCreatureEvent(cid, "onPrepareDeath") registerCreatureEvent(cid, "showKD") registerCreatureEvent(cid, "pvpsystem") 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 if getPlayerStorageValue(cid, 67792) == 1 then doPlayerPopupFYI(cid, "Seja Bem vindo ao Baiak Zuado\n\nJa Estamos em Clima de NATAL HOHOHOOU.\n\nAqui vou postar algumas dicas para você iniciante.\n1- Se for sua primeira vez em nosso server você acaba de adquirir 2 dias de Super Vip.\n2- Faça a quest Donate Coins e Seja TOP.\n\nLista de principais comandos do server. !aol !bless !stamina !notice !info !reset !superdias !go !bp !doar !evento\n\nAptoveite os Eventos de NATAL.\n\nBom Jogo a Todos!") doPlayerSetStorageValue(cid, 67792, 1) end local storage3 = (getPlayerAccountId(cid)+550) local diasv = 2 if getGlobalStorageValue(storage3) <= 0 then setGlobalStorageValue(storage3, 1) setPlayerStorageValue(cid, 13715, os.time() + diasv*24*60*60) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você recebeu "..diasv.." dias de SUPER VIP, bom jogo!") end return true end
  14. verdade, certa vez o Omega tinha me falado isso, mas faz muito tempo então esqueci.. se bem que não é uma boa opção já que no mapa pode ter outras areas no-pvp, e não só nos treiners
  15. faz o teste ae pf.. depois de function onSay coloca isso: if getTileInfo(getThingPos(cid)).nopvp == FALSE then return doPlayerSendCancel(cid, "Voce nao pode usar esse comando aqui.")end
  16. @zipter98 não da pra usar tipo: if getTileInfo(getThingPos(cid)).nopvp then ... end ficaria mais fácil, porém em area qualquer area nopvp ele conseguiria usar 'rs
  17. certo, mas a primeira questão foi resolvida ? !treinar on e !treinar off ? agora só fala !treiner e pronto? sobre essa outra questão, no rme os treiner's estão em no-pvp zone ? onde o player fica parado é no-pvp zone?
  18. funcionou a questão do player falar a !trainar? manda as posições...
  19. não faz sentido, você testou com um player em outra account? se o player que você testou estiver na mesma account que o adm, n vai ganhar msm, pq o adm já ganhou. o script da a vip por account. se mesmo assim n funcionou. manda o seu login.lua
  20. @marcelinhok faz o seguinte, vai em data/creaturescripts/scripts abre o arquivo login.lua e antes do ultimo return true cola essa parte: local storage3 = (getPlayerAccountId(cid)+550) local diasv = 2 if getGlobalStorageValue(storage3) <= 0 then setGlobalStorageValue(storage3, 1) setPlayerStorageValue(cid, 13715, os.time() + diasv*24*60*60) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você recebeu "..diasv.." dias de VIP, bom jogo!") end
  21. @Prometheus X você vai colocar uma tag para cada pokemon: [4230] = "Bulbasaur", [4231] = "Charmander", [4232] = "Squirtle", [4233] = "Pikachu", [4234] = "Gloom", [4234] = "Shiny oddish", [4235] = "Treecko", [4236] = "Chimchar", [4237] = "Piplup", <action actionid="4230" script="start.lua"/> <action actionid="4231" script="start.lua"/> <action actionid="4232" script="start.lua"/> <action actionid="4233" script="start.lua"/> <action actionid="4234" script="start.lua"/> <action actionid="4235" script="start.lua"/> <action actionid="4236" script="start.lua"/> <action actionid="4237" script="start.lua"/> e um baú para cada pokemon, ou seja, cada bau vai uma action
  22. @Prometheus X exemplo, no script tem: [4230] = "Bulbasaur", você tem que colocar a tag com actionid 4230, e no rme colocar essa mesma action no bau. quando o player dê use nesse baú ele vai ganhar esse pokemon! tag: <action actionid="4230" script="NomeDoarquivo.lua"/> [4231] = "Charmander", em outro bau coloca a actionid 4231...
  23. ta errado, vc tem que colocar a tag com actionid, e no rme colocar o bau com o mesmo actionid..
  24. Legal mano, continue treinando, realizando scripts.... quer uma dica?! em: doTeleportThing(cid, pos) coloca: doTeleportThing(cid, fromPosition) e exclui: local pos = {x = 1107, y = 1017, z = 7 o player vai retornar para posição onde estava..
  25. substitui o script por esse: function onUse(cid, item, frompos, item2, topos)local storage = 80777local storage2 = 80888local vocation = {4,8,12} -- id da vocation knight (ou outra)local value = getCreatureMaxHealth(cid) / 10if isInArray(vocation, getPlayerVocation(cid)) then if os.time() > getPlayerStorageValue(cid, storage) then setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+ value) doCreatureAddHealth(cid, getCreatureMaxHealth(cid)) setPlayerStorageValue(cid, storage, os.time()+ 1*24*60*60) setPlayerStorageValue(cid, storage2, 1) doPlayerSendTextMessage(cid, 22, "You add 10% hp to you health!") doSendMagicEffect(getCreaturePosition(cid), 30) doRemoveItem(item.uid, 1) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você já usou esse item hoje, tente novamente em 24 horas.") endelse doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Item exclusivo para knights.")endreturn trueend e coloca esse onlogin em creaturescript: function onLogin(cid)local storage2 = 80888local health = getCreatureMaxHealth(cid)*0.10 if getPlayerStorageValue(cid, storage2) >= 1 then setPlayerStorageValue(cid, storage2, 0) setCreatureMaxHealth(cid, getCreatureMaxHealth(cid) - health) doRemoveCreature(cid) end return trueend não testei, vê se funciona ai.
  • Quem Está Navegando   0 membros estão online

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