Ir para conteúdo

FlamesAdmin

Infante
  • Total de itens

    1550
  • Registro em

  • Última visita

  • Dias Ganhos

    19

Tudo que FlamesAdmin postou

  1. Esse unique item system padrão de PDA é bugado, aconselho adicionar o do Tony Araújo e compilar seu servidor com o mesmo. Já tive o mesmo problema de arrastar o item com atributo de unique padrão do PDA
  2. local starterpokes = { ["Weedle"] = {x = 53, y = 70, z = 7}, ["Rattata"] = {x = 51, y = 70, z = 7}, ["Caterpie"] = {x = 49, y = 70, z = 7}, ["Bellsprout"] = {x = 43, y = 70, z = 7}, ["Oddish"] = {x = 45, y = 70, z = 7}, ["Sunkern"] = {x = 47, y = 70, z = 7}, ["Pidgey"] = {x = 55, y = 70, z = 7}, } local level = 5 -- LEVEL DO POKE local extrastr = 1.5 -- FORÇA ADICIONAL( CASO NÃO QUEIRA BASTA APAGAR A LINHA) local btype = "normal" local storage = 72785 function onUse(cid, item, frompos, item2, topos) if getPlayerLevel(cid) > 5 then return true end local pokemon = "" for a, b in pairs (starterpokes) do if isPosEqualPos(topos, b) then pokemon = a end end if pokemon == "" then return true end if getPlayerStorageValue(cid, storage) <= 0 then addPokeToPlayer(cid, pokemon, level, extrastr, nil, 0, btype, true, unique) -- COM FORÇA ADICIONAL --addPokeToPlayer(cid, pokemon, level, nil, 0, btype, true, unique) -- SEM FORÇA ADICIONAL doPlayerAddItem(cid, 2394, 10) -- ITEM QUE IRÁ GANHAR TAMBÉM doPlayerSendTextMessage(cid, 27, "You got your first pokemon! You also received some pokeballs to help you in your way.") doSendMagicEffect(getThingPos(cid), 29) doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) doSendMagicEffect(getThingPos(cid), 27) doSendMagicEffect(getThingPos(cid), 29) else doPlayerSendCancel(cid, "Você já pegou seu Pokémon") end return TRUE end Testa ai, configure no starterpokes os pokémons e as posições dos baús de cada um deles no mapa, os itens abaixo da função AddPokeToPlayer e também o level do player if getPlayerLevel(cid) > 5 then (level 5 ou maior que 5 pode abrir o baú)
  3. @kamus9629seu servidor possui level system? Você quer fazer baú inicial que da pokémon?
  4. FlamesAdmin

    Unique Item?

    function onUse(cid, item, fromPosition, itemEx, toPosition) if getPlayerStorageValue(cid, 326989) <= 0 then local item = doPlayerAddItem(cid, ItemID, Quantidade) doItemSetAttribute(item, "unique", 1) setPlayerStorageValue(cid, 326989, 1) return true else doPlayerSendTextMessage(cid, 20, "You already completed this quest!") return true end end
  5. FlamesAdmin

    Unique Item?

    @kamus9629é só colocar o atributo abaixo local item = doPlayerAddItem(cid, ItemID, Quantidade) doItemSetAttribute(item, "unique", 1)
  6. Tenta assim local effects = { --Goku-- [915] = 672, } function onThink(interval) for _, pid in ipairs(getPlayersOnline()) do local effect = effects[getPlayerVocation(pid)] local sps = getThingPosWithDebug(cid) sps.x = sps.x+1 sps.y = sps.y+0 doSendMagicEffect(sps, effect) end return true end Nas linhas \/ você consegue modificar a posição do efeito. O X é +direita e -esquerda, Y é +baixo e -cima sps.x = sps.x+1 sps.y = sps.y+0
  7. Eu até tenho uma 0.4 aqui com isso corrigido, mas não consegui extrair os códigos com a correção if(lootBlock.actionId != -1) tmpItem->setActionId(lootBlock.actionId); Desse jeito /\ o servidor crasha quando dropa Minhas sources: Item* MonsterType::createLoot(const LootBlock& lootBlock) { uint16_t item = lootBlock.ids[0], random = Monsters::getLootRandom(); if(lootBlock.ids.size() > 1) item = lootBlock.ids[random_range((size_t)0, lootBlock.ids.size() - 1)]; Item* tmpItem = NULL; if(Item::items[item].stackable) { if(random < lootBlock.chance) tmpItem = Item::CreateItem(item, (random % lootBlock.count + 1)); } else if(random < lootBlock.chance) tmpItem = Item::CreateItem(item, 0); if(!tmpItem) return NULL; if(lootBlock.subType != -1) tmpItem->setSubType(lootBlock.subType); if(lootBlock.actionId != -1) tmpItem->setAttribute("aid", lootBlock.actionId); if(lootBlock.uniqueId != -1) tmpItem->setUniqueId(lootBlock.uniqueId); if(!lootBlock.text.empty()) tmpItem->setText(lootBlock.text); return tmpItem; }
  8. Então, eu fiz desse jeito tbm, só que tbm não deu certo seu é que tfs? Na minha source em monsters.cpp era assim, só que crashava qnd dropava com AID if(lootBlock.actionId != -1) tmpItem->setAttribute(lootBlock.actionId); Ai o Orochi Elf/Tony Namoral fez isso if(lootBlock.actionId != -1) tmpItem->setAttribute("aid", lootBlock.actionId); Só que não dropa com AID ... @Lokyscomo ta sua função no monsters.cpp Item* MonsterType::createLoot(const LootBlock& lootBlock)
  9. 1- a exp dos pokes são configuradas tudo no xml de cada pokemon
  10. É pra quest, ela dropa com AID e usa pra abrir porta Ai pra monstros diferentes ela dropa a mesma ou outra key com AID diferente pra liberar outra porta
  11. Achei essa solução ai no OTLand e mesmo assim não deu certo
  12. @Yan18key padrão do servidor, ID 2086, já tentei com item diferente e tals
  13. Seguinte, estou com um probleminha no meu servidor/sources que ele não dropa uma key com ActionID Ele apenas dropa como se fosse item normal. 18:54 Você vê purple key (Key:0). ItemID: [2086]. Se alguém tiver uma solução e puder ajudar ficarei grato e darei a devida reputação
  14. vai no RME e em Map>Properties>Client version e altere para 8.54
  15. FlamesAdmin

    colocar tempo e...

    tem o sistema completo? Se sim, poderia postar em um tópico?
  16. Servidor muito bom, recomendo xD Sucesso!
  17. FlamesAdmin

    (Pedido) Itens

    deve ser seu unique system https://www.xtibia.com/forum/topic/249391-c-unique-item-system-atualizado-no-bugs/
  18. FlamesAdmin

    (Pedido) Itens

    function onUse (cid,item,frompos,item2,topos) UID_DO_BAU = 53440 STORAGE_VALUE = 53437 ID_DO_PREMIO = 2394 ID_DO_PREMIO2 = 2152 ID_DO_PREMIO3 = 12346 ID_DO_PREMIO4 = 12344 if getPlayerLevel(cid) >= 1 then if item.uid == UID_DO_BAU then queststatus = getPlayerStorageValue(cid,STORAGE_VALUE) if queststatus == -1 then doPlayerSendTextMessage(cid,22,"Voce Pegou Seu Kit Inicial, Boa Sorte Na Sua Jornada") local item1 = doPlayerAddItem(cid,ID_DO_PREMIO,20) doItemSetAttribute(item1, "unique", 1) local item2 = doPlayerAddItem(cid,ID_DO_PREMIO2,10) doItemSetAttribute(item2, "unique", 1) local item3 = doPlayerAddItem(cid,ID_DO_PREMIO3,5) doItemSetAttribute(item3, "unique", 1) local item4 = doPlayerAddItem(cid,ID_DO_PREMIO4,5) doItemSetAttribute(item4, "unique", 1) setPlayerStorageValue(cid,STORAGE_VALUE,1) else doPlayerSendTextMessage(cid,22,"Ta Vazio") end end else doPlayerSendCancel(cid,'Somente LvL 10+') end return 1 end
  19. @New'gadudlls.rar extrai e coloca todas na pasta do seu client, se dizer que tem repetida só substituir
  • Quem Está Navegando   0 membros estão online

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