-
Total de itens
311 -
Registro em
-
Última visita
-
Dias Ganhos
8
Tudo que meubk postou
-
Nome da Spell:Nova Dano: 1000 - 2000 Tipo de Dano: energy Como que ela vai proceder: primeiro faz um efeito de carregando e depois explode como o nova do MU , a fase de carregando ficaria legal com varios efeitos de distancia chegando do nada e indo para o player Quanto tempo pra usar denovo: configuro dps no xml Vocaçoes: dps configuro no xml
-
nunca vi essa função q vc colocou ae : doSetCreatureCustom creio q seje mais viável vc usar está: http://www.xtibia.com/forum/topic/191971-tutorial-colocando-a-funcao-docreatecustommonster-no-c/
-
POKEMON VENHA JOGAR CONOSCO, POKEMON BRAZUCA, INICIA HOJE, 24H, HOSPEDAGEM EUA. 1°, 2°, 3°, 4° GERAÇÃO DE POKEMONS. SEM SISTEMA DE LEVEL TODOS OS SISTEMAS PADRÕES (RIDE, FLY, SURF, DITTO, TV, GINASIOS, ETC ...) TASK SYSTEM CLAN SYSTEM AUTO LOOT SYSTEM ENTRE MUITOS OUTROS ! ACCOUNT MANANGER: 1/1 CLIENT: AKI NÃO PRECISA DE IP CHANGER !
-
SITE: brazuca.sytes.net:8090 24H 10.31 UPGRADE SYSTEM SPECIAL LOOT EXP POR HIT SPELLS LVL 150
-
o cara tava ensinando fazer o bangue com onThink, por favor né, ensine somente se sabe !
- 31 respostas
-
- glove
- sword distance
-
(e 1 mais)
Tags:
-
creaturescripts/scripts cria um arquivo lua e cola isso function onTarget(cid, target) doTeleportThing(target, getThingPos(cid)) doSendMagicEffect(getThingPos(cid), 10) return true end dps no creaturescripts.xml a tag: <event value="nomedoarquivo.lua" event="script" name="targetPush" type="target"/> e dps no login.lua na pasta creaturescrpts/scripts antes do return true registerCreatureEvent(cid, "targetPush")
- 31 respostas
-
- glove
- sword distance
-
(e 1 mais)
Tags:
-
realmente estava cm bug, corrigido !
-
--/////////////////////////CONFIGS/////////////////////////////// CT_SECONDS = 30 -- tempo de controle CT_EFFECT = 10 -- efeito --////////////////////////////////////////////////////////////// function isWalkable(pos, creature, proj, pz) -- by Nord if getTileThingByPos({x = pos.x, y = pos.y, z = pos.z, stackpos = 0}).itemid == 0 then return false end if getTopCreature(pos).uid > 0 and creature then return false end cr = getThingFromPos({x = pos.x, y = pos.y, z = pos.z, stackpos = STACKPOS_TOP_CREATURE}) if isPlayer(cr.uid) or isMonster(cr.uid) then return false end if getTileInfo(pos).protection and pz then return false, true end local n = not proj and 3 or 2 for i = 0, 255 do pos.stackpos = i local tile = getTileThingByPos(pos) if tile.itemid ~= 0 and not isCreature(tile.uid) then if hasProperty(tile.uid, n) or hasProperty(tile.uid, 7) then return false end end end return true end function start_control_target(cid, target, seconds, ef) if not isCreature(target) then return true end if seconds == 0 or not isCreature(cid) then return mayNotMove(target, false) end if isWalkable(getPositionByDirection(getThingPos(target), getPlayerLookDir(cid))) then doTeleportThing(target, getPositionByDirection(getThingPos(target), getPlayerLookDir(cid))) doCreatureSetLookDir(target, getPlayerLookDir(cid)) doSendMagicEffect(getThingPos(target), ef) end addEvent(start_control_target, 700, cid, target, seconds -1, ef) end function onCastSpell(cid, var) if getCreatureTarget(cid) then local TARGET = getCreatureTarget(cid) start_control_target(cid, TARGET, CT_SECONDS, CT_EFFECT) end return true end
-
cara vou t dar rep+ só pelo modo q vc faz os pedidos, super bem explicado, faciitou mto para os scripters, da até vontade de fazer lendo isso, mas, to sem tempo, mais ta de parabéns pelo pedido !! vamo pessoal ajuda ele ae ! :X
- 23 respostas
-
- sistema refinamento
- sistema minerio
- (e 3 mais)
-
dúvida Spell que atinja jogadores fora de nossa tela.
pergunta respondeu ao Duuhzinhow de meubk em Scripts
a magia não é só o efeito zipter, ela tbem teleporta os players, enfim: local newPos = {x = 1248, y = 728, z = 7} --pos pra onde sera levado o target local time = 20 --tempo pra teleporta devolta, em segs local function teleport(cid, pos) if isCreature(cid) then doTeleportThing(cid, getClosestFreeTile(cid, pos)) doSendMagicEffect(getPlayerPosition(cid), 196) end end function onCastSpell(cid, var) for _, target in pairs(getPlayersOnline()) do local posRetorno = getThingPos(target) teleport(target, newPos) addEvent(teleport, time*1000, target, posRetorno) end return true end -
vc poderia diminuir 80% desse script usando tabela .
-
incriveeeeeeeeeeeel *-*
-
preciso sim ><
-
pedido Como adicionar novas vocações nesse script!
tópico respondeu ao oralb de meubk em Lixeira Pública
reportado para moverem para area de códigos c++- 7 respostas
-
- como adicionar novas vocações
- otserv
- (e 2 mais)
-
local condition = createConditionObject(CONDITION_PARALYZE) setConditionParam(condition, CONDITION_PARAM_TICKS, 5000) setConditionParam(condition, CONDITION_PARAM_SPEED, -5000) function onCastSpell(cid, var) local target = getCreatureTarget(cid) local targetpos = getCreaturePosition(target) local efepos = {x=targetpos.x+1, y=targetpos.y+1, z=targetpos.z} local time = 5 -- tempo paralyzado if isPlayer(cid) then if exhaustion.check(cid, 20000) == true then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde " .. exhaustion.get(cid, 20000) .. " segundos para usar novamente.") return FALSE end end local function No_Move_Target() if isCreature(target) then doCreatureSetNoMove(target, 0) end end if isPlayer(cid) then exhaustion.set(cid, 20000, 8) end doCreatureSetNoMove(target, 1) doAddCondition(target, condition) doSendMagicEffect(efepos, 152) addEvent(No_Move_Target, time*1000) return true end
-
testa ae, cria um arquivo xml na pasta mod com nome de tradepremium.xml, e cole o código: <?xml version="1.0" encoding="UTF-8"?> <mod name="tradePremium" enabled="yes" author="Miiller" forum="XTibia.com"> <config name="tradePremiumConfigs"><![CDATA[ minTradePremiumDays = 1 -- minimo de dias de premium que pode dar trade. tradePremiumItemId = 7723 -- id do item q vai representar no trade. minDistanceTrade = 5 -- distancia minima para trade. ]]></config> <talkaction words="/tradepremium;!tradepremium" event="script"><![CDATA[ domodlib("tradePremiumConfigs") function onSay(cid, words, param) local paramTab = string.explode(param, ",") if #paramTab < 2 then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid params: playername, premiumdays .") end if not getPlayerByName(paramTab[1]) then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player not found.") end if not tonumber(paramTab[2]) then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid days.") end if getPlayerTradeState(cid) >= 1 then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You are already in a trade.") end if getPlayerTradeState(getPlayerByName(paramTab[1])) >= 1 then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "This player is already in a trade.") end if getDistanceBetween(getThingPos(cid), getThingPos(getPlayerByName(paramTab[1]))) > minDistanceTrade then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You are far away from this Player.") end if getPlayerPremiumDays(cid) < tonumber(paramTab[2]) then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You only have " .. getPlayerPremiumDays(cid) .. " days of premium.") end local itemTrade = doCreateItemEx(tradePremiumItemId) doSetItemSpecialDescription(itemTrade, "Transfer of " .. paramTab[2] .. " days of premium.") doStartTrade(cid, getPlayerByName(paramTab[1]), itemTrade) registerCreatureEvent(cid, "tradePremiumEvent") return true end ]]></talkaction> <creaturescript type="tradeaccept" name="tradePremiumEvent" event="script"><![CDATA[ function onTradeAccept(cid, target, item, targetItem) if item.itemid == tradePremiumItemId then if tonumber(getItemSpecialDescription(item.uid):match("%d+")) then local days = tonumber(getItemSpecialDescription(item.uid):match("%d+")) doPlayerAddPremiumDays(cid, -days) doPlayerAddPremiumDays(target, days) doPlayerSendTextMessage(cid, 25, "You sell " .. days .. " days of Premium Account.") doPlayerSendTextMessage(target, 25, "You buy " .. days .. " days of Premium Account.") unregisterCreatureEvent(cid, "tradePremiumEvent") doRemoveItem(item.uid) end end return true end ]]></creaturescript> </mod>
-
nem todos tem a função, e não estou afim de ficar ensinando ninguém a editar as sources , ehuehueheu !
-
não seria : registerCreatureEvent(cid, "SpreadLoot") - enquanto a somente o player q matou poder pegar o loot, iria precisar da função onMove, que executa toda vez q vc move um item, tem na otland, ai vc coloca pra adicionar um atributo com o nome ou id do char q mato, sendo q somente este char possa mover os items, seria legal tbem , gravar o tempo q o item foi dropado,e depois de 30 segundos qualquer um possa pegar os items !
-
na parte acima que ele manda troca para RET_NOERROR, em vez de trocar adiciona isto embaixo: if (vocation->getId() == 4) { ret = RET_NOERROR; } ficando assim: ret = RET_CANONLYUSEONEWEAPON; if (vocation->getId() == 4) { ret = RET_NOERROR; } sendo o 4 o id da vocação que pode usar 2 espadas ... faça isso nas duas partes que ele manda trocar .
-
eu sei, mais ai eu ia ter q fazer uam verificação em todooooooooos os items do player até achar o msm uid, e ai vai , e tall, e a preguiça vem kkkkkkkkkkkkk eu não sei porra nenhuma de inglês, usei o google tradutor |:
-
não só arvores @Nill, qualquer outro item que vc não consiga arrastar, tipo arvores, rochas .. etc
-
@zipter98 só tenho a agradecer, vlw mlkão @Nil Value sim não é dificil, seria legal tbem quem tiver a função que altera o nome de monstros nas sources, ai o monstro poderia ter o mesmo nome do item, seria ainda mais legal ! kkk @JPedroTibianno ja tem uma função q faz isso amigo, pode ficar tranquilo, só botar na pasta mods e ja era !
-
fico feliz, q tenham gostado !
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.