Ir para conteúdo

bpm91

Membro
  • Registro em

  • Última visita

Tudo que bpm91 postou

  1. a blz vou fazer @Vodkart ao logar recebi os itens 2 cordas 1 bp e uma garrafa quebrada e ao sair de rook recebi outros "os msm"
  2. @Vodkart sim eu fechei e abri esse é o login local config = { loginMessage = getConfigValue('loginMessage'), useFragHandler = getBooleanFromString(getConfigValue('useFragHandler')) } function onLogin(cid) accountManager = "Account Manager" managerCounter = 0 for i, player in ipairs(getOnlinePlayers()) do if accountManager:lower() == player:lower() then managerCounter = managerCounter + 1 end end if managerCounter >= 3 then return false end 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, "Idle") if(config.useFragHandler) then registerCreatureEvent(cid, "SkullCheck") end registerCreatureEvent(cid, "ReportBug") registerCreatureEvent(cid, "AdvanceSave") registerCreatureEvent(cid, "attackguild") registerCreatureEvent(cid, "advance") registerCreatureEvent(cid, "FimVip") registerCreatureEvent(cid, "SkullCheck") registerCreatureEvent(cid, "demonOakLogout") registerCreatureEvent(cid, "demonOakDeath") registerCreatureEvent(cid, "ReportBug") registerCreatureEvent(cid, VipReceive) registerCreatureEvent(cid, "PlayerKill") registerCreatureEvent(cid, "KillingInTheNameOf") if (InitArenaScript ~= 0) then InitArenaScript = 1 for i = 42300, 42309 do setGlobalStorageValue(i, 0) setGlobalStorageValue(i+100, 0) end end if getPlayerStorageValue(cid, 42309) < 1 then for i = 42300, 42309 do setPlayerStorageValue(cid, i, 0) end end if getPlayerStorageValue(cid, 42319) < 1 then for i = 42310, 42319 do setPlayerStorageValue(cid, i, 0) end end 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) end setPlayerStorageValue(cid, 42350, 0) setPlayerStorageValue(cid, 42352, 0) return true end e aqui as imagens do creaturescript
  3. @Vodkart o q aconteceu quando removi o do mods foi; o char veio sem nenhum item, depois fui pra main e veio os msm itens da foto. porém no vocação 0 eu coloquei um id qualqer pra ver se o char iria nascer com esse item e ele veio pelado msm estou tentando descobrir de onde ta vindo esse brass set local firstItems = {} firstItems[0] = { 2233 } firstItems[1] = { 2190 } firstItems[2] = { 2182 } firstItems[3] = { 2389 } firstItems[4] = { 2412 2449 2405 } function onLogin(cid) if getPlayerStorageValue(cid, 30002) == -1 then for i = 1, table.maxn(firstItems[getPlayerVocation(cid)]) do doPlayerAddItem(cid, firstItems[getPlayerVocation(cid)], 1) end if getPlayerSex(cid) == 0 then doPlayerAddItem(cid, 2120, 1) else doPlayerAddItem(cid, 2120, 1) end local bag = doPlayerAddItem(cid, 1988, 1) doAddContainerItem(bag, 2120, 1) setPlayerStorageValue(cid, 30001, 1) end return TRUE end
  4. a unica coisa q tem no meu mods é o firstitens outra coisa q eu percebi é q os 2 estão com o nome first itens n sei se isso influenciaria pois 1 é do mods e o outro é do data
  5. alguem sabe o q pode ser? olha os first itens o druid deveria ganhar apenas uma snakebit o sorc uma vortex o kina 3 armas iniciais porém ta vindo com brass set, armas nada a ver
  6. o meu mods ta assim o unico scritp q faria sentido seria o first itens só q os first itens aqui são quando voce cria o char em rook nao tem nada a ver com o brass set <?xml version="1.0" encoding="UTF-8"?> <mod name="First Items" version="1.0" author="Dener Diegoli" contact="[email protected]" enabled="yes"> <config name="firstitems_config"><![CDATA[ config = { storage = 30001, items = {2050, 2398} } ]]></config> <event type="login" name="FirstItems" event="buffer"><![CDATA[ domodlib('firstitems_config') if(getPlayerStorageValue(cid, config.storage) > 0) then return end for _, id in ipairs(config.items) do doPlayerAddItem(cid, id, 1) end if(getPlayerSex(cid) == PLAYERSEX_FEMALE) then doPlayerAddItem(cid, 2651, 1) else doPlayerAddItem(cid, 2650, 1) end doAddContainerItem(doPlayerAddItem(cid, 1987, 1), 2120, 1) doPlayerAddItem(cid, 2674, 1) setPlayerStorageValue(cid, config.storage, 1) ]]></event> </mod> enquanto ao voc ele ta assim <?xml version="1.0" encoding="UTF-8"?> <vocations> <vocation id="0" clientId="0" name="None" description="none" needpremium="0" gaincap="10" gainhp="5" gainmana="5" gainhpticks="4" gainhpamount="4" gainmanaticks="6" gainmanaamount="3" manamultiplier="4.0" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="0" attackable="no" droploot="no"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="1" clientId="3" name="Sorcerer" description="a sorcerer" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="8" gainhpamount="2" gainmanaticks="3" gainmanaamount="3" manamultiplier="1.1" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="1"> <formula meleeDamage="0.7" distDamage="0.7" wandDamage="1.0" magDamage="0.9" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="2" clientId="4" name="Druid" description="a druid" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="8" gainhpamount="2" gainmanaticks="3" gainmanaamount="3" manamultiplier="1.1" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="2"> <formula meleeDamage="0.7" distDamage="0.7" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="3" clientId="2" name="Paladin" description="a paladin" needpremium="0" gaincap="20" gainhp="10" gainmana="15" gainhpticks="6" gainhpamount="3" gainmanaticks="4" gainmanaamount="4" manamultiplier="1.4" attackspeed="1800" soulmax="100" gainsoulticks="120" fromvoc="3"> <formula meleeDamage="1.0" distDamage="1.1" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> <vocation id="4" clientId="1" name="Knight" description="a knight" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="4" gainhpamount="2" gainmanaticks="6" gainmanaamount="4" manamultiplier="3.0" attackspeed="1800" soulmax="100" gainsoulticks="120" fromvoc="4"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> <vocation id="5" clientId="3" name="Master Sorcerer" description="a master sorcerer" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="6" gainhpamount="2" gainmanaticks="2" gainmanaamount="4" manamultiplier="1.1" attackspeed="2000" soulmax="200" gainsoulticks="1" fromvoc="1" lessloss="30"> <formula meleeDamage="0.7" distDamage="0.7" wandDamage="1.0" magDamage="0.9" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="6" clientId="4" name="Elder Druid" description="an elder druid" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="6" gainhpamount="2" gainmanaticks="2" gainmanaamount="4" manamultiplier="1.1" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="2" lessloss="30"> <formula meleeDamage="0.7" distDamage="0.7" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="7" clientId="2" name="Royal Paladin" description="a royal paladin" needpremium="1" gaincap="20" gainhp="10" gainmana="15" gainhpticks="5" gainhpamount="4" gainmanaticks="3" gainmanaamount="4" manamultiplier="1.4" attackspeed="1800" soulmax="200" gainsoulticks="15" fromvoc="3" lessloss="30"> <formula meleeDamage="1.0" distDamage="0.9" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/> </vocation> <vocation id="8" clientId="1" name="Elite Knight" description="an elite knight" needpremium="1" gaincap="25" gainhp="15" gainmana="5" gainhpticks="4" gainhpamount="4" gainmanaticks="6" gainmanaamount="4" manamultiplier="3.0" attackspeed="1800" soulmax="200" gainsoulticks="15" fromvoc="4" lessloss="30"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/> @tetheuscunha alguem pode me ajudar?
  7. bpm91 postou uma resposta no tópico em Suporte Tibia OTServer
    alguem pode me ajudar?
  8. modifiquei esse script pra cada vocação começar apenas com a arma principal dela de cada vocação, porém o que acontece é , está começando com brass set, 5 brown mushroom e dwarven shield e spell book em todas as vocações isso acontece. além disso todas as vocações inclusive de rook quando morre perde todo o set. alguem me ajuda? local firstItems = {} firstItems[0] = { 2398, 2643, 2485,1 } firstItems[1] = { 2190 } firstItems[2] = { 2182 } firstItems[3] = { 2389 } firstItems[4] = { 2412, 2449, 2405 } function onLogin(cid) if getPlayerStorageValue(cid, 30001) == -1 then for i = 1, table.maxn(firstItems[getPlayerVocation(cid)]) do doPlayerAddItem(cid, firstItems[getPlayerVocation(cid)], 1) end if getPlayerSex(cid) == 0 then doPlayerAddItem(cid, 2120, 1) else doPlayerAddItem(cid, 2120, 1) end local bag = doPlayerAddItem(cid, 1988, 1) doAddContainerItem(bag, 2120, 1) setPlayerStorageValue(cid, 30001, 1) end return TRUE end meu config lua é esse ( n sei se tem a ver) -- Deathlist deathListEnabled = true deathListRequiredTime = 1 * 60 * 1000 deathAssistCount = 18 maxDeathRecords = 20 -- Guilds ingameGuildManagement = true levelToFormGuild = 20 premiumDaysToFormGuild = 1 guildNameMinLength = 3 guildNameMaxLength = 20 -- Premium-related freePremium = false premiumForPromotion = true -- Blessings -- NOTE: blessingReduction* regards items/containers loss. -- eachBlessReduction is how much each bless reduces the experience/magic/skills loss. blessings = true blessingOnlyPremium = false blessingReductionBase = 50 blessingReductionDecrement = 5 eachBlessReduction = 10 e minha pasta de creature é essa.
  9. <vocation id="0" clientId="0" name="None" description="none" needpremium="0" gaincap="10" gainhp="5" gainmana="5" gainhpticks="4" gainhpamount="4" gainmanaticks="6" gainmanaamount="3" manamultiplier="4.0" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="0" attackable="no" droploot="no"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> ele dropa tudo do corpo
  10. eu acho que era no config lua estava true coloquei false displayCriticalHitNotify = false irei testar ei vc poderia me dizer porque o meu personagem em rook perde todos os itens? em vocations o id 0 de rookies char está com droploot = 0
  11. n deu =/ eu adicionei a maçã fora da bag, a ideia era de ficar dentro da bag mas n deu certo, gostaria de remover aquela msg em vermelho que aparece ali teria ideia do q é?
  12. eu tentei fazer diversas vezes adicionar corda e shovel dentro da bag do char iniciante mas nao consegui <?xml version="1.0" encoding="UTF-8"?> <mod name="First Items" version="1.0" author="Dener Diegoli" contact="[email protected]" enabled="yes"> <config name="firstitems_config"><![CDATA[ config = { storage = 30001, items = {2050, 2398} } ]]></config> <event type="login" name="FirstItems" event="buffer"><![CDATA[ domodlib('firstitems_config') if(getPlayerStorageValue(cid, config.storage) > 0) then return end for _, id in ipairs(config.items) do doPlayerAddItem(cid, id, 1) end if(getPlayerSex(cid) == PLAYERSEX_FEMALE) then doPlayerAddItem(cid, 2651, 1) else doPlayerAddItem(cid, 2650, 1) end doAddContainerItem(doPlayerAddItem(cid, 1987, 1), 2674, 1) setPlayerStorageValue(cid, config.storage, 1) ]]></event> </mod> vc tem ideia de como ficaria o codigo em doaddcontainer item?
  13. boa tarde gente, eu estou finalizando meu ot, e descobri que isso aparece no meu personagem, porém nao é quando sobe de level, é de repente que isso aparece. alguem sabe aonde eu arrumo isso? a outra coisa é que quando saio de rook guard eu recebo uma backpack com itens dentro, alguem sabe aonde fica essa pasta pra eu remover?
  14. Atualmente mexendo no meu ot, descobri que os monstros que ficam invisiveis não recebem as runas de target unico, exemplo sd, hmm, lmm, icicle rune, porém quando eu vou em spells e removo "needtarget=1" eu consigo usar essas runas no piso, bem eu precisava que os monstros invisiveis recebecem essas runas quando invisiveis. uso tfs 0.4
  15. segue imagens com script local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITAREA) setCombatParam(combat, COMBAT_PARAM_USECHARGES, true) local area = createCombatArea(AREA_SQUARE1X1) setCombatArea(combat, area) function onGetFormulaValues(cid, level, skill, attack, factor) local skillTotal, levelTotal = skill, level / 5 return -(skillTotal * 0.5 + levelTotal), -(skillTotal * 1.5 + levelTotal) end setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues") function onCastSpell(cid, var) return doCombat(cid, combat, var) end
  16. agora funcionou, eu descobri q quando da use nele ele faz isso. eu pensei q era igual do global, quando vc retira ele da posição isso acontece. huaehuae deu certo sim desse jeito. será q ess script é capaz d ser mudado pra "se removido"?
  17. coloquei isso em actions <action actionid="60999" script="parch.lua" /> coloquei o script igual o seu so mudei as posiçoes local cfg = { playerStorage = 60999, globalStorage = 60999, time = 60 * 60 * 24, -- Tempo em segundos positions = { {x=33060, y=31623, z=15}, {x=33066, y=31623, z=15}, {x=33060, y=31627, z=15}, {x=33066, y=31627, z=15} } } function isCooldownReady() return os.time() > getGlobalStorageValue(cfg.globalStorage) end function onUse(cid, item, frompos, item2, topos) if not isCooldownReady() then return true end for _, t in pairs(cfg.positions) do doSummonCreature("Demon", t) end setPlayerStorageValue(cid, cfg.playerStorage, 1) setGlobalStorageValue(cfg.globalStorage, os.time() + cfg.time) end porém n funciona e tb n da erro na distro
  18. Os monstros só podem ser invocados uma vez por dia, independente do jogador que o tenha feito; 
  19. fiz como vc disse local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITAREA) setCombatParam(combat, COMBAT_PARAM_USECHARGES, true) local area = createCombatArea(AREA_SQUARE1X1) setCombatArea(combat, area) function onGetFormulaValues(cid, level, skill, attack, factor) local skillTotal, levelTotal = skill, level / 5 return -(skillTotal * 0.5 + levelTotal), -(skillTotal * 1.5 + levelTotal) end setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues") function onCastSpell(cid, var) return doCombat(cid, combat, var) end
  20. eu usei essa local cfg = { playerStorage = 60999, globalStorage = 60999, minutes = 30, positions = { {x=33060, y=31623, z=15}, {x=33066, y=31623, z=15}, {x=33060, y=31627, z=15}, {x=33066, y=31627, z=15} } } function onUse(cid, item, frompos, item2, topos) if getGlobalStorageValue(cfg.globalStorage) < 1 and getPlayerStorageValue(cid, cfg.playerStorage) < 1 then for _, t in pairs(cfg.positions) do doSummonCreature("Demon", t) end setPlayerStorageValue(cid, cfg.playerStorage, 1) setGlobalStorageValue(cfg.globalStorage, 1) addEvent(setGlobalStorageValue, cfg.minutes * 60000, 60999, -1) end end
  21. eu tentei mas segue batendo mais forte com a arma, tb fui em spells e tirei o needweapon"1" e coloquei 0 que estranho eu copiei exatamente oq vc me mandou.
  22. boa noite, alguem sabe me dizer qual script eu adiciono ao meu para a pessoa nao poder pisar em cima do baú de quest e qual eu adiciono pros itens vir dentro da bag? a outra duvida é como fazer um script pra nascer os 4 demons da parchment quest apenas 1x por dia? ja tentei de tudo e nao consegui, eu uso tfs 0.4 function onUse(cid, item, frompos, item2, topos) if getPlayerStorageValue(cid,8077) == -1 then doPlayerAddItem (cid,2151,2) doPlayerAddItem (cid,2165,1) chave = doPlayerAddItem(cid,2091,1) doItemSetActionId(chave,6010) setPlayerStorageValue(cid,8077,1) doPlayerSendTextMessage(cid,25,"You found a 2 talons, stealth ring and golden key !") return true end if getPlayerStorageValue(cid,8077) == 1 then doPlayerSendTextMessage(cid,25,"It's empty.") return true end end
  23. aproveitando que vc aparenta entender bastante de 0.4 saberia me dizer como faço pro meu exori usar apenas skills e lvl. e remover a arma dele?

Informação Importante

Confirmação de Termo