Histórico de Curtidas
-
luciano01 deu reputação a Marco Oliveira em [PEDIDO] Regem de stamina Training onlineSubstitua sua função por:
function Creature:onTargetCombat(target) if not self then return true end if not __picif[target.uid] then if target:isMonster() then target:registerEvent("RewardSystemSlogan") __picif[target.uid] = {} end end if target:isPlayer() then if self:isMonster() then local protectionStorage = target:getStorageValue(Storage.combatProtectionStorage) if target:getIp() == 0 then -- If player is disconnected, monster shall ignore to attack the player if target:isPzLocked() then end if protectionStorage <= 0 then addEvent(removeCombatProtection, 30 * 1000, target.uid) target:setStorageValue(Storage.combatProtectionStorage, 1) elseif protectionStorage == 1 then self:searchTarget() return RETURNVALUE_YOUMAYNOTATTACKTHISPLAYER end return true end if protectionStorage >= os.time() then return RETURNVALUE_YOUMAYNOTATTACKTHISPLAYER end end end if ((target:isMonster() and self:isPlayer() and target:getType():isPet() and target:getMaster() == self) or (self:isMonster() and target:isPlayer() and self:getType():isPet() and self:getMaster() == target)) then return RETURNVALUE_YOUMAYNOTATTACKTHISCREATURE end if PARTY_PROTECTION ~= 0 then if self:isPlayer() and target:isPlayer() then local party = self:getParty() if party then local targetParty = target:getParty() if targetParty and targetParty == party then return RETURNVALUE_YOUMAYNOTATTACKTHISPLAYER end end end end if ADVANCED_SECURE_MODE ~= 0 then if self:isPlayer() and target:isPlayer() then if self:hasSecureMode() then return RETURNVALUE_YOUMAYNOTATTACKTHISPLAYER end end end if self:isPlayer() then if target and target:getName() == staminaBonus.target then local name = self:getName() if not staminaBonus.events[name] then staminaBonus.events[name] = addEvent(addStamina, staminaBonus.period, name) end end end return true end
-
luciano01 deu reputação a L3K0T em [PEDIDO] Piso e Arvore que teletransporta se tiver lvlpara piso seria um movements segue: data/movements
function onStepIn(cid, item, pos) if isMonster(cid) then return true end local chao = {x = 1079, y = 695, z = 15} -- Posição pra onde o player vai. if getPlayerLevel(cid) >= 100 then -- 100 o level if isPlayer(cid) == TRUE then if (item.actionid == 6037) then --6037 action que vai no chão lá pelo mapa editor doTeleportThing(cid, chao) doPlayerSendCancel(cid, "Você foi teleportado.") else doPlayerSendCancel(cid, "Vocoê não tem level 100+.") end end end
<movevent type="StepIn" actionid="6037" event="script" value="seu arquivo.lua"/>
vou fazer a action
data/action
function onUse(cid, item, frompos, item2, topos) local chao = {x = 1079, y = 695, z = 15} -- Posição pra onde o player vai. if getPlayerLevel(cid) >= 100 then -- 100 o level if isPlayer(cid) == TRUE then doTeleportThing(cid, chao) doPlayerSendCancel(cid, "Você foi teleportado.") else doPlayerSendCancel(cid, "Você não tem level 100+.") end end
<action itemid="IDO DO ITEM" event="script" value="seu arquivo.lua"/>
não testei nenhum fiz aqui rapidão
-
luciano01 deu reputação a lerme em [AJUDA] Não consigo exportar itemstalvez se vc add o item no item.xml e no item.otb
-
luciano01 deu reputação a Pedro. em [AJUDA] Quando eu crio o boneco pelo account mananger do site vem com itens se eu crio no create account vem sem [URGENTE]quando você loga o sample ele já tá com itens? verifique o firstitems em creaturescript..
-- With Rookgaard --[[ local firstItems = {2050, 2382} function onLogin(cid) local player = Player(cid) if player:getLastLoginSaved() <= 0 then for i = 1, #firstItems do player:addItem(firstItems[i], 1) end player:addItem(player:getSex() == 0 and 2651 or 2650, 1) player:addItem(1987, 1) player:addItem(2674, 1) end return true end ]]-- -- Without Rookgaard local config = { [1] = { --equipment spellbook, wand of vortex, magician's robe, mage hat, studded legs, leather boots, scarf items = {{2175, 1}, {2190, 1}, {8819, 1}, {8820, 1}, {2468, 1}, {2643, 1}, {2661, 1}}, --container rope, shovel, mana potion container = {{2120, 1}, {2554, 1}, {2789, 20}, {7620, 1}} }, [2] = { --equipment spellbook, snakebite rod, magician's robe, mage hat, studded legs, leather boots scarf items = {{2175, 1}, {2182, 1}, {8819, 1}, {8820, 1}, {2468, 1}, {2643, 1}, {2661, 1}}, --container rope, shovel, mana potion container = {{2120, 1}, {2554, 1}, {2789, 20}, {7620, 1}} }, [3] = { --equipment dwrven shield, 5 spear, ranger's cloak, ranger legs scarf, legion helmet items = {{2525, 1}, {2389, 5}, {2660, 1}, {8923, 1}, {2643, 1}, {2661, 1}, {2480, 1}}, --container rope, shovel, health potion, bow, 50 arrow container = {{2120, 1}, {2554, 1}, {7618, 1}, {2456, 1}, {2789, 20}, {2544, 50}} }, [4] = { --equipment dwarven shield, steel axe, brass armor, brass helmet, brass legs scarf items = {{2525, 1}, {8601, 1}, {2465, 1}, {2460, 1}, {2478, 1}, {2643, 1}, {2661, 1}}, --container jagged sword, daramian mace, rope, shovel, health potion container = {{8602, 1}, {2439, 1}, {2789, 20}, {2120, 1}, {2554, 1}, {7618, 1}} } } function onLogin(cid) local player = Player(cid) local targetVocation = config[player:getVocation():getId()] if not targetVocation then return true end if player:getLastLoginSaved() ~= 0 then return true end for i = 1, #targetVocation.items do player:addItem(targetVocation.items[i][1], targetVocation.items[i][2]) end local backpack = player:addItem(1988) if not backpack then return true end for i = 1, #targetVocation.container do backpack:addItem(targetVocation.container[i][1], targetVocation.container[i][2]) end return true end -
luciano01 recebeu reputação de Wise em Como Mudar O Botão Play Now No Meu SiteUP@
UP@
-
luciano01 deu reputação a tiroleivi em Global FULL 8.60 | Zao, War System, Cast System...Global Full
8.60
Descrição
Estarei disponibilizando um Mapa Global Full + Zao na versão 8.60, à pedido do @rozinx.kungsan.
Modificações que contém no OT
Ilhas VIPs Cast System War System Woe Itens Vips (com Id Próprio) (Configurado e Balanceado) NPCs Modificados Treiner Offline Treiners VIP Novas Hunts Invasões automáticas 2 novos addons (Soil Guardian e Entrepreneur) E muito mais! Cliente 8.60 compatível com os addons e itens editados
ILHA VIP (Furia)
NPCS (Tibia Addon, Vende Addon por Crystal Coin)
Treiners (ON e OFFline)
Itens Vip (Donate) (ID Próprio)
Cliente 8.60 Compatível com : (2 novos addons e itens editados)
(Para alterar a Imagem do Cliente basta editar ou trocar o Tibia.pic)
2 Novos Addons
Soil Guardian
Entrepreneur
Downloads
Global Full 8.60 + DB ~~~~~~~~~ SCAN
Cliente 8.60 Compatível ~~~~~ SCAN
Web-Site ~~~~~~~~~~~~~ SCAN
Source e Distro
items.xml Sem itens DONATE
outfits.xml Sem os dois ADDONS
OBS: A Database que vem junto com o OTSERV é compativel com o WEB-SITE acima.
Cliente Próprio somente se for usar os itens Donate e os dois Addons que foi adicionado.
Como Rodar o Servidor + Site
-
luciano01 deu reputação a Kimoszin em Eu editei os level dos pokemon e ficou com erro alguém me ajudaAdicione em \data\lib\050-function.lua
function isSummon(uid) return uid ~= getCreatureMaster(uid) or false end
-
luciano01 deu reputação a Kimoszin em Como Aumentar O Xp Dos Players Quando Eles Compram p.a\data\lib\050-function.lua
function doPlayerSetPercentExperienceRate(cid, value) return doPlayerSetRate(cid, SKILL__LEVEL, getConfigValue("rateExperience") + (value / 100)) end \data\creaturescripts\scripts\login.lua registerCreatureEvent(cid, "extraExp") \data\creaturescripts\creaturescripts.xml <event type="login" name="extraExp" event="script" value="extraExp.lua"/> \data\creaturescripts\scripts\extraExp.lua local config = { ExtraExpRate = 30, } function onLogin(cid) if not(isPremium(cid)) then return doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Voce nao possui premium time, compre ja sua premium time e ganhe "..config.ExtraExpRate.."% de experiencia adicional.") end doPlayerSetPercentExperienceRate(cid, config.ExtraExpRate) return doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Voce acaba de ganhar "..config.ExtraExpRate.."% de experiencia adicionais por ser premium account.") end
-
luciano01 deu reputação a thiagobji em Como Aumentar O Xp Dos Players Quando Eles Compram p.aDouble EXP para Players PREMIUM
-
luciano01 deu reputação a Kimoszin em [Resolvido] Como Por Fly Para PremiumMovido para Suporte OTServer.
Procure por:
--if not isPremium(cid) then --doPlayerSendCancel(cid, "Only premium members are allowed to fly or ride.") --return true --end E deixe assim: if not isPremium(cid) then doPlayerSendCancel(cid, "Only premium members are allowed to fly or ride.") return true end