
Tudo que mullino postou
-
Dano Adicional Por Item
nossa ae ferra pq tem armas de mais no meu ot teria como mudar pra dar em qualquer arma nao so de tar equipado ?/?
-
Dano Adicional Por Item
uai mas vou ter q fazer um pra cada arma entao?
-
Dano Adicional Por Item
no caso vai ser equipada no lugar da flexa onde vai ser o slot? esse ide 7893 tem q ser da escencia ?
-
Dano Adicional Por Item
Tem como fazer um que ao clicar em alguma fonte q vou criar , recarregue ela
-
Dano Adicional Por Item
Sim tem q equipar no lugar da flexa se possível. Quando chegar em casa vou testar Mas eaparte dela durar 2 horas equipada e depois ter q recarregar
-
(Resolvido)Recomendação de Distro para Servidor
OTX 0.4
-
Dano Adicional Por Item
Boa tarde Galerinha do Tk Gostaria de Pedir vcs Se tem Como algum scripter fazer um item que add dano á arma do player por EX: o players tem uma sword e ela hita 13k de dano normal ae o players equipa vou chamar de "Escencia" o players equipa a escencia e ela almenta mais 5k de hit podendo ser FIRE ou ICE ou seja a arma vai hitar 13k normal mais 5 k de Ice ou fire(no caso vou fazer 2 ice e fire) Se tiver equipado a Escencia mas que essa escencia "acabe" E podendo ser Recarregada Ne algun lugar do ot custando um presço ou x items configuraveis nao sei se deu para intender mas qualquer coisa fala ae que respondo!!!! des de ja Agradeço a todos!!! @mullino Ajuda ae @Vodkart
-
(Resolvido)erro In a timer event called from
como arrumar essa spell?
-
(Resolvido)erro In a timer event called from
issu afeta alguma coisa no ot? podendo ocasionar lag?
-
(Resolvido)erro In a timer event called from
ta aeee
-
(Resolvido)erro In a timer event called from
boa tarde galerinha do tk recentemente apareceu esse erro na minha distrito oq pode ser [Error - Spell Interface] In a timer event called from: data/spells/scripts/support/paralyze rune.lua:onCastSpell Description: (luaDoCreatureSetStorage) Creature not found [Error - Spell Interface] In a timer event called from: data/spells/scripts/support/paralyze rune.lua:onCastSpell Description: segue a script local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED) local condition = createConditionObject(CONDITION_PARALYZE) setConditionParam(condition, CONDITION_PARAM_TICKS, 20000) setConditionFormula(condition, -0.9, 0, -0.9, 0) setCombatCondition(combat, condition) function onCastSpell(cid, var) setPlayerStorageValue(cid, 12019, 1) addEvent(setPlayerStorageValue, 500, cid, 12019, -1) return doCombat(cid, combat, var) end
-
(Resolvido)AJUDEM Anti Paralyze
alguém pode ajudar
-
(Resolvido)AJUDEM Anti Paralyze
Boa noite galera do TK Tenho um mostro no meu ot q ataca paralize Gostaria de colocar um item q ao player equipar ele ficasse imune a essa paralize Alguém pode ajudar?? olha os script do monstro <?xml version="1.0" encoding="UTF-8"?> <monster name="Don Ramon" nameDescription="a Don" race="blood" experience="1" speed="2000" manacost="0"> <health now="1500000 " max="1500000"/> <look type="130" head="94" body="114" legs="114" feet="114" addons="3" corpse="3058"/> <targetchange interval="5000" chance="8"/> <strategy attack="100" defense="0"/> <flags> <flag summonable="0"/> <flag attackable="1"/> <flag hostile="1"/> <flag illusionable="0"/> <flag convinceable="0"/> <flag pushable="0"/> <flag canpushitems="1"/> <flag canpushcreatures="1"/> <flag targetdistance="5"/> <flag staticattack="90"/> <flag runonhealth="275"/> </flags> <attacks> <attack name="speed" interval="500" chance="20" radius="3" target="1" speedchange="-9999" duration="300000"> <attribute key="areaEffect" value="fire"/> </attack> <attack name="death" interval="2000" chance="100" range="7" min="-10000" max="-14000"> <attribute key="shootEffect" value="suddendeath"/> <attribute key="areaEffect" value="mortarea"/> </attack> <attack name="ice" interval="4000" chance="50" range="900000" min="-7000" max="-12000"> <attribute key="shootEffect" value="smallice"/> <attribute key="areaEffect" value="icetornado"/> </attack> </attacks> <defenses armor="25" defense="25"> <defense name="healing" interval="1000" chance="18" min="10000" max="100000"> <attribute key="areaEffect" value="blueshimmer"/> </defense> </defenses> <summons max="8"> <summon name="Royal dragon" interval="600" chance="5"/> </summons> <elements> <element icePercent="1"/> <element firePercent="1"/> <element energyPercent="-5"/> <element deathPercent="1"/> </elements> <immunities> <immunity earth="1"/> <immunity paralyze="1"/> <immunity invisible="1"/> </immunities> <loot capacity="5000"> <item id="9971" countmax="4" chance="100000000"/> </loot> </monster>
-
Bug Upgrad System Ajuda!!
Entendi agora.... Estava tentando copiar ums Scripts mas a letra ficava menor e eu não sabia o porquê dissu.... Então é só salvar e abrir de novo e apaga a interrogação... Mas pq o TK está dando issu nos scripts deu ceto mas ainda nao add atack nas arma de pally so add +1 mas o attack nao muda igual das swords
-
Bug Upgrad System Ajuda!!
[Error - LuaInterface::loadFile] data/actions/scripts/upgrade.lua:177: '=' expected near '?' [Error - Event::checkScript] Cannot load script (data/actions/scripts/upgrade.lua) data/actions/scripts/upgrade.lua:177: '=' expected near '?'
-
Bug Upgrad System Ajuda!!
oi ainda nao da attacks ne armas de pally
-
Bug Upgrad System Ajuda!!
@mullinoajuda @Vodkart
-
(Resolvido)Help Como usar mais Effect
Só uma pergunta.... Tem q ter cliente próprio para add novos efeito?
-
(Resolvido)Systema de Vip Por players e nao por Account
mas ae meu script e so trocar por esse dai ou tenho q apagar o meu e colocar o seu ?
-
(Resolvido)Systema de Vip Por players e nao por Account
boa Noite Galerinha do Tk gostaria de saber se tem como trocar o systema de vip por account e colocar por players vip = { name = "VIP System"; author = "Mock"; version = "1.0.0.0"; query="ALTER TABLE `accounts` ADD `vip_time` INTEGER"; query2="ALTER TABLE `accounts` ADD `vip_time` INT(15) NOT NULL" } function vip.setTable() dofile('config.lua') if sqlType == "sqlite" then db.query(vip.query) else db.query(vip.query2) end end function vip.getVip(cid) assert(tonumber(cid),'Parameter must be a number') if isPlayer(cid) == FALSE then error('Player don\'t find') end; ae = db.getResult("SELECT `vip_time` FROM `accounts` WHERE `name` = '"..getPlayerAccount(cid).."';") if ae:getID() == -1 then return 0 end local retee = ae:getDataInt("vip_time") or 0 ae:free() return retee end function vip.getVipByAcc(acc) assert(acc,'Account is nil') local a = db.getResult("SELECT `vip_time` FROM `accounts` WHERE `name` = '"..acc.."';") if a:getID() ~= -1 then return a:getDataInt("vip_time") or 0, a:free() else error('Account don\'t find.') end end function vip.setVip(cid,time) dofile("config.lua") assert(tonumber(cid),'Parameter must be a number') assert(tonumber(time),'Parameter must be a number') if isPlayer(cid) == FALSE then error('Player don\'t find') end; db.query("UPDATE `"..sqlDatabase.."`.`accounts` SET `vip_time` = '"..(os.time()+time).."' WHERE `accounts`.`name` ='".. getPlayerAccount(cid).."';") end function vip.getVipByAccount(acc) assert(acc,'Account is nil') return db.getResult("SELECT `vip_time` FROM `accounts` WHERE `name` = '"..acc.."';"):getDataInt("vip_time") or 0 end function vip.hasVip(cid) assert(tonumber(cid),'Parameter must be a number') if isPlayer(cid) == FALSE then return end; local t = vip.getVip(cid) or 0 if os.time(day) < t then return TRUE else return FALSE end end function vip.hasVips(cid) assert(tonumber(cid),'Parameter must be a number') if isPlayer(cid) == FALSE then return end; local t = vip.getVip(cid) if os.time(day) < t then return TRUE else return FALSE end end function vip.accountHasVip(acc) assert(acc,'Account is nil') if os.time() < vip.getVipByAccount(acc) then return TRUE else return FALSE end end function vip.getDays(days) return (3600 * 24 * days) end function vip.addVipByAccount(acc,time) assert(acc,'Account is nil') assert(tonumber(time),'Parameter must be a number') local a = vip.getVipByAcc(acc) a = os.difftime(a,os.time()) if a < 0 then a = 0 end; a = a+time return vip.setVipByAccount(acc,a) end function vip.setVipByAccount(acc,time) dofile("config.lua") assert(acc,'Account is nil') assert(tonumber(time),'Parameter must be a number') db.query("UPDATE `accounts` SET `vip_time` = '"..(os.time()+time).."' WHERE `accounts`.`name` ='"..acc.."';") return TRUE end function vip.returnVipString(cid) assert(tonumber(cid),'Parameter must be a number') if isPlayer(cid) == TRUE then return os.date("%d %B %Y %X ", vip.getVip(cid)) end end
-
Bug Upgrad System Ajuda!!
Alguem?
-
Bug Upgrad System Ajuda!!
Fala galera do Tk Tenho um syste,ma de Upgrade System Quase perfeito So tem um Bug Todas as armas refinao normal ate +10 porem a de pally refina +1+2 +3 ate +10 tbm mas nao add mais ataques nas armas minha sword é Sword (Atk:2485 physical + 15 fire, Def:40, sword fighting +10). quando refino fica Sword +1 (Atk:2490 physical + 15 fire, Def:45, sword fighting +10). ae vem as armas de pally onde esta o bug a normal é Bow (Atk:3000). e quando refica so aparece o +1 mas nao almenta o dano igual as sword olha Bow +1 (Atk:3000). tem como arrumar pra minn segue o script --- Email: <a href="mailto:[email protected]">[email protected]</a> -- &a = weapon attack -- &d = weapon defense -- &s = shield defense -- &p = armor defense -- # = nivel do item -- @ = max level local gain = { gainArmor='&p+(5)',loseArmor='&p-(3)', gainShield='&s+#',loseShield='&s-(#+3)', gainAttack='&a+(5*(#))',loseAttack='&a-(3*(#+3))', gainDefense='&d+(5*(#))',loseDefense='&d-(3*(#+3))', chance='(100/math.sqrt((((@/4)+(#*2))/@)*#))', maxlvl = 10, blocked_ids = {8881} } local it = { --[itemid] = [percent] [8306] = 7, -- 0% additional [8305] = 100, -- 50% } if not setItemName then function setItemName(uid,name) return doItemSetAttribute(uid,'name',name) end function setItemArmor(uid,name) return doItemSetAttribute(uid,'armor',name) end function setItemDefense(uid,name) return doItemSetAttribute(uid,'defense',name) end function setItemAttack(uid,name) return doItemSetAttribute(uid,'attack',name) end function getItemAttack(uid) return getItemAttribute(uid,'attack') end function getItemDefense(uid) return getItemAttribute(uid,'defense') end function getItemArmor(uid) if type(uid) == 'number' then return getItemAttribute(uid,'armor') else return getItemInfo(uid.itemid).armor end end end local function isArmor(uid) -- Function by Mock the bear. local f = getItemInfo(uid.itemid) if f.armor ~= 0 and f.wieldPosition ~= CONST_SLOT_NECKLACE then return true end return false end local function isWeapon(uid) -- Function by Mock the bear. uid = uid or 0 local f = getItemInfo(uid.itemid) if table.find({WEAPON_SWORD, WEAPON_CLUB, WEAPON_AXE}, f.weaponType) then return true end return false end local function isShield(uid) -- Function by Mock the bear. uid = uid or 0 local f = getItemInfo(uid.itemid) if f.defense ~= 0 and f.weaponType == WEAPON_SHIELD then return true end return false end local function isBow(uid) -- Function by Mock the bear. local f = getItemInfo(uid.itemid) if f.weaponType == WEAPON_DIST and f.ammoType ~= 0 then return true end return false end local function isBow2(uid) -- Function by Mock the bear. local f = getItemInfo(uid.itemid) if f.weaponType == WEAPON_DIST and f.ammoType ~= 0 then return true end return false end local function getWeaponLevel(uid) -- Function by Mock the bear. uid = uid or 0 local name = getItemName(uid.uid) or getItemInfo(uid.itemid).name or '' local lvl = string.match(name,'%s%+(%d+)%s*') return tonumber(lvl) or 0 end local function doTransform(s,i) -- Function by Mock the bear. local c = string.gsub(s,'@',gain.maxlvl) local c = string.gsub(c,'&a',(getItemAttack(i.uid) ~= 0 and getItemAttack(i.uid) or getItemInfo(i.itemid).attack)) local c = string.gsub(c,'&d',(getItemDefense(i.uid) ~= 0 and getItemDefense(i.uid) or getItemInfo(i.itemid).defense)) local c = string.gsub(c,'&s',(getItemDefense(i.uid) ~= 0 and getItemDefense(i.uid) or getItemInfo(i.itemid).defense)) local c = string.gsub(c,'&p',(getItemArmor(i.uid) ~= 0 and getItemArmor(i.uid) or getItemInfo(i.itemid).armor)) local c = string.gsub(c,'#',getWeaponLevel(i)) local q = assert(loadstring('return '..c)) return math.floor(assert(q())) end function onUse(cid, item, fromPosition, itemEx, toPosition) if item.uid == 0 or item.itemid == 0 then return false end toPosition.stackpos = 255 if isInArray(gain.blocked_ids, itemEx.itemid) or (not getItemWeaponType(itemEx.uid) or getItemWeaponType(itemEx.uid) > 5) or (getItemWeaponType(itemEx.uid) == 0 and not isArmor(itemEx)) or itemEx.itemid == 0 or itemEx.type > 1 or isItemStackable(itemEx.uid) then doPlayerSendTextMessage(cid, 24,"Voce nao consegue trabalhar neste item.") return TRUE end if isCreature(itemEx.uid) == TRUE then return FALSE end local level = getWeaponLevel(itemEx) local chance = doTransform(gain.chance,itemEx) local nm = getItemName(itemEx.uid) if level == gain.maxlvl then doSendMagicEffect(toPosition, 2) return doPlayerSendTextMessage(cid, 24,"Voce nao pode mais refinar este objeto, ele ja atingiu o seu maximo!") end doPlayerSendTextMessage(cid, 24,"Voce tenta refinar um(a) "..nm.." com "..(chance+it[item.itemid] > 100 and 100 or chance+it[item.itemid]).."% de chance de sucesso. ") if chance+it[item.itemid] >= math.random(0,100) then local nm = getItemName(itemEx.uid) local slot = nm:match('(%[.+%])') or '' ---If you server use slot system dont change it slot = slot~='' and ' '..slot or slot if level==0 then setItemName(itemEx.uid, nm..' +'..(level+1)..slot) elseif level<=9 then setItemName(itemEx.uid, string.match(string.match(string.sub(nm, 1, -3), "%S.*"), ".*%S")..' +'..(level+1)..slot) else setItemName(itemEx.uid, string.match(string.match(string.sub(nm, 1, -4), "%S.*"), ".*%S")..' +'..(level+1)..slot) end addEvent(doPlayerSendTextMessage,500,cid, 24,"Voce refina com sucesso o objeto e ele avanca para o nivel "..(level+1)..slot..".") doSendMagicEffect(toPosition, 12) if isArmor(itemEx) then local get = doTransform(gain.gainArmor,itemEx) setItemArmor(itemEx.uid,get) elseif isBow(itemEx) then setItemAttack(itemEx.uid, doTransform(gain.gainAttack,itemEx)) elseif isWeapon(itemEx) then setItemAttack(itemEx.uid, doTransform(gain.gainAttack,itemEx)) setItemDefense(itemEx.uid, doTransform(gain.gainDefense,itemEx)) elseif isShield(itemEx) then setItemDefense(itemEx.uid, doTransform(gain.gainShield,itemEx)) end else -- Give it a second chance, if it success, the item stays the same level. if chance+it[item.itemid] >= math.random(0,100) then addEvent(doPlayerSendTextMessage,500,cid, 24,"O refinamento falha mas seu objeto mantem-se no meso nivel.") else --if not, we'll give it a 15% change to get destroyed. if math.random(0,100) <= 15 then -- And only if the level is above 7. if level > 7 then addEvent(doPlayerSendTextMessage,500,cid, 24,"O objeto nao aguentou a carga do refinamento e acabou sendo destruido no processo.") doRemoveItem(itemEx.uid,1) -- You can set a custom animation for the destruction of the item here if you want. Just change the number to other animation doSendMagicEffect(toPosition, 9) else addEvent(doPlayerSendTextMessage,500,cid, 24,"O refinamento falha mas seu objeto mantem-se no meso nivel.") end else if level == 0 then addEvent(doPlayerSendTextMessage,500,cid, 24,"Não surte efeito.") doSendMagicEffect(toPosition, 2) elseif level > 0 then local nm = getItemName(itemEx.uid) local slot = nm:match('(%[.+%])') or '' ---If you server use slot system dont change it slot = slot~='' and ' '..slot or slot if level == 1 then setItemName(itemEx.uid, getItemNameById(itemEx.itemid)..slot) addEvent(doPlayerSendTextMessage,500,cid, 24,"Seu objeto voltou ao normal.") else setItemName(itemEx.uid, getItemNameById(itemEx.itemid)..' +'..(level-1)..slot) addEvent(doPlayerSendTextMessage,500,cid, 24,"O refinamento falha e seu objeto volta para o nivel "..(level-1)..slot..".") end if isArmor(itemEx) then setItemArmor(itemEx.uid,doTransform(gain.loseArmor ,itemEx)) elseif isWeapon(itemEx) then setItemAttack(itemEx.uid, doTransform(gain.loseAttack,itemEx)) setItemDefense(itemEx.uid, doTransform(gain.loseDefense,itemEx)) elseif isBow(itemEx) then setItemAttack(itemEx.uid, doTransform(gain.loseAttack,itemEx)) elseif isShield(itemEx) then setItemDefense(itemEx.uid, doTransform(gain.loseShield,itemEx)) end end doSendMagicEffect(toPosition, 9) end end end doRemoveItem(item.uid,1) return true end +Rep ajuem aeee
-
Usar Item Em Wands
Fiz uma ganbiarra e funfo pode add como resolvido
-
Usar Item Em Wands
top mao so nao ta dando pra colocar ne Wands ta foda ja tentei de tudo ajuda ae @Vodkart
-
Usar Item Em Wands
ok vc é mill cara tu consegue qual sua tag do discord para add vc como amigo ??