-
Total de itens
395 -
Registro em
-
Última visita
-
Dias Ganhos
4
Tudo que Tchubaka postou
-
pedido [Bug] Player Compra Promotion 2 No Npc E Quando Desloga Ela Acaba
pergunta respondeu ao lorenzoh20 de Tchubaka em Scripts
tente mudar para 3. porque seria a 3promo.- 22 respostas
-
- promotion acaba qndo desloga
- promotion
- (e 2 mais)
-
pedido [Bug] Player Compra Promotion 2 No Npc E Quando Desloga Ela Acaba
pergunta respondeu ao lorenzoh20 de Tchubaka em Scripts
sim sim. isso seria npc de 3vocation. mude ai.- 22 respostas
-
- promotion acaba qndo desloga
- promotion
- (e 2 mais)
-
pedido [Bug] Player Compra Promotion 2 No Npc E Quando Desloga Ela Acaba
pergunta respondeu ao lorenzoh20 de Tchubaka em Scripts
tente usar esse script. local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid local price = 1 local vocations = {5,6,7,8} local level = 100 if(msgcontains(msg, 'promote dois') or msgcontains(msg, 'second promotion')) then selfSay('Você quer ser promovido por '..price..' gps? {yes} ', cid) talkState[talkUser] = 1 elseif msgcontains(msg, 'yes') and talkState[talkUser] == 1 then if isInArray(vocations, getPlayerVocation(cid)) then if getPlayerLevel(cid) >= level then if doPlayerRemoveMoney(cid,price) == TRUE then setPlayerPromotionLevel(cid, 2) selfSay('Parabens! Voce tem sua segunda promocao. ', cid) talkState[talkUser] = 0 else selfSay('Você não tem ' .. price .. ' gps para ser promovido', cid) talkState[talkUser] = 0 end else selfSay('Desculpe, você precisa ter level '.. level .. ' ou mais para se promover!', cid) talkState[talkUser] = 0 end else selfSay('Desculpe, mais você não possui a primeira promotion.', cid) talkState[talkUser] = 0 end elseif msg == "no" and talkState[talkUser] >= 1 then selfSay("Then not", cid) talkState[talkUser] = 0 npcHandler:releaseFocus(cid) end return TRUE end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) se continuar poste sua voc- 22 respostas
-
- promotion acaba qndo desloga
- promotion
- (e 2 mais)
-
vai em data/talkactions/script crie 1 arquivo com nome teleport.lua e cole isso. --[[script By Vodkart]]-- function onSay(cid, words, param) local config = { pz = true, -- players precisam estar em protection zone para usar? (true or false) battle = true, -- players deve estar sem battle (true or false) custo = true, -- se os teleport irão custa (true or false) need_level = true, -- se os teleport irão precisar de level (true or false) premium = true -- se precisa ser premium account (true or false) } --[[ Config lugares]]-- local lugar = { ["carlin"] = { -- nome do lugar pos = {x=129, y=54, z=6},level = 5,price = 1000}, ["venore"] = { -- nome do lugar pos = {x=160, y=54, z=7},level = 10, price = 2000}, ["thais"] = { -- nome do lugar pos = {x=125, y=351, z=9},level = 15,price = 3000}, ["edron"] ={ -- nome do lugar pos = {x=280, y=87, z=4},level = 20,price = 4000} } --[[ Lista de Viagem (Não mexa) ]]-- if (param == "lista") then local str = "" str = str .. "lista de viagem :\n\n" for name, pos in pairs(lugar) do str = str..name.."\n" end str = str .. "" doShowTextDialog(cid, 6579, str) return TRUE end local a = lugar[param] if not(a) then doPlayerSendTextMessage(cid, 22, "desculpe,este lugar não existe") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) return TRUE elseif config.pz == true and getTilePzInfo(getCreaturePosition(cid)) == FALSE then doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT,"você precisa estar em protection zone pra poder teleportar.") return TRUE elseif config.premium == true and not isPremium(cid) then doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Apenas players com premium account podem teleportar.") return TRUE elseif config.battle == true and getCreatureCondition(cid, CONDITION_INFIGHT) == TRUE then doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Você precisa estar sem battler pra poder teleportar.") return TRUE elseif config.need_level == true and getPlayerLevel(cid) < a.level then doPlayerSendTextMessage(cid, 22, "Desculpe,Voce não tem level. voce precisa "..a.level.." level ou mais para ser teleportado.") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) return TRUE elseif config.custo == true and doPlayerRemoveMoney(cid, a.price) == FALSE then doPlayerSendTextMessage(cid, 22, "Desculpe,voce nao tem dinheiro suficiente. Voce precisa "..a.price.." gp para ser teleportado.") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) return TRUE end doTeleportThing(cid, a.pos) doSendMagicEffect(a.pos, CONST_ME_TELEPORT) doPlayerSendTextMessage(cid, 22, "" .. getPlayerName(cid) .. " foi teleportado para: \n " .. param .. ".") return TRUE end em talkactions.xml adicione <talkaction words="!t" script="teleport=.lua"/> edit as pos. se quiser e so adc mais. para usar e so falar. !t local.
-
se quer igual o dele faz assim. em talkaction/script crie 1arquivo com nome depositar.lua e cole isso. function onSay(cid, words, param) file = io.open('depositar.txt','r') notice = file:read(-1) doShowTextDialog(cid,7528,notice) file:close() end e em talkactions.xml cole essa tag. <talkaction words="!depositar" event="script" value="depositar.lua"/> agora na pasta do seu ot onde tem o executor o config.lua crie 1 arquivo com nome depositar.txt e escreva uq quiser ^^ rep+?
-
vai em config.lua procure por isso. -- Blessings -- NOTE: blessingReduction* regards items/containers loss. -- eachBlessReduction is how much each bless reduces the experience/magic/skills loss. blessings = true blessingOnlyPremium = true blessingReductionBase = 30 blessingReductionDecrement = 5 eachBlessReduction = 8 e configure ao seu gosto.
-
function onSay(cid, words, param) if getPlayerBlessing(cid,5) then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have already been blessed") doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MORTAREA) else if doPlayerRemoveMoney(cid, 50000) == TRUE then for i = 1,5 do doPlayerAddBlessing(cid,i) end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have received blessings!") doSendMagicEffect(getPlayerPosition(cid), CONST_ME_ENERGYAREA) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need 50,000 gp in backpack for blessings.") doSendMagicEffect(getPlayerPosition(cid), CONST_ME_ICEAREA) end end end
-
Axo Que da sim.
-
desculpa ai. nao vi direito mesmo. @editei la testai.
-
@edit vai em data/talkaction/script crie 1 arquivo com nome deposito.lua e cole isso. function onSay(cid) local promos = { [1] = "MSG QUE IRA APARECER PARA O PLAYER COM INFORMAÇOES", } for i = 1, #promos do doPlayerPopupFYI(cid, promos[i]) end return true end agora em talkactions.xml cole isso. <talkaction words="!depositar" script="deposito.lua"/>
-
testa ai. qualquer erro posta aki.
-
cara esse ot ja vem com 1xp boa. esse ot e bom pra ter rank lvl baixo. 2k de lvl e talz. e nao aconselho a almentar mt. sinao tera que almentar danos das magias. dos bixos. life etc.
-
Va em creatureScripts/xml e coloque <event type="preparedeath" name="forever amulet" event="script" value="aol.lua"/> depois va em Creaturescripts/Scripts crie 1 arquivo com nome aol.lua e cole isso. function onPrepareDeath(cid, lastHitKiller, mostDamageKiller) if (getCreatureSkullType(cid) >= 4) then if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2196) then doCreatureSetDropLoot(cid, false) end return true end return true end agora va na pasta Login e adicione isso registerCreatureEvent(cid, "forever amulet") Obs: Nos items Xml procure o Id 2196 e coloque isto <attribute key="preventDrop" value="1" /> OBS: Se quiser mudar a id do aol para red. vai no aol.lua e mude a id 2196 pela suua id.
-
Amiigo vou tedar 1 conselho. sabe akela magia de druid? que cria akela parede de galhos na frente? pegue ela e modifique para ID da parede ^^. e adc mais vocaçoes. espero ter ajudado..
-
dúvida Como Colocar Addon Na Outfit? [Dúvida]
pergunta respondeu ao tonynamoral de Tchubaka em Scripts
nao e isso que ele quer creio eu. ele quer tpw. criar 1outfit exemplo. demon. ai tenha a opção de addon 1 e addons 2. que virara 1 orshabaal dps 1 apoka. exemplo isso. isso ai e so adc outfit -
e meu amg. nao sei oque pode ser entao =/ Desculpa ai nao poder ajudar'
-
Pode ser falta de memoria. algum bug quando o distro ainda esta abrindo o server e ele acha o bug. pode ser monte de coisa. mais pra mim parece ser a memoria ram.
-
spell Pedido De 2 Spells: 1- Paralyzar O Target, 2- Trapar O Target
pergunta respondeu ao roriscrave de Tchubaka em Scripts
Duvida Sanada . Reportado Para que movam. -
irei postar pra vcs 2
-
dúvida O Player No Meu Otserver Está Usando Comandos De God, Como Consertar Isso?
pergunta respondeu ao flagoa de Tchubaka em Resolvidos
e so você por no seu talkactions.xml essa tag access="5" ficaria assim. <talkaction log="yes" words="/i" access="5" event="script" value="createitem.lua"/> -
nao posto mapa completo. olha la. e dp's. templo essas coisas so.
-
pode ser tile bugado. systemas. você bota on e entra nele. ou so bota on?
-
pedido Itens Vips Usados Somente Por Vips !
pergunta respondeu ao \Mattheus ~* de Tchubaka em Scripts
tenta isso ai amg. http://www.xtibia.com/forum/topic/176267-movements-creaturescripts-vip-items-system/ espero ter ajudado. -
Va em npc/scripts e crie um arquivo itemtravel.lua e bote isto dentro: local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} local pos = {x=152,y=58,z=7} -------------- Pos para onde o player sera levado local itemid = 2468 ----------------- Id do item que vai ser removido do player function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end if msgcontains(msg, "offer") or msgcontains(msg, "help") then selfSay("Eu posso te levar a TAL lugar por um "..getItemNameById(itemid).." item, fale {travel} se quizer viajar.", cid) talkState[cid] = 0 elseif msgcontains(msg, 'travel') then if doPlayerRemoveItem(cid, itemid, 1) then selfSay("Boa viagem.", cid) doTeleportThing(cid, pos) else selfSay("Voce nao tem o item nescessario.", cid) end end return TRUE end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) Depois crie um arquivo NOMEDONPC.lua e bote isto dentro: <npc name="NOMEDONPC" script="data/npc/scripts/itemtravel.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="134" head="78" body="88" legs="0" feet="88" addons="3"/> <parameters> <parameter key="message_greet" value="Ola. Para mais informacoes de meus servicos diga {offer}." /> <parameter key="message_farewell" value="Tchau." /> <parameter key="message_walkaway" value="Tchau." /> </parameters> </npc> NAO SE ESQUEÇA DE CONFIGURAR O LOCAL E O ITEMID NO SCRIPT....
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.