-
Total de itens
2571 -
Registro em
-
Última visita
-
Dias Ganhos
27
Tudo que Bruno postou
-
Vai, mas dessa vez virá algo melhor, por isso a demora
-
@@clebao666, não me atentei as alterações, como eu faço do serviço as vezes pego scripts já prontos kkkkk Já alterei, pode pegar a versão atualizada! Tópico movido para a seção de dúvidas e pedidos resolvidos.
-
Tópico movido para a seção de dúvidas e pedidos resolvidos.
-
8.6 Distro TFS 0.4 Com No Sail, Ant-Divulg, System War e No-OT
tópico respondeu ao KillerMapper de Bruno em Lixeira Pública
Amigo, primeiramente obrigado pela contriuição, mas infelizmente não vou poder aprovar este conteúdo. - Você mesmo em outro tópico alega estar com problemas nas sources - Não tem scan - Como você prestaria suporte ao seu tópico sem entender do que se trata? Me desculpe! OBS: Não seria "salt" ao invés de "sail"? -
Amigo, cada link aponta para uma página, se essa página não existe e você tentar puxa-la dará esse erro. A solução é criar a página "buypoints" ou remover o link no arquivo php do layout.
-
O problema pode ser no xml, onde você aponta qual script a spell vai usar. Como você está fazendo a parte do xml?
-
Abra o seu items.cpp e localize esta parte: 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; } Basta comentá-la, ficando assim: /*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; }*/ Resolvido, fechado e movido para pedidos e duvidas resolvidos.
-
Você já tentou usá-la? Da algum erro?
-
Tópico movido para a seção de dúvidas e pedidos resolvidos.
-
Execute essa query: ALTER TABLE `bans` ADD `reason` INT(10) NOT NULL DEFAULT 0;
-
Tópico movido para a seção de dúvidas e pedidos resolvidos.
-
O problema é apenas em uma função: local storage = tostring(result.getDataString(result_plr, "param7")) Deveria estar: local storage = tonumber(result.getDataString(result_plr, "param7")) Não há como fazer uma operação de string + numero, conforme a linha 57: setPlayerStorageValue(cid, storage+555884621212,1) Segue: Tópico movido para a seção de dúvidas e pedidos resolvidos.
-
Conteúdo aprovado, obrigado por contribuir conosco!
-
Tenta assim: -- >> Config -- local config = { storage = 99488, tempo = 3 -- em minutos } local outfit = { -- Girls { lookType = 12, lookHead = 19, lookBody = 53, lookLegs = 92, lookFeet = 79, lookAddons = 0 }, -- Boys { lookType = 12, lookHead = 19, lookBody = 79, lookLegs = 3, lookFeet = 81, lookAddons = 0 } } local coinID = ITEM_GOLD_COIN local wastingInterval = 1000 local wastingQuantity = 1 local triggerQuantity = 100 local warnOnLowSupply = TRUE local lowSupplyMargin = 200 local storage = 50780 -- Config << -- local condition1 = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition1, CONDITION_PARAM_TICKS, -1) setConditionParam(condition1, CONDITION_PARAM_SKILL_FIST, 50) setConditionParam(condition1, CONDITION_PARAM_SKILL_FISHING, 50) setConditionParam(condition1, CONDITION_PARAM_SKILL_CLUB, 50) setConditionParam(condition1, CONDITION_PARAM_SKILL_SWORD, 50) setConditionParam(condition1, CONDITION_PARAM_SKILL_AXE, 50) setConditionParam(condition1, CONDITION_PARAM_SKILL_DISTANCE, 50) setConditionParam(condition1, CONDITION_PARAM_SKILL_SHIELD, 50) setConditionParam(condition1, CONDITION_PARAM_SKILL_FISHING, 50) setConditionParam(condition1, CONDITION_PARAM_STAT_MAGICPOINTS, 50) setConditionParam(condition1, CONDITION_PARAM_STAT_MAXHITPOINTSPERCENT, 180) setConditionParam(condition1, CONDITION_PARAM_STAT_MAXMANAPOINTSPERCENT, 180) local condition2 = createConditionObject(CONDITION_HASTE) setConditionParam(condition2, CONDITION_PARAM_TICKS, -1) setConditionFormula(condition2, 2.5, 0, 3.0, 0) local area = createCombatArea({ {0, 0, 0, 1, 0, 0, 0}, {0, 1, 0, 0, 0, 1, 0}, {0, 0, 0, 0, 0, 0, 0}, {1, 0, 0, 2, 0, 0, 1}, {0, 0, 0, 0, 0, 0, 0}, {0, 1, 0, 0, 0, 1, 0}, {0, 0, 0, 1, 0, 0, 0} }) local animCombat = { createCombatObject(), createCombatObject() } local sexyEffect = { CONST_ME_FIREWORK_RED, CONST_ME_FIREWORK_YELLOW, CONST_ME_MAGIC_RED, CONST_ME_MAGIC_GREEN } setCombatParam(animCombat[2], COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA) setCombatParam(animCombat[2], COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SMALLHOLY) setCombatParam(animCombat[1], COMBAT_PARAM_EFFECT, CONST_ME_FIREWORK_RED) setCombatParam(animCombat[1], COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_FIRE) setCombatArea(animCombat[2], area) setCombatArea(animCombat[1], area) local function StopSuperForm(cid) if (getPlayerStorageValue(cid, storage) == 1) then setPlayerStorageValue(cid, storage, 0) doRemoveCondition(cid, CONDITION_OUTFIT) doRemoveCondition(cid, CONDITION_ATTRIBUTES) doRemoveCondition(cid, CONDITION_HASTE) end return TRUE end local function SuperForm(cid, sexIndex) if (isCreature(cid)) then if (getPlayerStorageValue(cid, storage) == 1) then local goldLeft = getPlayerItemCount(cid, coinID) if (goldLeft >= wastingQuantity) then local position = getCreaturePosition(cid) doPlayerRemoveItem(cid, coinID, wastingQuantity) doSendMagicEffect(position, sexyEffect[sexIndex + 2]) doSendMagicEffect(position, sexyEffect[sexIndex]) if (goldLeft <= lowSupplyMargin and warnOnLowSupply == TRUE) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Coins left: " ..(goldLeft - wastingQuantity) .. "!") end addEvent(SuperForm, wastingInterval, cid, sexIndex) else doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Your bangle has been destroyed!") doPlayerRemoveItem(cid, 2127, 1) return StopSuperForm(cid) end end end end function onEquip(cid, item, slot) if getPlayerStorageValue(cid, config.storage) > os.time () then doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "You cannot equip this now!") return false end if (getPlayerItemCount(cid, coinID) > triggerQuantity and getPlayerStorageValue(cid, storage) ~= 1) then local sexIndex = getPlayerSex(cid) + 1 doCombat(cid, animCombat[sexIndex], numberToVariant(cid)) doSetCreatureOutfit(cid, outfit[sexIndex], -1) setPlayerStorageValue(cid, storage, 1) doAddCondition(cid, condition1) doAddCondition(cid, condition2) doCreatureAddHealth(cid, getCreatureMaxHealth(cid) - getCreatureHealth(cid)) doPlayerAddMana(cid, getPlayerMaxMana(cid) - getPlayerMana(cid)) doPlayerRemoveItem(cid, coinID, triggerQuantity) setPlayerStorageValue(tid, config.storage, os.time() + (config.tempo * 60)) SuperForm(cid, sexIndex) elseif (getPlayerStorageValue(cid, storage) == 1) then doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "You cannot equip this now!") else doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "You do not have enough coins!") end return true end function onDeEquip(cid, item, slot) return StopSuperForm(cid) end
-
Isso é bem simples comm creaturescripts: Tag: <event type="advance" name="AdvanceStorage" event="script" value="advancestorage.lua"/>Scripts, crie advancestorage.lua: local config = { level = 100, storage = 13500 } function onAdvance(cid, skill, oldLevel, newLevel) if newLevel >= config.level and getPlayerStorageValue(cid, config.storage) == -1 then setPlayerStorageValue(cid, config.storage, 1) end return true endEm login.lua adicione: registerCreatureEvent(cid, "AdvanceStorage")
-
function onSay(cid, words, param) local text = "orc berserker = level = 30, mana = 150\norc leader = level = 35, mana = 180 \nMinotaur archer = level = 35, mana = 170\nfire elemental = level = 40, mana = 300\ndragon hatchling = level = 50, mana = 300\ndragon lord hatchling = level = 65, mana = 450\nfrost dragon hatchling = level = 65, mana = 450\ndragon = level = 80, mana = 600\nWyrm = level = 100, mana = 800\ndragon lord = level = 150, mana = 1000\nfrost dragon = level = 150, mana = 1000" doPlayerPopupFYI(cid, text) return true end Tópico movido para a seção de dúvidas e pedidos resolvidos.
-
Tópico movido para a seção de dúvidas e pedidos resolvidos.
- 3 respostas
-
- vip
- script vip
- (e 3 mais)
-
Não faz sentido, tirei a validação por storage, agora ele só verifica se precisa de crystal... Agora tirei até da configuração a variável: local destination = { [4121] = {position = Position(32801, 31766, 9), needCrystal = true}, [3220] = {position = Position(32627, 31863, 11), needCrystal = true}, [3128] = {position = Position(32840, 32062, 13), needCrystal = false}, [3129] = {position = Position(32635, 31954, 10), needCrystal = false}, [3130] = {position = Position(32704, 32036, 11), needCrystal = false}, [3131] = {position = Position(32643, 31938, 10), needCrystal = false}, [3132] = {position = Position(32826, 32054, 9), needCrystal = false}, -- Gnomebase Alpha [3133] = {position = Position(32636, 31973, 10), needCrystal = false}, -- City [3134] = {position = Position(32799, 32145, 9), needCrystal = false}, -- Golems [3135] = {position = Position(32841, 32109, 9), needCrystal = false}, -- Gnomebase Alpha [3136] = {position = Position(32744, 32086, 13), needCrystal = false}, [3137] = {position = Position(32819, 32099, 9), needCrystal = false}, [35669] = {position = Position(32826, 32056, 9), needCrystal = false}, -- leave warzone 3 [3215] = {position = Position(32369, 32241, 7), needCrystal = true}, [3216] = {position = Position(32212, 31133, 7), needCrystal = true}, [3217] = {position = Position(32317, 32825, 7), needCrystal = true}, [3218] = {position = Position(33213, 32454, 1), needCrystal = true}, [3219] = {position = Position(33217, 31814, 8), needCrystal = true} } function onStepIn(creature, item, position, fromPosition) local player = creature:getPlayer() if not player then return end local teleportCrystal = destination[item.actionid] if not teleportCrystal then return end if not teleportCrystal.needCrystal or player:removeItem(18457, 1) then player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) player:teleportTo(teleportCrystal.position) player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) return true else player:teleportTo(fromPosition) player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'You need a teleport crystal to use this device.') end return true end
-
Boa garoto Um ótimo conteúdo, muitas pessoas fazem um bom trabalho as vezes mas acabam usando a fonte errada ai estraga tudo!
- 4 respostas
-
- tipografia
- textos
-
(e 3 mais)
Tags:
-
Fiz uma gambiarra kkkkk local destination = { [4121] = {position = Position(32801, 31766, 9), storageValue = 1, needCrystal = true}, [3220] = {position = Position(32627, 31863, 11), storageValue = 1, needCrystal = true}, [3128] = {position = Position(32840, 32062, 13), storageValue = 14, needCrystal = false}, [3129] = {position = Position(32635, 31954, 10), storageValue = 14, needCrystal = false}, [3130] = {position = Position(32704, 32036, 11), storageValue = 15, needCrystal = false}, [3131] = {position = Position(32643, 31938, 10), storageValue = 15, needCrystal = false}, [3132] = {position = Position(32826, 32054, 9), storageValue = 15, needCrystal = false}, -- Gnomebase Alpha [3133] = {position = Position(32636, 31973, 10), storageValue = 15, needCrystal = false}, -- City [3134] = {position = Position(32799, 32145, 9), storageValue = 16, needCrystal = false}, -- Golems [3135] = {position = Position(32841, 32109, 9), storageValue = 16, needCrystal = false}, -- Gnomebase Alpha [3136] = {position = Position(32744, 32086, 13), storageValue = 16, needCrystal = false}, [3137] = {position = Position(32819, 32099, 9), storageValue = 16, needCrystal = false}, [35669] = {position = Position(32826, 32056, 9), storageValue = 1, needCrystal = false}, -- leave warzone 3 [3215] = {position = Position(32369, 32241, 7), storageValue = 1, needCrystal = true}, [3216] = {position = Position(32212, 31133, 7), storageValue = 1, needCrystal = true}, [3217] = {position = Position(32317, 32825, 7), storageValue = 1, needCrystal = true}, [3218] = {position = Position(33213, 32454, 1), storageValue = 1, needCrystal = true}, [3219] = {position = Position(33217, 31814, 8), storageValue = 1, needCrystal = true} } function onStepIn(creature, item, position, fromPosition) local player = creature:getPlayer() if not player then return end local teleportCrystal = destination[item.actionid] if not teleportCrystal then return end if not teleportCrystal.needCrystal or player:removeItem(18457, 1) then player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) player:teleportTo(teleportCrystal.position) player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) return true else player:teleportTo(fromPosition) player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'You need a teleport crystal to use this device.') end return true end
-
Não entendi muito bem o que você quer, mas tenta assim: local text = "orc berserker = level = 30, mana = 150\norc leader = level = 35, mana = 180 \nMinotaur archer = level = 35, mana = 170\nfire elemental = level = 40, mana = 300\ndragon hatchling = level = 50, mana = 300\ndragon lord hatchling = level = 65, mana = 450\nfrost dragon hatchling = level = 65, mana = 450\ndragon = level = 80, mana = 600\nWyrm = level = 100, mana = 800\ndragon lord = level = 150, mana = 1000\nfrost dragon = level = 150, mana = 1000" function onSay(cid, words, param) return doShowTextDialog(cid, 2529, text) end
-
@@Helflin local rate = 1.2 -- 20% local config = { vip = "Você Tem "..((rate - 1)*100).."% de exp a mais agora!", notvip = "Adquira sua VIP ACCOUNT e ganhe "..((rate - 1)*100).."% a mais de experiencia!", storage = 343434 } function onLogin(cid) if vip.hasVip(cid) then doPlayerSetExperienceRate(cid, rate) setPlayerStorageValue(cid, config.storage, 1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sua VIP Time termina em " .. os.date("%d/%m/%Y", vip.getVip(cid)) .. ".") doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.vip) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.notvip) end return true end
- 3 respostas
-
- vip
- script vip
- (e 3 mais)
-
Conteúdo aprovado, obrigado por contribuir conosco!
-
Conteúdo aprovado, obrigado por contribuir conosco!
-
Tópico movido para a seção de dúvidas e pedidos resolvidos.
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.