Tudo que Fir3element postou
-
getCreaturePathTo
Seria útil talvez só em NPCs, mas se alguém trapar o npc ele vai parar de andar tbm neh
-
[10.90] Vanaheim Global Opensource - TFS 1.2
http://www.microsoft.com/en-us/download/details.aspx?id=40784
-
getCreaturePathTo
@edit a sua retorna as possíveis pos e a dele já anda neh... faz a mesma coisa que a do mock?
-
[10.90] Vanaheim Global Opensource - TFS 1.2
- [10.90] Vanaheim Global Opensource - TFS 1.2
- Source 255 Effect +
- Paralyze de mount
dei uma olhada aqui no mounts.xml e da pra adicionar a tag paralyze, tenta ver o q ela faz ai, to sem ot p testar aqui <mount id="1" clientId="368" name="Widow Queen" speed="20" premium="yes" paralyze="???" /> suppress="paralyze" sla, é algo assim- Paralyze de mount
nem sei o q é então, testei aqui e funcionou normal- Paralyze de mount
tu removeu a paralyze do spells.xml?- Paralyze de mount
local condition = createConditionObject(CONDITION_PARALYZE) setConditionParam(condition, CONDITION_PARAM_TICKS, 20000) setConditionFormula(condition, -0.9, 40, -0.9, 0) function onUse(cid, item, fromPosition, itemEx, toPosition) if (not (isDruid(cid) or isSorcerer(cid))) and (getPlayerGroupId(cid) <= 3) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Your vocation cannot use this rune.") return FALSE end if (getPlayerMana(cid) < 700) and (getPlayerGroupId(cid) <= 3) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You don't have enough mana points.") return FALSE end if (not (isPlayer(itemEx.uid))) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You may use paralyze only on players.") return FALSE end if(getTilePzInfo(getCreaturePosition(cid)) == TRUE or getTilePzInfo(getCreaturePosition(itemEx.uid)) == TRUE) and (getPlayerGroupId(cid) <= 3) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You can't paralyze in protection zone.") return FALSE end doAddCondition(itemEx.uid, condition) doPlayerAddMana(cid, -700) if(item.type > 1) then doTransformItem(item.uid, item.itemid, item.type-1) else doRemoveItem(item.uid) end return true end- Ajuda com VPS/DEDICADO
tava olhando no lugar errado aehuaehue enfim, nos vps não seria melhor informar o processador? ram/hd é bem barato hj em dia, o q conta é o processador haha- Paralyze de mount
tenta esse script nas actions, n esquece de remover a paralyze das spells se der certo eu coloco o bagui de mount <action itemid="2278" event="script" value="paralyze.lua"/> function onUse(cid, item, fromPosition, itemEx, toPosition) if (not (isDruid(cid) or isSorcerer(cid))) and (getPlayerGroupId(cid) <= 3) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Your vocation cannot use this rune.") return FALSE end if (getPlayerMana(cid) < 700) and (getPlayerGroupId(cid) <= 3) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You don't have enough mana points.") return FALSE end if (not (isPlayer(itemEx.uid))) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You may use paralyze only on players.") return FALSE end if(getTilePzInfo(getCreaturePosition(cid)) == TRUE or getTilePzInfo(getCreaturePosition(itemEx.uid)) == TRUE) and (getPlayerGroupId(cid) <= 3) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You can't paralyze in protection zone.") return FALSE end doAddCondition(itemEx.uid, condition) doPlayerAddMana(cid, -700) if(item.type > 1) then doTransformItem(item.uid, item.itemid, item.type-1) else doRemoveItem(item.uid) end return true end- Reset System with sources
Pra quem quiser o sistema com stages: local config = { backToLevel = 8, redskull = false, battle = true, pz = false, stages = { {resets = 4, level = 350}, {resets = 9, level = 355}, {resets = 14, level = 360}, {resets = 19, level = 365}, {resets = 24, level = 380}, {resets = 29, level = 390}, {resets = 34, level = 410}, {resets = 39, level = 430}, {resets = 44, level = 450} } } function onSay(cid, words, param) if config.redskull and getCreatureSkullType(cid) == 4 then return doPlayerSendCancel(cid, "Voce precisa estar sem red skull para resetar.") elseif config.pz and not getTilePzInfo(getCreaturePosition(cid)) then return doPlayerSendCancel(cid, "Voce precisa estar em protection zone para resetar.") elseif config.battle and getCreatureCondition(cid, CONDITION_INFIGHT) then return doPlayerSendCancel(cid, "Voce precisa estar sem battle para resetar.") end local resetLevel = 0 for x, y in ipairs(config.stages) do if getResets(cid) <= y.resets then resetLevel = y.level break end end if getPlayerLevel(cid) < resetLevel then return doPlayerSendCancel(cid, "Voce precisa do level " .. resetLevel .. " ou mais para resetar.") end setResets(cid, 1) local guid = getPlayerGUID(cid) doRemoveCreature(cid, true) db.executeQuery("UPDATE `players` SET `level` = " .. config.backToLevel .. ", `experience` = " .. getExperienceForLevel(config.backToLevel) .. " WHERE `id` = " .. guid) return true end- [talkaction] !comprar skill/magiclevel
Script atualizado, arrumei os bugs!- Ajuda a compilar
visual studio 2010-2013 + libs + includes tem tutorial aqui no tk...- Source 255 Effect +
uint16 vai até 65,535 Tem que modificar o client, só na source não adianta nada- [10.90] Vanaheim Global Opensource - TFS 1.2
OBS.: as dlls vem junto com as libs usadas pra compilar só falta aprender a escrever- É possível compilar as sources de um tfs 0.4 r3884 pra linux?
- Ajuda com VPS/DEDICADO
só diz quanto tem de espaço no hd e seu site tem uns bugs parça- [10.90] Vanaheim Global Opensource - TFS 1.2
debian 8 é versão de teste, o último release foi o 7.5 eu acho- (Resolvido)[Duvida] Vantagens com função na source ?
Tudo que vc faz em lua da pra fazer na source, mas é bem mais fácil fazer scripts em lua do q c++ (p mim q sou leigo) Pena q nos tfs antigos é bem limitado o uso da lua, hj em dia no tfs 1.1 ta bem melhor- [Função] math.SumArray(array)
Serve para somar os números dentro de uma tabela... @tópico Outro jeito de fazer: function table.plus(array) local n = 0 for a = 1, #array do if tonumber(array[a]) then n = n + array[a] end end return n end- [Função] generateSerial() & isInvited(houseId, playerName)
Obrigado Percebi isso agr HSAUHSAUSA- [Função] generateSerial() & isInvited(houseId, playerName)
generateSerial() Tava sem nada pra fazer, dai fiz essa função... ela retorna um serial key. Exemplo: F2EIA-VFZW6-8SNWR-TJ1MH-622O4 function generateSerial() local letters, str = { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9" }, "" for a = 1, 5 do for b = 1, 5 do local rand = letters[math.random(#letters)] str = str .. rand end str = str .. "-" end local serial = string.gsub(string.reverse(str), "-", "", 1) return serial end isInvited(houseId, playerName) Tava precisando dessa função, ela retorna se o player ta invitado na casa ou não (true or false). Não sei porque eu tenho a impressão que existe uma função parecida com essa... function isInvited(houseId, playerName) if string.find(string.lower(getHouseAccessList(houseId, 0x100)), playerName) or string.find(string.lower(getHouseAccessList(houseId, 0x101)), playerName) then return true end return false end- [C++] doCreatureCastSpell(creature, spellName)
já tem umas 3 funções dessa, mas a do orochi ta melhor - [10.90] Vanaheim Global Opensource - TFS 1.2
Informação Importante
Confirmação de Termo