Ir para conteúdo

Crypter

Membro
  • Registro em

  • Última visita

Tudo que Crypter postou

  1. Qual erro que aparece quando você executa ?
  2. o portal é removido so quando acabar o time. ["RB Goku SSJ4"] = {pos = {x=389, y=250, z=15}, toPos = {x=400, y=250, z=15}, time = 60}, o Portal so vai ser removido depois de 60 segundos ( time = 60 )
  3. local config = { effectonuse = 29, -- efeito que sai levelscrit = 100, --- leveis que terão storagecrit = 98798644 -- storage que será verificado } function onUse(cid, item, frompos, item2, topos) print("Item esta sendo usado") if getPlayerStorageValue(cid, config.storagecrit) < config.levelscrit then doRemoveItem(item.uid, 1) doSendMagicEffect(topos,config.effectonuse) doPlayerSendTextMessage(cid,22,"Voce elevou seus dodges para ["..(getPlayerStorageValue(cid, config.storagecrit)+1).."/100].") setPlayerStorageValue(cid, config.storagecrit, getPlayerStorageValue(cid, config.storagecrit)+1) elseif getPlayerStorageValue(cid, config.storagecrit) >= config.levelscrit then doPlayerSendTextMessage(cid,22,"Voce ja chegou no nivel Maximo de Dodges.\nParabéns.") return false end return true end Testa a script e da usa no item caso não não mostrar nada no console ao usar o item você registrou errrado
  4. Formata esse arquivo pra UTF-8 ( Sem bom)
  5. function onStepIn(cid, item, position, fromPosition) if isPlayer(cid) then if not isPremium(cid) then doTeleportThing(cid, fromPosition) doSendMagicEffect(fromPosition, CONST_ME_POFF) doPlayerSendCancel(cid, 'Local Exclusivo Para VIP\'s. acesse Mega-baiak.com ! Ou compre com o comando(!vip)') return false end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'Bem vindo a Area VIP!') doSendMagicEffect(position, CONST_ME_MAGIC_RED) return true end end
  6. function onLogin(cid) local rate = 1.2 -- 10% a mais de exp. local config = { Vip = "You have "..((rate - 1)*100).."% rom exp! Enjoy the benefits vip donate!", -- mensagem apenas para vip NotVip = "Hello player enjoy the benefits vip, you will win "..((rate - 1)*100).."% more than xp!", -- mensagem para quem não é vip } if not (string.find(tostring(getCreatureName(cid)),"Account Manager")) or getPlayerGroupId(cid) >= 3 then if isPremium(cid) == true then doPlayerSetExperienceRate(cid, rate) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.Vip) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.NotVip) end end return true end function onStepIn(cid, item, position, fromPosition) local tileConfig = { kickPos = fromPosition, kickEffect = CONST_ME_POFF, kickMsg = "You need to be a vip player to access this area.", enterMsg = "Welcome to vip area!", enterEffect = CONST_ME_MAGIC_RED, } if isPlayer(cid) == true then if isPremium(cid) == false then doTeleportThing(cid, tileConfig.kickPos) doSendMagicEffect(tileConfig.kickPos, tileConfig.kickEffect) doPlayerSendCancel(cid, tileConfig.kickMsg) return end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, tileConfig.enterMsg) doSendMagicEffect(position, tileConfig.enterEffect) return true end end
  7. Errado: <item id="2125" name="black shorts"/> <attribute key="description" value="Recovery chakra in 100/s." /> <attribute key="weight" value="5400" /> <attribute key="armor" value="5" /> <attribute key="manaGain" value="70" /> <attribute key="manaTicks" value="500" /> <attribute key="showattributes" value="1" /> <attribute key="slotType" value="legs" /> </item> Correto <item id="2125" name="black shorts"> <attribute key="description" value="Recovery chakra in 100/s." /> <attribute key="weight" value="5400" /> <attribute key="armor" value="5" /> <attribute key="manaGain" value="70" /> <attribute key="manaTicks" value="500" /> <attribute key="showattributes" value="1" /> <attribute key="slotType" value="legs" /> </item> <item id="2125" name="black shorts"/> No 1 você esta fechando o item sem dar os atributos a ele entendeu? ai fica 1 </item> perdido e da erro. aqui eu você fecha com </item> , sem a barra /> na 1° linha <item id="2125" name="black shorts"> atributos </item>
  8. function doPlayerAddDepotItems(cid, items, town) if (not isPlayer(cid)) then error("Player not found") end local town = town or getPlayerTown(cid) local parcel = doCreateItemEx(ITEM_PARCEL) for item, count in pairs(items) do if (type(item) == "number") then doAddContainerItem(parcel, item, count) elseif (type(item) == "string") then doAddContainerItem(parcel, getItemIdByName(item), count) else error("Undefinied type of item name") end end return doPlayerSendMailByName(getCreatureName(cid), parcel, town) end function onSay(cid, words, param) local param = param.explode(param, ',') if param then if isPlayer(getCreatureByName(param[1])) == TRUE then doPlayerSendTextMessage(getCreatureByName(param[1]), 22, "Seus pontos foram para o depot!") doPlayerAddDepotItems(getCreatureByName(param[1]),{[param[2]] = param[3]}) end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.") end return true end
  9. function onLogin(cid) local rate = 1.2 -- 10% a mais de exp. local config = { hasVip = "You have "..((rate - 1)*100).."% rom exp! Enjoy the benefits vip donate!", -- mensagem apenas para vip hasVip = "Hello player enjoy the benefits vip, you will win "..((rate - 1)*100).."% more than xp!", -- mensagem para quem não é vip } if not (string.find(tostring(getCreatureName(cid)),"Account Manager")) or getPlayerGroupId(cid) >= 3 then if isPremium(cid) == true then doPlayerSetExperienceRate(cid, rate) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.hasVip) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.hasVip) end end return true end
  10. Mande um exemplo de buff que você usa no servidor.
  11. Crypter postou uma resposta no tópico em Suporte Tibia OTServer
    ---- By Crypter---- local acess = 4 -- apartir de que grupo vai pode passar function onStepIn(cid, item, position, fromPosition) if getPlayerAccess(cid) >= acess then doSendMagicEffect(getThingPos(cid), 12) else doTeleportThing(cid, fromPosition, true) doSendMagicEffect(getThingPos(cid), 2) doPlayerSendTextMessage(cid, 25, "Você não pode passar aqui.") end return true end
  12. Crypter postou uma resposta no tópico em Suporte Tibia OTServer
    Sua Spell usa uma função com o mesmo nome. Poste a script
  13. Manda print do item no item editor e object builder . ( Aperta a tecla Print Screen SysRq , e da Ctrl + V no paint e salva )
  14. function onLogin(cid) Significa que é um Creaturescripts do tipo Login .
  15. È a correção da script Promote 1, teste e me diga o resultado
  16. local firstItems = { 1,--itemid 2, 3, 4, 5, 6, 7, } local bagid = 1999 function onLogin(cid) if not getCreatureName(cid) == "Account manager" then if getPlayerStorageValue(cid, 9999999) < 1 then for i=1, #firstItems do doPlayerAddItem(cid, firstItems[i], 1) end local bag = doPlayerAddItem(cid, bagid, 1) setPlayerStorageValue(cid, 9999999, 1) doPlayerSendCancel(cid,"Voce recebeu seus items !") end end return true end
  17. Isso é na source
  18. Posta a script ninguem aqui faz milagre adivinhando codigo ahsahsahsahs
  19. Crypter postou uma resposta no tópico em Suporte Tibia OTServer
    Ele fica dando essa mensagem porque o player precisar ter a Storage 35700,1

Informação Importante

Confirmação de Termo