Tabem To Precizano se Alguem arruma posta aki plx
info
Grupo: Herói
Registrado: 25/10/11
Posts: 2.2k
Reputação: +862
Gênero: Masculino
Char no Tibia: Sociopata

Editado Julho 26 por Overllord
info
Grupo: Lorde
Registrado: 22/07/12
Posts: 2.2k
Reputação: +453
Char no Tibia: Kissy

Este script e do vodkart
espero que eu tenha ajudado-los
function onSay(cid, words, param, channel)
local tabble = {
["zealot2"] = {reqVoc= 14, needLevel=715} -- Tenque por a tag do nome ali dps a o id da voc e dps o lvl que precisa
}
local config = {pid = getPlayerGUID(cid),newlv = 8,life = 185,mana = 35}
local param = string.lower(param)
if not tabble[param] then
doPlayerSendCancel(cid, "digite o nome correto.") return true
elseif getTilePzInfo(getCreaturePosition(cid)) == FALSE then
doPlayerSendCancel(cid, "precisa estar em pz.") return true
elseif getPlayerLevel(cid) < tabble[param].needLevel then
doPlayerSendCancel(cid, "You dont have the required level.") return true
elseif tabble[param].reqVoc == nil and getPlayerStorageValue(cid, 789456) >= 1 then
doPlayerSendCancel(cid, "você já virou mixed.") return true
elseif tabble[param].reqVoc ~= nil and getPlayerVocation(cid) ~= tabble[param].reqVoc then
doPlayerSendCancel(cid, "You dont have the required vocation.") return true
end
local newvoc = tabble[param].reqVoc ~= nil and (tabble[param].reqVoc+1) or 5
setPlayerStorageValue(cid, 650230, tonumber(newvoc))
setPlayerStorageValue(cid, 789456, tonumber(newvoc) == 5 and 1 or 0)
doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
doRemoveCreature(cid)
db.executeQuery("UPDATE `players` SET `level` = "..config.newlv..", `experience` = "..getExperienceForLevel(config.newlv)..",`manamax` = "..config.mana..",`health` = "..config.life..", `healthmax` = "..config.life..",`mana` = "..config.mana..",`vocation` = "..newvoc.." WHERE `id` = "..config.pid)
return true
end
info
Grupo: Artesão
Registrado: 09/02/11
Posts: 147
Reputação: +24
Char no Tibia: Soul Of Street

Este script e do vodkart
espero que eu tenha ajudado-los
function onSay(cid, words, param, channel) local tabble = { ["zealot2"] = {reqVoc= 14, needLevel=715} -- Tenque por a tag do nome ali dps a o id da voc e dps o lvl que precisa } local config = {pid = getPlayerGUID(cid),newlv = 8,life = 185,mana = 35} local param = string.lower(param) if not tabble[param] then doPlayerSendCancel(cid, "digite o nome correto.") return true elseif getTilePzInfo(getCreaturePosition(cid)) == FALSE then doPlayerSendCancel(cid, "precisa estar em pz.") return true elseif getPlayerLevel(cid) < tabble[param].needLevel then doPlayerSendCancel(cid, "You dont have the required level.") return true elseif tabble[param].reqVoc == nil and getPlayerStorageValue(cid, 789456) >= 1 then doPlayerSendCancel(cid, "você já virou mixed.") return true elseif tabble[param].reqVoc ~= nil and getPlayerVocation(cid) ~= tabble[param].reqVoc then doPlayerSendCancel(cid, "You dont have the required vocation.") return true end local newvoc = tabble[param].reqVoc ~= nil and (tabble[param].reqVoc+1) or 5 setPlayerStorageValue(cid, 650230, tonumber(newvoc)) setPlayerStorageValue(cid, 789456, tonumber(newvoc) == 5 and 1 or 0) doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level` = "..config.newlv..", `experience` = "..getExperienceForLevel(config.newlv)..",`manamax` = "..config.mana..",`health` = "..config.life..", `healthmax` = "..config.life..",`mana` = "..config.mana..",`vocation` = "..newvoc.." WHERE `id` = "..config.pid) return true end
Mais eu ja tentei usar esse e não consegui, explica melhor pra mim em qual pasta eu coloco e qual comando eu coloco pra resetar
Editado Julho 26 por gleison157
info
Grupo: Lorde
Registrado: 22/07/12
Posts: 2.2k
Reputação: +453
Char no Tibia: Kissy

em talkaction dps eu posto do talk.xml que vou aumozar
info
Grupo: Artesão
Registrado: 09/02/11
Posts: 147
Reputação: +24
Char no Tibia: Soul Of Street

em talkaction dps eu posto do talk.xml que vou aumozar
Vle então to esperando quando posta te dou rep+
info
Grupo: Visconde
Registrado: 19/07/12
Posts: 395
Reputação: +36
Char no Tibia: Billy Poul

se voces querem pro ot rozin eu tenho o ot. e todas scripts e varias outras mais ^^. esse dai de cima ainda falta algumas coisas. a vodkart fez ele pra mim.
<talkaction words="!promo" script="NOME DO ARQUIVO.lua"/>
info
Grupo: Lorde
Registrado: 22/07/12
Posts: 2.2k
Reputação: +453
Char no Tibia: Kissy

Pronto !
<talkaction words="!reset" script="reset.lua"/>
Como usar !
Você fala !reset e o nome que você coloco no param e pronto você sera kikado e ira pro templo
assim que o script funciona
Editado Julho 26 por SkyLigh
info
Grupo: Artesão
Registrado: 09/02/11
Posts: 147
Reputação: +24
Char no Tibia: Soul Of Street

se voces querem pro ot rozin eu tenho o ot. e todas scripts e varias outras mais ^^. esse dai de cima ainda falta algumas coisas. a vodkart fez ele pra mim.
<talkaction words="!promo" script="NOME DO ARQUIVO.lua"/>
olha aqui o scritp de reset que eu tenho
function onSay(cid, words, param, channel)
local tabble = {
["mixed"] = {reqVoc= nil, needLevel=10000},
["spin"] = {reqVoc= 5, needLevel=30000},
["sacred"] = {reqVoc= 6, needLevel=60000},
["loney"] = {reqVoc= 7, needLevel=110000},
["falling"] = {reqVoc= 8, needLevel=130000},
["hellborn"] = {reqVoc= 9, needLevel=250000},
["supreme"] = {reqVoc= 10, needLevel=310000},
["forgotten"] = {reqVoc= 11, needLevel=550000},
["nova"] = {reqVoc= 12, needLevel=715000},
["zealot1"] = {reqVoc= 13, needLevel=715000},
["zealot2"] = {reqVoc= 14, needLevel=715000}
}
local config = {pid = getPlayerGUID(cid),newlv = 8,life = 185,mana = 35}
local param = string.lower(param)
if not tabble[param] then
doPlayerSendCancel(cid, "digite o nome correto.") return true
elseif getTilePzInfo(getCreaturePosition(cid)) == FALSE then
doPlayerSendCancel(cid, "precisa estar em pz.") return true
elseif getPlayerLevel(cid) < tabble[param].needLevel then
doPlayerSendCancel(cid, "You dont have the required level.") return true
elseif tabble[param].reqVoc == nil and getPlayerStorageValue(cid, 789456) >= 1 then
doPlayerSendCancel(cid, "você já virou mixed.") return true
elseif tabble[param].reqVoc ~= nil and getPlayerVocation(cid) ~= tabble[param].reqVoc then
doPlayerSendCancel(cid, "You dont have the required vocation.") return true
end
local newvoc = tabble[param].reqVoc ~= nil and (tabble[param].reqVoc+1) or 5
setPlayerStorageValue(cid, 650230, tonumber(newvoc))
setPlayerStorageValue(cid, 789456, tonumber(newvoc) == 5 and 1 or 0)
doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
doRemoveCreature(cid)
db.executeQuery("UPDATE `players` SET `level` = "..config.newlv..", `experience` = "..getExperienceForLevel(config.newlv)..",`manamax` = "..config.mana..",`health` = "..config.life..", `healthmax` = "..config.life..",`mana` = "..config.mana..",`vocation` = "..newvoc.." WHERE `id` = "..config.pid)
return true
end
ele é do vodkart tb mais não ta funcionando direito
info
Grupo: Lorde
Registrado: 22/07/12
Posts: 2.2k
Reputação: +453
Char no Tibia: Kissy

mas oq eu passei esta funcionando ?
aki este do vodkart mudei um negoço nele agora nao sei se vai funcionar
function onSay(cid, words, param)
local tabble = {
["mixed"] = {reqVoc= nil, needLevel=10000},
["spin"] = {reqVoc= 5, needLevel=30000},
["sacred"] = {reqVoc= 6, needLevel=60000},
["loney"] = {reqVoc= 7, needLevel=110000},
["falling"] = {reqVoc= 8, needLevel=130000},
["hellborn"] = {reqVoc= 9, needLevel=250000},
["supreme"] = {reqVoc= 10, needLevel=310000},
["forgotten"] = {reqVoc= 11, needLevel=550000},
["nova"] = {reqVoc= 12, needLevel=715000},
["zealot1"] = {reqVoc= 13, needLevel=715000},
["zealot2"] = {reqVoc= 14, needLevel=715000}
}
local config = {pid = getPlayerGUID(cid),newlv = 8,life = 185,mana = 35}
local param = string.lower(param)
if not tabble[param] then
doPlayerSendCancel(cid, "digite o nome correto.") return true
elseif getTilePzInfo(getCreaturePosition(cid)) == FALSE then
doPlayerSendCancel(cid, "precisa estar em pz.") return true
elseif getPlayerLevel(cid) < tabble[param].needLevel then
doPlayerSendCancel(cid, "You dont have the required level.") return true
elseif tabble[param].reqVoc == nil and getPlayerStorageValue(cid, 789456) >= 1 then
doPlayerSendCancel(cid, "você já virou mixed.") return true
elseif tabble[param].reqVoc ~= nil and getPlayerVocation(cid) ~= tabble[param].reqVoc then
doPlayerSendCancel(cid, "You dont have the required vocation.") return true
end
local newvoc = tabble[param].reqVoc ~= nil and (tabble[param].reqVoc+1) or 5
setPlayerStorageValue(cid, 650230, tonumber(newvoc))
setPlayerStorageValue(cid, 789456, tonumber(newvoc) == 5 and 1 or 0)
doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
doRemoveCreature(cid)
db.executeQuery("UPDATE `players` SET `level` = "..config.newlv..", `experience` = "..getExperienceForLevel(config.newlv)..",`manamax` = "..config.mana..",`health` = "..config.life..", `healthmax` = "..config.life..",`mana` = "..config.mana..",`vocation` = "..newvoc.." WHERE `id` = "..config.pid)
return true
end
info
Grupo: Artesão
Registrado: 09/02/11
Posts: 147
Reputação: +24
Char no Tibia: Soul Of Street

Reseta ai desconecta, ai quando tento entra dnv o tibia da erro, ai quando logo dnv do look não aparece o nome da vocation
Editado Julho 26 por gleison157
info
Grupo: Visconde
Registrado: 19/07/12
Posts: 395
Reputação: +36
Char no Tibia: Billy Poul

vei o vodkart concerto os erros. eo resto pelo msn pramim. eu sou o lfelipebsilva05 ^^.
ta faltando um pá de coisa ai ainda ;s
info
Grupo: Artesão
Registrado: 09/02/11
Posts: 147
Reputação: +24
Char no Tibia: Soul Of Street

vei o vodkart concerto os erros. eo resto pelo msn pramim. eu sou o lfelipebsilva05 ^^.
ta faltando um pá de coisa ai ainda ;s
Então posta o seu aki pra mim pf ou me manda via pm ou msn pf man to precisando mto disso
info
Grupo: Visconde
Registrado: 19/07/12
Posts: 395
Reputação: +36
Char no Tibia: Billy Poul

vou pegar no outro pc dps. porque tem que adc monta de coisa ainda. no login.lua tem monte de coisa ainda . irei postar aqui dps.
info
Grupo: Artesão
Registrado: 09/02/11
Posts: 147
Reputação: +24
Char no Tibia: Soul Of Street

vou pegar no outro pc dps. porque tem que adc monta de coisa ainda. no login.lua tem monte de coisa ainda . irei postar aqui dps.
Ok mais vc vai postar o mapa ou o sistema de reset??
Se puder postar junto com o sistema de reset as vocation agradeço pq talvez o problema esteja nas minhas vocation
vei o vodkart concerto os erros. eo resto pelo msn pramim. eu sou o lfelipebsilva05 ^^.
ta faltando um pá de coisa ai ainda ;s
O Reset System que o vodkart arruma é esse aki olha --->http://www.xtibia.com/forum/topic/189517-reset-vocation-system-bug/page__fromsearch__1




info
Grupo: Artesão
Registrado: 09/02/11
Posts: 147
Reputação: +24
Char no Tibia: Soul Of Street
Sistema de reset que ganha vocation
Vocations
1-Sorcerer
2-Druid
3-Paladin
4-Knight
5-Mixed Assassin
6-Spin Assassin
7-Sacred Martyr
8-Lonely Star
9-Falling Star
10-Hellborn Deathdriver
11-Supreme Hellborn deathdrive
12-Apocalypse Deathbringer
13-Nova Hero.
14-Addicted Zealot
Mixed Assassin:
Se eu for kina,druid,pali ou sorc... e o player falar !mixedpromo quando tiver lvl 10k+ ele vai resetar para o lvl 8 e fica na vocation numero 5 que e a mixed Assasin.
Spin Assassin:
Ae quando o player chegar no lvl 60k+ ele vai falar !spinpromo ele ira reseta para o lvl 8 e fica na vocation numero 6 que e a spin assassin...
Sacred Martyr:
Ae quando o player chegar no lvl 95k+ ele vai falar !sacredpromo ele ira reseta e vai voltar para o lvl 30k..
Obs... O playe so Pode reseta as vocation mixed para spin se ele for a vocation mixed.e ele so pode reseta para a vocation sacred so se ele for spin...
Quests
Agora parte da quest que reseta vocation se tiver lvl permitido
Lonely Star:
O player so pode resetar para essa vocation se ele fizer a quest com a vocation Sacred Martyr com lvl 130k+ .
Apos a resetar o player trocarar de vocation e ficarar com o lvl 30k.
Falling Star:
O player so pode resetar para essa vocation se ele fizer a quest com a vocation Lonely Star Com lvl 160k+.
Apos a resetar o player trocarar de vocation e ficarar com o lvl 90k.
Hellborn Deathdriver:
O player so pode resetar para essa vocation se ele fizer a quest com a vocation Falling Star com lvl 250k+.
Apos a resetar o player trocarar de vocation e ficarar com o lvl 90k.
Para as outras vocation como a :
Superme Hellborn Deathdriver.
Apocalypse Deathbringer.
Nova Hero.
Vai ser por Comando.
Explicaçao:
Supreme Hellborn Deathdriver:
O player so pode resetar para essa vocation se ele tiver com a vocation Hellborn Deathdriver e tiver lvl 310k+.
Para o player resetar ele tem que falar !supremepromo.
Apocalypse Deathbringer:
O player so pode resetar para essa vocation se ele tiver com a vocation Supreme Hellborn Deathdriver e tiver lvl 550k+.
Para o player resetar ele tenque falar !forgottenpromo.
Nova Hero:
O player so pode resetar para essa vocation se ele tiver com a vocation Apocalypse Deathbringer e tiver lvl 715k+.
Para O player resetar ele tenque falar !novapromo.
Addicted Zealot:
O player so pode resetar para essa vocation se ele estiver com a vocation Nova Heo e tiver level 715k+.
Para o player resetar ele tem que falar !zealotpromo
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Ae Gostaria Desse Systema De Reset e o sistema de reset vocation quest ja tenho
REP+ PARA QUEM FAZER E GOSTARIA QUE FIZESSE O SCRIPT COM URGENCIA PARA MEU OT
Agradeço!!!