Ir para conteúdo

DuuhCarvalho

Conde
  • Total de itens

    988
  • Registro em

  • Última visita

  • Dias Ganhos

    22

Tudo que DuuhCarvalho postou

  1. seria melhor usar .. if getPlayerVocation(cid) < 4 then
  2. tabom mais você quer que ganhe mesmo se tiver com 1 won e 1 lose é isso ?
  3. Criou o tópico na área incorreta , reportado para que movam . quanto ao seu script qual o erro ? quando ele não tem nenhum won ou loser ele ganha 1 quando eu ja tem 1 ele não ganha .. você quer que ganhe mesmo tendo 1 ?
  4. brigado por tentar ajudar . Mais isso não é um pedido ou uma duvida e sim um Script de Actions. rsrs , fofs ><
  5. tenta usar .. doRemoveItem(uid) no seu script
  6. Spells, são magias , servem pra curar, atacar, e tem também tem as que dão suporte . Função : function onCastSpell(cid, var) -- função da magia. Exemplo de script : local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_BIGCLOUDS) setAttackFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 5, 12) local area = createCombatArea(AREA_CROSS6X6) setCombatArea(combat, area) function onCastSpell(cid, var) return doCombat(cid, combat, var) end Entendendo : Exemplo de Spell : Healing e Suporte . (Use Como Base) Healing : Suporte : Efeitos : COMBAT_ : CONDITION_ (condições) É isso pessoal
  7. DuuhCarvalho

    Vip Por Item

    qual script você não entendeu ?.. no primeiro é so colocar a quantidade de dias e a storage . no segundo é so colocar onde ta storagevip , você coloca a storage que você colocou no script 1 . o item você vai definir em action.Xml .. e quando a vip dele acabar ao logar se ele não for mais vip ele será teleportado pro templo .
  8. vocês perceberam que só repetiram o que eu falei ? rsrsrs'
  9. DuuhCarvalho

    Vip Por Item

    Bom como eu já estava fazendo os scripts quando o shoguns respondeu .. vou responder ! actions/scripts : function onUse(cid, item, frompos, item2, topos) local days = 30 -- dias de vip local storage = 1015 -- storage local timenow = os.time() local days2 = days * 24 * 60 * 60 if getPlayerStorageValue(cid, storage) - os.time() <= 0 then time1 = timenow + days2 doPlayerSendTextMessage(cid, "Você ganhou "..days.." Dias de Vip", 22) setPlayerStorageValue(cid, storage, time1) else time2 = getPlayerStorageValue(cid, storage) + days2 setPlayerStorageValue(cid, storage, time2) local quantity = math.floor((getPlayerStorageValue(cid, storage) - timenow)/(24*60*60)) doPlayerSendTextMessage(cid, "Você ganhou Mais "..days.." Dias de Vip. Agora Você tem "..quantity.." Dias de Vip.", 22) end return TRUE end em creaturescripts/scripts : function onLogin(cid) local pos = {x= 160, y= 54, z= 7} local storagevip = 1015 -- storage da vip. local storage = 14167 -- qualquer uma que não exista. if getPlayerStorageValue(cid, storagevip) >= 1 then if getPlayerStorageValue(cid, storage) ~= 1 then setPlayerStorageValue(cid, storage, 1) end elseif getPlayerStorageValue(cid, storagevip) <= 0 then if getPlayerStorageValue(cid, storage) == 1 then doTeleportThing(cid, pos, true) doPlayerSendTextMessage(cid, 22, "Sua vip Acabou.") setPlayerStorageValue(cid, storage, 0) end end return TRUE end em creaturescripts/scripts/login.lua registerCreatureEvent(cid, "vipacabou") e a tag : <event type="login" name="vipacabou" script="NomedoArquivo.lua"/>
  10. Amigo se isso é um otserv você criou o tópico na área errada. área correta : Aprovação de Downloads . e por favor né , quem vai baixar isso ? Aprenda : http://www.xtibia.com/forum/topic/169695-ajuda-para-quem-posta-modelo-de-postagem/
  11. DuuhCarvalho

    Erro npc

    não tenho certeza mais acho que seu npc so ta em data / npc .. e não tem nada em data / npc / scripts .
  12. coloca um brilho em cima do item. se não me engano o id do brilho é 8047 . Ctrl + J .. 8047
  13. da o seguinte erro : To use reCAPTCHA you must get an API key from http://recaptcha.net/api/getkey e depois quando click no link ... Not Found Error 404
  14. DuuhCarvalho

    Npc

    testa ae .. o seu eu fiz 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 pos = {x= 160, y= 54, z= 7} -- posição pra onde o player vai ser teleportado local storage = 1015 -- storage que ganha (assim ele só paga os items 1 vez) local item1 = 2195 -- id do item 1 local item2 = 2145 -- id do item 2 local item3 = 2160 -- id do item 3 local quant1 = 100 -- quanto vai remover do item 1 local quant2 = 50 -- quanto vai remover do item 2 local quant3 = 20 -- quanto vai remover do item 3 if msgcontains(msg, 'yes') then if getPlayerStorageValue(cid, storage) <= 0 then if doPlayerRemoveItem(cid, item1, quant1) and doPlayerRemoveItem(cid, item2, quant2) and doPlayerRemoveItem(cid, item3, quant3) then doTeleportThing(cid, pos) selfSay('Parabéns, Você foi teleportado.', cid) setPlayerStorageValue(cid, storage, 1) else selfSay('Voce precisa de todos os items.', cid) end else doTeleportThing(cid, pos) selfSay('Parabéns, Você foi teleportado.', cid) end elseif msgcontains(msg, 'no') then selfSay('Ok, então', cid) end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  15. http://www.xtibia.com/forum/topic/195936-spell-de-controle-mental/ serve ?
  16. logo mais criarei novos tutoriais , vamos ver no que dá . Da próxima explicarei, mais é só um básico mesmo .
  17. function onStepIn(cid, item, position, fromPosition) local pos = {x= 160, y= 54, z= 7} -- posição para onde o player será teleportado local items = {12251, -- insignias 12252, 12253, 12254, 12255, 12256, 12257, 12258, 12259} local check = 0 for i = 1, #items do if getPlayerItemCount(cid, items[i]) >= 1 then check = check + 1 end end if check == #items then doTeleportThing(cid, pos) doPlayerSendCancel(cid, "Agora voce pode duela com o elite dos 4.") for j = 1, #items do doPlayerRemoveItem(cid, items[j], 1) end else doTeleportThing(cid, fromPosition) doPlayerSendCancel(cid, "Voce nao tem as insignias.") end return true end já está com todas as insignias . testa ae.
  18. Dúvida sanada ! Você já atingiu seu limite de reputações positivas para hoje
  19. -- The Forgotten Server Config -- Account manager accountManager = "yes" namelockManager = "no" newPlayerChooseVoc = "yes" newPlayerSpawnPosX = 156 newPlayerSpawnPosY = 53 newPlayerSpawnPosZ = 3 newPlayerTownId = 1 newPlayerLevel = 8 newPlayerMagicLevel = 0 generateAccountNumber = "no" -- Unjustified kills -- NOTE: *Banishment and *BlackSkull variables are >summed up< -- (dailyFragsToRedSkull + dailyFragsToBanishment) with their -- *RedSkull equivalents. -- Auto banishing works only if useBlackSkull set to negative. -- advancedFragList is not advised if you use huge frags -- requirements. redSkullLength = 50 * 62 * 70 * 90 blackSkullLength = 64 * 72 * 80 * 95 dailyFragsToRedSkull = 15 weeklyFragsToRedSkull = 25 monthlyFragsToRedSkull = 100 dailyFragsToBlackSkull = dailyFragsToRedSkull weeklyFragsToBlackSkull = weeklyFragsToRedSkull monthlyFragsToBlackSkull = monthlyFragsToRedSkull dailyFragsToBanishment = dailyFragsToRedSkull weeklyFragsToBanishment = weeklyFragsToRedSkull monthlyFragsToBanishment = monthlyFragsToRedSkull blackSkulledDeathHealth = 40 blackSkulledDeathMana = 0 useBlackSkull = true useFragHandler = true advancedFragList = false -- Banishments -- violationNameReportActionType 1 = just a report, 2 = name lock, 3 = player banishment -- killsBanLength works only if useBlackSkull option is disabled. notationsToBan = 3 warningsToFinalBan = 4 warningsToDeletion = 5 banLength = 7 * 24 * 60 * 60 killsBanLength = 8 * 24 * 60 * 60 finalBanLength = 30 * 24 * 60 * 60 ipBanishmentLength = 1 * 24 * 60 * 60 broadcastBanishments = true maxViolationCommentSize = 200 violationNameReportActionType = 2 autoBanishUnknownBytes = false -- Battle -- NOTE: showHealingDamageForMonsters inheritates from showHealingDamage. -- loginProtectionPeriod is the famous Tibia anti-magebomb system. -- deathLostPercent set to nil enables manual mode. worldType = "pvp" protectionLevel = 80 pvpTileIgnoreLevelAndVocationProtection = true pzLocked = 20 * 700 huntingDuration = 60 * 1000 criticalHitChance = 7 criticalHitMultiplier = 1 displayCriticalHitNotify = true removeWeaponAmmunition = false removeWeaponCharges = false removeRuneCharges = "no" whiteSkullTime = 5 * 10 * 100 noDamageToSameLookfeet = false showHealingDamage = false showHealingDamageForMonsters = false fieldOwnershipDuration = 5 * 1000 stopAttackingAtExit = false oldConditionAccuracy = false loginProtectionPeriod = 10 * 1000 deathLostPercent = 10 stairhopDelay = 2 * 1000 pushCreatureDelay = 2 * 1000 deathContainerId = 1987 gainExperienceColor = 215 addManaSpentInPvPZone = true squareColor = 0 allowFightback = true -- Connection config worldId = 0 ip = "127.0.0.1" bindOnlyConfiguredIpAddress = false loginPort = 7171 gamePort = 7172 adminPort = 7171 statusPort = 7171 loginTries = 10 retryTimeout = 5 * 1000 loginTimeout = 60 * 1000 maxPlayers = 841 motd = "Bem Vindo ao Hunter Ot! " displayOnOrOffAtCharlist = false onePlayerOnlinePerAccount = false allowClones = false serverName = "Hunter Ot" loginMessage = "Bem-Vindo ao Baiak Hunter. Bom jogo" statusTimeout = 5 * 60 * 1000 replaceKickOnLogin = true forceSlowConnectionsToDisconnect = false loginOnlyWithLoginServer = false premiumPlayerSkipWaitList = false -- Database -- NOTE: sqlFile is used only by sqlite database, and sqlKeepAlive by mysql database. -- To disable sqlKeepAlive such as mysqlReadTimeout use 0 value. sqlType = "mysql" sqlHost = "127.0.0.1" sqlPort = 3306 sqlUser = "root" sqlPass = "" sqlDatabase = "otserv" sqlFile = "forgottenserver.s3db" sqlKeepAlive = 0 mysqlReadTimeout = 10 mysqlWriteTimeout = 10 encryptionType = "plain" -- Deathlist deathListEnabled = true deathListRequiredTime = 1 * 60 * 1000 deathAssistCount = 19 maxDeathRecords = 5 -- Guilds ingameGuildManagement = true levelToFormGuild = 100 premiumDaysToFormGuild = 0 guildNameMinLength = 4 guildNameMaxLength = 20 -- Highscores highscoreDisplayPlayers = 15 updateHighscoresAfterMinutes = 1 -- Houses buyableAndSellableHouses = true houseNeedPremium = true bedsRequirePremium = true levelToBuyHouse = 200 housesPerAccount = 0 houseRentAsPrice = false housePriceAsRent = false housePriceEachSquare = 100000 houseRentPeriod = "never" houseCleanOld = 0 guildHalls = false -- Item usage timeBetweenActions = 200 timeBetweenExActions = 1000 checkCorpseOwner = true hotkeyAimbotEnabled = true maximumDoorLevel = 500 -- Map -- NOTE: storeTrash costs more memory, but will perform alot faster cleaning. -- useHouseDataStorage usage may be found at README. mapName = "Baiak Yurots" mapAuthor = "Baiak Lula" randomizeTiles = true useHouseDataStorage = false storeTrash = true cleanProtectedZones = true mailboxDisabledTowns = "-1" -- Startup -- NOTE: defaultPriority works only on Windows and niceLevel on *nix -- coresUsed are seperated by comma cores ids used by server process, -- default is -1, so it stays untouched (automaticaly assigned by OS). defaultPriority = "high" niceLevel = 5 coresUsed = "-1" optimizeDatabaseAtStartup = true removePremiumOnInit = true confirmOutdatedVersion = false -- Muted buffer maxMessageBuffer = 4 bufferMutedOnSpellFailure = false -- Miscellaneous -- NOTE: promptExceptionTracerErrorBox works only with precompiled support feature, -- called "exception tracer" (__EXCEPTION_TRACER__ flag). -- monsterLootMessage 0 to disable, 1 - only party, 2 - only player, 3 - party or player (like Tibia's) dataDirectory = "data/" allowChangeOutfit = true allowChangeColors = true allowChangeAddons = true disableOutfitsForPrivilegedPlayers = false bankSystem = true saveGlobalStorage = true displaySkillLevelOnAdvance = false spellNameInsteadOfWords = false emoteSpells = true promptExceptionTracerErrorBox = true storePlayerDirection = false monsterLootMessage = 3 monsterLootMessageType = 25 separateViplistPerCharacter = false -- Ghost mode ghostModeInvisibleEffect = true ghostModeSpellEffects = true -- Limits idleWarningTime = 14 * 60 * 1000 idleKickTime = 1000 * 1000 * 10000 expireReportsAfterReads = 1 playerQueryDeepness = 2 maxItemsPerPZTile = 0 maxItemsPerHouseTile = 0 -- Premium-related freePremium = true premiumForPromotion = true -- Blessings -- NOTE: blessingReduction* regards items/containers loss. -- eachBlessReduction is how much each bless reduces the experience/magic/skills loss. blessingOnlyPremium = true blessingReductionBase = 30 blessingReductionDecreament = 5 eachBlessReduction = 8 -- Rates -- NOTE: experienceStages configuration is located in data/XML/stages.xml. -- rateExperienceFromPlayers 0 to disable. experienceStages = "yes" rateExperience = 500 rateExperienceFromPlayers = 0 rateSkill = 300 rateMagic = 250 rateLoot = 10 rateSpawn = 7 -- Monster rates rateMonsterHealth = 1.0 rateMonsterMana = 1.0 rateMonsterAttack = 1.0 rateMonsterDefense = 1.0 -- Experience from players -- NOTE: min~Threshold* set to 0 will disable the minimum threshold: -- player will gain experience from every lower leveled player. -- max~Threshold* set to 0 will disable the maximum threshold: -- player will gain experience from every higher leveled player. minLevelThresholdForKilledPlayer = 0.9 maxLevelThresholdForKilledPlayer = 1.1 -- Stamina -- NOTE: Stamina is stored in miliseconds, so seconds are multiplied by 1000. -- rateStaminaHits multiplies every hit done a creature, which are later -- multiplied by player attack speed. -- rateStaminaGain is divider of every logged out second, eg: -- 60000 / 3 = 20000 milliseconds, what gives 20 stamina seconds for 1 minute being logged off. -- rateStaminaThresholdGain is divider for the premium stamina. -- staminaRatingLimit* is in minutes. rateStaminaLoss = 1 rateStaminaGain = 3 rateStaminaThresholdGain = 12 staminaRatingLimitTop = 41 * 60 staminaRatingLimitBottom = 14 * 60 rateStaminaAboveNormal = 1.5 rateStaminaUnderNormal = 0.5 staminaThresholdOnlyPremium = true -- Party -- NOTE: experienceShareLevelDifference is float number. -- experienceShareLevelDifference is highestLevel * value experienceShareRadiusX = 30 experienceShareRadiusY = 30 experienceShareRadiusZ = 1 experienceShareLevelDifference = 2 / 3 extraPartyExperienceLimit = 20 extraPartyExperiencePercent = 5 experienceShareActivity = 2 * 60 * 1000 -- Global save -- NOTE: globalSaveHour means like 03:00, not that it will save every 3 hours, -- if you want such a system please check out data/globalevents/globalevents.xml. globalSaveEnabled = false globalSaveHour = 8 shutdownAtGlobalSave = true cleanMapAtGlobalSave = false -- Spawns deSpawnRange = 2 deSpawnRadius = 50 -- Summons maxPlayerSummons = 2 teleportAllSummons = false teleportPlayerSummons = false -- Status ownerName = "[ADM] Jon Snow" ownerEmail = "" url = "http://xtibia.com/" location = "Brazil" displayGamemastersWithOnlineCommand = false -- Logs -- NOTE: This kind of logging does not work in GUI version. -- For such, please compile the software with __GUI_LOGS__ flag. adminLogsEnabled = false displayPlayersLogging = true prefixChannelLogs = "" runFile = "" outLogName = "" errorLogName = "" truncateLogsOnStartup = false
  • Quem Está Navegando   0 membros estão online

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