Ir para conteúdo

sauvadur

Membro
  • Registro em

  • Última visita

  1. Boa noite. Estou com um problema ao adicionar armas que usam o skill fist para dar dano. Ao abrir o servidor, ele não reconhece o weapontype fist, como na imagem abaixo. Como faço para adicionar?
  2. Muito obrigado pelas explicações, irei aprender sobre isso.
  3. sauvadur reagiu a uma resposta no tópico: Arma fist não pode ser equipada
  4. Sou iniciante nesse meio, pode me instruir a fazer isso?
  5. Continua o erro. Eu alterei de FIST para SWORD e como SWORD funciona normalmente. O erro é mesmo que o servidor não reconhece o termo FIST no items.xml quando coloco o weapontype.
  6. Olá. Estou procurando um script que faça o seguinte: O jogador equipa o item (uma wand) e apenas com ela o jogador pode usar algumas novas magias (além das normais). Tentei diversos scripts mas não consegui fazer funcionar. Agradeço a ajuda.
  7. O problema é o atributo fist no WeaponType no items.xml Peguei uma carlin sword e alterei pra FIST em vez de SWORD. Não consegui equipar ela também Quando eu abro o servidor, no log, aparece essa mensagem enquanto carrega o servidor "[WARNING - ITEMS::PARSEITEMNODE] UNKNOWN WEAPONTYPE: FIST Acredito que esse seja o erro, mas não sei como resolver.
  8. Criei uma nova vocação chamada fighter que usa o skill fist e armas que são itens que não podem ser equipaveis, como bear paw por exemplo. Alterei no ITEMS.XML um item que quero que possa ser equipado e use fist como atributo de ataque. <item id="10567" article="a" name="polar bear paw"> <attribute key="weight" value="2500" /> <attribute key="defense" value="10" /> <attribute key="attack" value="12" /> <attribute key="weaponType" value="fist" /> </item> Em MOVEMENTS.XML alterei a vocação e a possibilidade do item ser equipado ou não <movevent event="DeEquip" itemid="10567" slot="hand" function="onDeEquipItem" /> <movevent event="Equip" itemid="10567" slot="hand" level="8" function="onEquipItem"> <vocation name="Fighter" /> <vocation name="Fighter" showInDescription="0" /> </movevent> Mas mesmo assim, ainda não consigo utilizar o item em nenhuma vocação a mensagem que aparece é "You cannot dress this object here". O que fazer?
  9. sauvadur postou uma resposta no tópico em Suporte Bots
    RESOLVIDO
  10. sauvadur postou uma resposta no tópico em Suporte Tibia OTServer
    Bom, eu sempre criei OT server nas versões 8.5 até 8.6 e agora queria criar um 10.9 mas ele é bem diferente do 8.6 Baixei tudo, inclusive o executável do TFS. Mas quando abro o SV da essa msg : Meu config lua está assim: worldType = "pvp" hotkeyAimbotEnabled = "yes" protectionLevel = 8 killsToRedSkull = 5 killsToBlackSkull = 8 pzLocked = 60000 removeAmmoWhenUsingDistanceWeapon = "yes" removeChargesFromRunes = "yes" timeToDecreaseFrags = 8 * 60 * 60 * 1000 whiteSkullTime = 15 * 60 * 1000 stairJumpExhaustion = 2000 experienceByKillingPlayers = "no" ip = "MEU IP" bindOnlyGlobalAddress = "yes" loginProtocolPort = 7171 gameProtocolPort = 7172 statusProtocolPort = 7171 maxPlayers = "1000" motd = "Welcome to Thornia!" onePlayerOnlinePerAccount = "yes" allowClones = "no" serverName = "Thornia" statusTimeout = 60000 replaceKickOnLogin = "yes" maxPacketsPerSecond = 300 pushCreatureDelay = 1 * 1000 deathLosePercent = -1 housePriceEachSQM = 1000 houseRentPeriod = "never" timeBetweenActions = 200 timeBetweenExActions = 1000 mapName = "realmap" mapAuthor = "Thornia" marketOfferDuration = 30 * 24 * 60 * 60 premiumToCreateMarketOffer = "yes" checkExpiredMarketOffersEachMinutes = 60 maxMarketOffersAtATimePerPlayer = 100 mysqlHost = "127.0.0.1" mysqlUser = "root" mysqlPass = "@%55874012" mysqlDatabase = "global" mysqlPort = 3306 mysqlSock = "" passwordType = "sha1" allowChangeOutfit = "yes" freePremium = "yes" kickIdlePlayerAfterMinutes = 200 maxMessageBuffer = 4 noDamageToSameLookfeet = "no" emoteSpells = "no" rateExp = 50 rateSkill = 20 rateLoot = 10 rateMagic = 7 rateSpawn = 1 deSpawnRange = 2 deSpawnRadius = 50 staminaSystem = "yes" defaultPriority = "high" startupDatabaseOptimization = "no" ownerName = "" ownerEmail = "" url = "http://otland.net/" location = "Canada"
  11. O Action do item está assim: local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid local msg = string.lower(msg) local config = { items = {2157,50}, level = 100, promotion = 2 } if isInArray({"promot","promotion", "promover", "promo", "promote"}, msg) then npcHandler:say("I can promote you for "..config.items[2].." "..getItemNameById(config.items[1])..". Do you want me to promote you? {yes}", cid) talkState[talkUser] = 1 setPlayerStorageValue(cid, 9484, 4) elseif (msgcontains(msg, 'yes') and talkState[talkUser] == 1) then if getPlayerLevel(cid) >= config.level then if (getPlayerPromotionLevel(cid) < config.promotion) then if doPlayerRemoveItem(cid, config.items[1], config.items[2]) then setPlayerPromotionLevel(cid, config.promotion) npcHandler:say("Congratulations! You are now promoted.", cid) else npcHandler:say("You need "..config.items[2].." "..getItemNameById(config.items[1]).."!", cid) end else npcHandler:say("You are already promoted!", cid) end else npcHandler:say("Sorry, You need level "..config.level.." or more to buy promotion!", cid) talkState[talkUser] = 0 end elseif isInArray({"no","nao"}, msg) then selfSay("Then not.", cid) talkState[talkUser] = 0 npcHandler:releaseFocus(cid) end return TRUE end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())SAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) Depois fiz um script pro creaturescripts: <event type="login" name="prom" script="second_prom.lua"/> E no second_prom.lua ficou: if getPlayerStorageValue(cid, 9484) > 0 then doPlayerSetVocation(cid, getPlayerStorageValue(cid, 9484)) end As vocations.xml estão assim: <?xml version="1.0" encoding="UTF-8"?> <vocations> <vocation id="0" name="None" description="none" needpremium="0" gaincap="5" gainhp="5" gainmana="5" gainhpticks="2" gainhpamount="5" gainmanaticks="1" gainmanaamount="5" manamultiplier="4.0" attackspeed="1600" soulmax="100" gainsoulticks="120" fromvoc="0" attackable="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" name="Sorcerer" description="a sorcerer" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="2" gainhpamount="5" gainmanaticks="1" gainmanaamount="5" manamultiplier="1.1" attackspeed="1600" soulmax="100" gainsoulticks="120" fromvoc="1"> <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="2" name="Druid" description="a druid" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="2" gainhpamount="5" gainmanaticks="1" gainmanaamount="5" manamultiplier="1.1" attackspeed="1600" soulmax="100" gainsoulticks="120" fromvoc="2"> <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="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="3" name="Paladin" description="a paladin" needpremium="0" gaincap="20" gainhp="10" gainmana="15" gainhpticks="2" gainhpamount="5" gainmanaticks="1" gainmanaamount="5" manamultiplier="1.4" attackspeed="1600" soulmax="100" gainsoulticks="120" fromvoc="3"> <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.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" name="Knight" description="a knight" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="5" gainmanaticks="1" gainmanaamount="5" manamultiplier="3.0" attackspeed="1600" 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" name="Master Sorcerer" description="a master sorcerer" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="2" gainhpamount="10" gainmanaticks="1" gainmanaamount="10" manamultiplier="1.1" attackspeed="1200" soulmax="200" gainsoulticks="15" fromvoc="1" 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.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" name="Elder Druid" description="an elder druid" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="2" gainhpamount="10" gainmanaticks="1" gainmanaamount="10" manamultiplier="1.1" attackspeed="1200" soulmax="200" gainsoulticks="15" fromvoc="2" 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.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" name="Royal Paladin" description="a royal paladin" needpremium="1" gaincap="20" gainhp="10" gainmana="15" gainhpticks="2" gainhpamount="10" gainmanaticks="1" gainmanaamount="10" manamultiplier="1.4" attackspeed="1200" soulmax="200" gainsoulticks="15" fromvoc="3" 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.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" name="Elite Knight" description="an elite knight" needpremium="1" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="10" gainmanaticks="1" gainmanaamount="10" manamultiplier="3.0" attackspeed="1200" 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"/> </vocation> <vocation id="9" name="Epic Master Sorcerer" description="an epic master sorcerer" needpremium="1" gaincap="15" gainhp="15" gainmana="35" gainhpticks="12" gainhpamount="1" gainmanaticks="1" gainmanaamount="2" manamultiplier="1.1" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="5" lessloss="50"> <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="10" name="Epic Elder Druid" description="an epic elder druid" needpremium="1" gaincap="15" gainhp="15" gainmana="35" gainhpticks="12" gainhpamount="1" gainmanaticks="1" gainmanaamount="2" manamultiplier="1.1" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="6" lessloss="50"> <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="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation> <vocation id="11" name="Epic Royal Paladin" description="an epic royal paladin" needpremium="1" gaincap="25" gainhp="25" gainmana="20" gainhpticks="3" gainhpamount="1" gainmanaticks="2" gainmanaamount="2" manamultiplier="1.4" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="7" lessloss="50"> <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.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="12" name="Epic Elite Knight" description="an epic elite knight" needpremium="1" gaincap="45" gainhp="35" gainmana="15" gainhpticks="2" gainhpamount="1" gainmanaticks="6" gainmanaamount="2" manamultiplier="3.0" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="8" lessloss="50"> <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> </vocations>
  12. Bom galera, estou com 1 problema. Fiz uma script que ao usar um item eu recebo a segunda promotion. Quando eu relogo, eu volto para a vocação inicial, como eu faço para não voltar para a vocação inicial ?

Informação Importante

Confirmação de Termo