Ir para conteúdo
  • Cadastre-se

DukeeH

Membro
  • Total de itens

    638
  • Registro em

  • Última visita

  • Dias Ganhos

    12

Tudo que DukeeH postou

  1. Testa esse: function onStepIn(cid, item, position, fromPosition) if not isPremium(cid) then doTeleportThing(cid, fromPosition) doPlayerSendTextMessage(cid, 25, "Apenas jogadores premium podem acessar essa area.") else doPlayerSendTextMessage(cid, 25, "Bem vindo a area premium.") end end
  2. manda o script do lugar que é pra passar, e confirma se é premium ou vip system que você usa.
  3. É premium ou vip? Se for vip me fala o vip system que você usa. É bem tranquilo de fazer.
  4. potions.lua local config = { removeOnUse = "yes", usableOnTarget = "yes", -- can be used on target? (fe. healing friend) splashable = "yes", range = -1, area = {1, 1} -- if not set correctly, the message will be sent only to user of the item } local multiplier = { health = 1.0, mana = 1.0 } local POTIONS = { [8704] = {empty = 7636, splash = 42, health = {50, 100}}, -- small health potion [7618] = {empty = 7636, splash = 42, health = {100, 200}}, -- health potion [7588] = {empty = 7634, splash = 42, health = {200, 400}, level = 50, vocations = {3, 4, 7, 8}, vocStr = "knights and
  5. Desculpa, esqueci de você. Estranho, uso ele exatamente assim no meu server, mas no seu ta faltando um end. local targetList, GAMEMASTER = {"Target Dummy"}, 5 function onPush(cid, target) if(getPlayerAccess(cid) < GAMEMASTER) then if((target ~= cid and isPlayer(target)) and (getCreatureTarget(target) > 0 and isInArray(targetList, getCreatureName(getCreatureTarget(target)):lower()))) then doPlayerSendCancel(cid, "You cannot move this object.") return false end end end return true end
  6. /commands que vem por padrão em quase todos os otservers não faz isso?
  7. posta o script e a tag do spells.xml mas no global o utito tempo san exhausta tanto as magias de support quanto as de cura, só deixando as de ataque, por isso.
  8. não existe essa função no tfs 1.2, mudaram todas elas. ela vai ser escrita de forma diferente, por isso não funciona.
  9. isso deveria ser uma informação no topico, tendo em vista que o tfs 1.2 é completamente diferente, e quando não falam suponho que use algum outro. não tenho tfs 1.2 e nunca usei, não faço ideia de como funciona os scripts para ele, desculpa.
  10. Qual server você usa? Ele não tem essa função que estou usando para aumentar a exp.
  11. fez tudo? creaturescripts.xml <event type="login" name="ExpVip" event="script" value="vipexp.lua"/> creaturescripts/scripts/login.lua registerCreatureEvent(cid, "ExpVip") creaturescripts/scripts/vipexp.lua function onLogin(cid) local rate = 2.0 -- 2x a exp normal local config = { welvip = "Você tem 2x exp por ser vip!", not_vip = "Torne-se VIP e ganhe o dobro de exp!", vip = isPremium(cid) } if getPlayerStorageValue(cid, 55489) - os.time() > 0 then doPlayerSetExperienceRate(cid, rate) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.welvip) e
  12. Isso, sem id sem nada, só checa se o player esta atacando o trainer. local targetList, GAMEMASTER = {"Target Dummy"}, 5 function onPush(cid, target) if(getPlayerAccess(cid) < GAMEMASTER) then if((target ~= cid and isPlayer(target)) and (getCreatureTarget(target) > 0 and isInArray(targetList, getCreatureName(getCreatureTarget(target)):lower()))) then doPlayerSendCancel(cid, "You cannot move this object.") return false end end return true end
  13. Se você falar o erro que deu ou o que aconteceu ajuda.
  14. Como assim? Vai no site do no ip, entra com sua conta, vai em manage hosts, depois modify você edita o que esta em: "IP Address:" para o ip que quer ai vai la embaixo em update host.
  15. function onSay(cid, words, param) local price = 5000000 local days = 30 local daysvalue = days * 24 * 60 * 60 local storageplayer = getPlayerStorageValue(cid, 13540) local timenow = os.time() if getPlayerStorageValue(cid, 13540) - os.time() <= 0 then time = timenow + daysvalue else time = storageplayer + daysvalue end if(words == "!buyvip") then if doPlayerRemoveMoney(cid, price) == TRUE then doPlayerSendTextMessage(cid, MESSAGE_INF
  16. Uma duvida, o player 2 pega yellow na hora ou ao sair da tela e voltar?
  17. Você poderia centrar todas as suas duvidas em um mesmo topico, respondi três topicos diferentes seus todos com scripts relacionados a vip em menos de 1 dia. E em 2 dos 3 topicos você ta usando vip system diferente. Então poderia escolher um pra arrumar os problemas e adicionar os scripts que quer para ele. function onSay(cid, words, param) local price = 5000000 local days = 30 local daysvalue = days * 24 * 60 * 60 local storageplayer = getPlayerStorageValue(cid, 13540) local timenow = os.time() if getPlayerStorageValue(cid, 13540) - os.time() <= 0 then time = timenow + daysvalue
  18. Preciso do script das talkactions (newtype e falar em vermelho) para adicionar a checagem. E não dos scripts do outro tópico. Lembra de me marcar na resposta que você der pro forum me avisar, é complicado eu passar pra ver se respondeu.
  19. Esse é provavelmente melhor, evita que alguem puxe quem esta atacando x monstro. creaturescripts.xml <event type="push" name="Anti-Push" event="script" value="anti-push.lua"/> creaturescripts/scripts/login.lua registerCreatureEvent(cid, "Anti-Push") creaturescripts/scripts/anti-push.lua local targetList, GAMEMASTER = {"NOME DO TRAINER"}, 5 function onPush(cid, target) if(getPlayerAccess(cid) < GAMEMASTER) then if((target ~= cid and isPlayer(target)) and (getCreatureTarget(target) > 0 and isInArray(targetList, getCreatureName(getCreatureTarget(target)):lower()
  20. Estranho, está com o problema no vip system então, nada relacionado a o que eu mandei, mas deu certo a parte da promotion?
  21. Da sim, a parte que você adicionou no items.xml da tal valor ao item. O unico problema que você pode vir a encontrar é que quando você tem muito dinheiro na bp (não sei quanto exatamente) e vai em algum npc comprar item ele vai falar que você não tem dinheiro e o dinheiro aparece negativo la na janela do trade, isso é alguma limitação ou do cliente ou das sources. Então se for vender algo realmente caro favor usar uma action como alavanca.
  22. Tenta assim, a tag que você coloca é indiferente, só pra organização mesmo, então criei uma pra você saber onde estão, ai coloca ela em qualquer lugar do arquivo. No exemplo fiz pra sorcerer/druid, mas só alterar os ids. Os vocation ids de baixo são as promotions, e o showindescription 0 é pra não aparecer as promotions quando dar look no item. <!-- Itens Vocações --> <movevent type="Equip" itemid="3983" slot="legs" event="function" value="onEquipItem"> <vocation id="1"/> <vocation id="5" showInDescription="0"/> <vocation id="2"/> <vocation id="6"
  23. lib/000-constant.lua, procure por: ITEM_CRYSTAL_COIN = 2160 Após, adicione: ITEM_GOLD_INGOT = 9971 actions.xml <action itemid="9971" script="other/changegold.lua"/> changegold.lua local scarabid = 2157 local scarabtext = TEXTCOLOR_DARKORANGE function onUse(cid, item, fromPosition, itemEx, toPosition) if item.itemid == ITEM_GOLD_COIN and item.type == ITEMCOUNT_MAX then doChangeTypeItem(item.uid, item.type - item.type) doPlayerAddItem(cid, ITEM_PLATINUM_COIN, 1) doSendAnimatedText(fromPosition, "$$", TEXTCOLOR_LIGHTBLUE) el
  24. Procurei e em alguns minutos achei vários, não testei por não ter/jogar server de pokemon.
  25. Coisas relacionadas a skullystem (a maoria) estão nas sources, então gostaria de saber se você tem as sources de seu servidor e se esta disposto a compilar. Caso contrario acho que é melhor trocar por outra distro da mesma versão que o problema provavelmente vai sumir.
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo