Ir para conteúdo

SkyLigh

Lorde
  • Total de itens

    2183
  • Registro em

  • Última visita

  • Dias Ganhos

    23

Tudo que SkyLigh postou

  1. @SkyDangerous isso so foi um pedido eu nao copiei e sim criei e so to pensando em criar protection skills e lvl .
  2. título irregular reportado Para um superior.
  3. http://www.xtibia.com/forum/topic/189593-pedidoscript-ao-upar-certo-nivel/
  4. Olá galera do xtibia trago a vocês um sistema de bless que so pode ser usado uma vez que foi pedido por um amigo então eu fiz e meio básico mais vamos lá em data / talkactions / scripts / renome algum arquivo para bless1.lua e adicione . local bless = {1, 2, 3, 4, 5} local price = 20000 -- precisa que vai ser a bless local storage = 2918 function onSay(cid, words, param) if getPlayerStorageValue(cid,7295) >= 1 then doPlayerSendTextMessage(cid, 22, "Desculpe voce ja uso o comando") return true end for i = 1, table.maxn(bless) do if getPlayerBlessing(cid, bless[i]) then doPlayerSendTextMessage(cid,22,"Voce ja esta utilizando bless") return TRUE end end if(doPlayerRemoveMoney(cid, price) == TRUE) then for i = 1, table.maxn(bless) do doPlayerAddBlessing(cid, bless[i]) setPlayerStorageValue(cid,7295,1) end doPlayerSendTextMessage(cid,22,"voce comprou a bless") else doPlayerSendTextMessage(cid,22,"voce nao tem dinheiro suficiente") return TRUE end end em talkactions.xml <talkaction words="!bless" script="bless1.lua"/> dps e so se divertir créditos Skyligh 90 % ((Pelo script e postagem) Felipe 10 % ((Pelo Pedido)) Duvidas ao tópico
  5. SkyLigh

    Duvida Com Uh

    use assim . em data / action / scripts / e renome algum arquivo para vocrune.lua function onUse(cid, item, fromPosition, itemEx, toPosition) local knightmin = 400 -- quanto o knight vai heala no min local knightmax = 1100 -- quanto o knight vai heala no max local druidmin = 500 -- quanto o druid vai heala no min local druidmax = 700 -- quanto o druid vai heala no max local sorcerermin = 900 -- quanto o sorcerer vai heala no min local sorcerermax = 1000 -- quanto o sorcerer vai heala no max local paladinmin = 100 -- quanto o paladin vai heala no min local paladinmax = 200 -- quanto o paladin vai heala no maxlocal local knight,druid,sorcerer,paladin = 4,2,1,3 -- nao mexa local storage = 11548 local exhau = 3 -- quantos segundos pra usar denovo a potion if getPlayerVocation(cid) <= knight and doCreatureAddHealth(itemEx.uid, math.random(knightmin, knightmax)) then return true elseif getPlayerLevel(cid) <= druid and doCreatureAddHealth(itemEx.uid, math.random(druidmin, druidmax)) then return true elseif getPlayerLevel(cid) <= sorcerer and doCreatureAddHealth(itemEx.uid, math.random(sorcerermin, sorcerermax)) then return true elseif getPlayerLevel(cid) <= paladin and doCreatureAddHealth(itemEx.uid, math.random(paladinmin, paladinmax)) then return true elseif (getPlayerStorageValue(cid, storage) <= os.time()) then setPlayerStorageValue(cid,config.s,os.time()+exhau) doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE) doCreatureSay(itemEx.uid, "Curado..", TALKTYPE_ORANGE_1) return true end end em actions.xml <action itemid="ID DA RUNA" script="vocrune.lua"/>
  6. Como assim muted ? explica direito
  7. duvida sanada reportado Para um superior
  8. duvida sanada reportado Para um superior
  9. nao posso afirma so testa . . e configura sua storage
  10. tente usar esses . esse eu editei do leoxtibia e o do vodkart n testei . esse eu so editei rapidinho em data / creaturescripts / scripts / function onLogin(cid) if getPlayerStorageValue(cid, 9238) <= 0 then local acc = getAccountIdByName(getCreatureName(cid)) if acc ~= 0 then addVipDaysByAccount(acc, 1) setPlayerStorageValue(cid, 9238,1) doCreatureSay(cid, "Você ganhou 1 dia de VIP!", TALKTYPE_ORANGE_1) end end return true end esse e o link dos script http://www.xtibia.com/forum/topic/189134-quando-o-player-logar-ganhar-1-dia-de-vip-automaticamente/ em creaturescripts.xml <event type="login" name="vipdays" event="script" value="NOMEDOSEUARQUIVO.lua"/>
  11. o problema da no ot ou no rme .
  12. o dat e o spr e mais fácil você ir na pasta do tibia e pegar a versao que qer . e pro items.otb ele funcionara em todas as versões Vá nas sources do seu servidor, abra seu items.cpp e procure por: if(Items::dwMajorVersion == 0xFFFFFFFF) std::clog << "[Warning - Items::loadFromOtb] items.otb using generic client version." << std::endl; else if(Items::dwMajorVersion < 3) { std::clog << "[Error - Items::loadFromOtb] Old version detected, a newer version of items.otb is required." << std::endl; return ERROR_INVALID_FORMAT; } else if(Items::dwMajorVersion > 3) { std::clog << "[Error - Items::loadFromOtb] New version detected, an older version of items.otb is required." << std::endl; return ERROR_INVALID_FORMAT; } else if(!g_config.getBool(ConfigManager::SKIP_ITEMS_VERSION) && Items::dwMinorVersion != CLIENT_VERSION_920) { std::clog << "[Error - Items::loadFromOtb] Another (client) version of items.otb is required." << std::endl; return ERROR_INVALID_FORMAT; } Agora substitua isso tudo por isso: /*if(Items::dwMajorVersion == 0xFFFFFFFF) std::clog << "[Warning - Items::loadFromOtb] items.otb using generic client version." << std::endl; else if(Items::dwMajorVersion < 3) { std::clog << "[Error - Items::loadFromOtb] Old version detected, a newer version of items.otb is required." << std::endl; return ERROR_INVALID_FORMAT; } else if(Items::dwMajorVersion > 3) { std::clog << "[Error - Items::loadFromOtb] New version detected, an older version of items.otb is required." << std::endl; return ERROR_INVALID_FORMAT; } else if(!g_config.getBool(ConfigManager::SKIP_ITEMS_VERSION) && Items::dwMinorVersion != CLIENT_VERSION_920) { std::clog << "[Error - Items::loadFromOtb] Another (client) version of items.otb is required." << std::endl; return ERROR_INVALID_FORMAT; }*/ e subsitue por isso /*if(Items::dwMajorVersion == 0xFFFFFFFF) std::clog << "[Warning - Items::loadFromOtb] items.otb using generic client version." << std::endl; else if(Items::dwMajorVersion < 3) { std::clog << "[Error - Items::loadFromOtb] Old version detected, a newer version of items.otb is required." << std::endl; return ERROR_INVALID_FORMAT; } else if(Items::dwMajorVersion > 3) { std::clog << "[Error - Items::loadFromOtb] New version detected, an older version of items.otb is required." << std::endl; return ERROR_INVALID_FORMAT; } else if(!g_config.getBool(ConfigManager::SKIP_ITEMS_VERSION) && Items::dwMinorVersion != CLIENT_VERSION_920) { std::clog << "[Error - Items::loadFromOtb] Another (client) version of items.otb is required." << std::endl; return ERROR_INVALID_FORMAT; }*/
  13. SkyLigh

    Blessing

    http://www.xtibia.com/forum/topic/177979-level-protection/
  14. testa dnv . -- !back by Forcera -- -- Ideia by TheGODMaX -- function onSay(cid, words, param, channel) npos2 = getPlayerMasterPos(cid) poszao = {x=npos2.x, y=npos2.y, z=npos2.z} pos = getCreaturePosition(cid) if getCreatureCondition(cid, CONDITION_INFIGHT) then doPlayerSendCancel(cid, "Voce so podera usar se estiver sem battle.") end if getTilePzInfo(getPlayerPosition(cid)) == true then if pos.z == 0 then doTeleportThing(cid, poszao) doRemoveCondition(cid, CONDITION_OUTFIT) doSendMagicEffect(poszao, 14) end end end
  15. duvida sanada reportado Para um superior
  16. Faza assim . -- !back by Forcera -- -- Ideia by TheGODMaX -- function onSay(cid, words, param, channel) npos2 = getPlayerMasterPos(cid) poszao = {x=npos2.x, y=npos2.y, z=npos2.z} pos = getCreaturePosition(cid) if getTilePzInfo(getPlayerPosition(cid)) == true then if pos.z == 0 then doTeleportThing(cid, poszao) doRemoveCondition(cid, CONDITION_OUTFIT) doSendMagicEffect(poszao, 14) end if getCreatureCondition(cid, CONDITION_INFIGHT) then return doPlayerSendCancel(cid, "Voce so podera usar se estiver sem battle.") end end end
  17. local incorreto reportado Para um superior e título irregular .
  18. SkyLigh

    Dano Da Sd!

    duvida sanada reportado .
  19. @cogames a questão não e essa os membros que ajudam nao frequentam muito esta area você posto em area de intrevistas assim vai ser difícil alguem consiguir ajudar.
  20. Local incorreto reportado Para um superior
  21. Local incorreto reportado O Certo seria em pedidos e duvidas de servidores derivados.
  22. Seu script esta com muitos erros . o seu no certo ficaria assim . local MIN = 3.8 local MAX = 4.0 local voc = {1,2,5,6} local exhaust = createConditionObject(CONDITION_EXHAUST) setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100)) function onUse(cid, item, fromPosition, itemEx, toPosition) if isPlayer(itemEx.uid) == FALSE then if getPlayerVocation(cid) ~= voc then return FALSE end if hasCondition(cid, CONDITION_EXHAUST_HEAL) == TRUE then doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED) return TRUE end if doPlayerAddMana(itemEx.uid, math.random((getPlayerLevel(cid) * MIN), (getPlayerLevel(cid) * MAX))) == LUA_ERROR then return FALSE end doAddCondition(cid, exhaust) doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE) doCreatureSay(itemEx.uid, "", TALKTYPE_ORANGE_1) end return TRUE end Veja este http://www.xtibia.com/forum/topic/195403-runa-heal-por-level/page__p__1352519#entry1352519
  23. Novamente meus parabéns @Luck
  24. Olá Lug123 esse script ja existe no fórum irei lhe da 24 horas para por os créditos se nao eu irei reporta-lo
  • Quem Está Navegando   0 membros estão online

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