-
Total de itens
23 -
Registro em
-
Última visita
-
Dias Ganhos
1
Tudo que galaverna postou
-
me add no msn q se me esplica melhor gugalaverna@hotmail.com
-
Troca a database
-
Entao... Sua Database existe ?? deve tar com erro nela tente trocar
-
Não entendi ... você poderia esplicar melhor ?? e o que seria Account Manamanger?? não seria Account Mannager ??
-
Bom vamos lá : crie um npc.xml e nele coloque : <?xml version="1.0" encoding="UTF-8"?> <npc name="Quest Man" script="data/npc/scripts/quest.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="132" head="20" body="39" legs="45" feet="7" addons="3"/> <parameters> <parameter key="message_greet" value="Hello, |PLAYERNAME|."/> </parameters> </npc> Depois crie um script chamado : quest nele coloque o seguinte script local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} local pos = {x=?,y=?,z=?} 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 npcHandler:setMessage(MESSAGE_GREET, "Oi, eu posso lhe dar um {item}.") function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid if(msgcontains(msg, 'item') and talkState[talkUser] == 1 and getPlayerStorageValue(cid,7878)<=0 ) then selfSay('Você ganhou um item.', cid) doPlayerAddItem(cid, ITEM,1) setPlayerStorageValue(cid,7878,1) talkState[talkUser] = 0 else if getPlayerStorageValue(cid,7878)>=1 then selfSay('Você já fez esta quest.', cid) doTeleportThing(cid,pos,FALSE) end end return TRUE end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) PS: EDITE ONDE TÁ : local pos = {x=?,y=?,z=?} ?= POSCIÇÃO QUE VOCÊR QUER , E TBM EDITE ONDE TÁ : doPlayerAddItem(cid, ITEM,1) ONDE TÁ ITEM VOCÊ COLOCA O ITEM QUE VAI GANHAR ...Ajudei?? rep+ please
-
é so i no vocation e deixar a força da voc 0
-
crie um talaction/scripts .lua chamado aol nele coloque : function onSay(cid, words, param) if getPlayerItemCount(cid,2160) >=10 then doPlayerAddItem(cid,2173) doPlayerRemoveItem(cid,2160,10) else doPlayerSendCancel(cid,"Você não tem dinheiro suficiente") end end e no talkactions.xml é só voce colocar esta tag <talkaction words="!aol" event="script" value="aol.lua"/> ajudei ?? rep+ Para trocar o valor da aol troque aqui : if getPlayerItemCount(cid,2160) >=10 then 2160 = id de um dinheiro , nao sei ao certo qual é, e o >=10 é a quantidade maior ou igual a 10 é so modificar aí!! AJUDEI?? REP+ POR FAVOR
-
[Pedido] Um Pequeno Desafio Para Os Scripters, Quem Conseguir Ganha 5 Rep+
tópico respondeu ao 99611572 de galaverna em Lixeira Pública
me add no msn que te ajudo ...gugalaverna@hotmail.com -
kk é mesmo snokituh sei la como escreve é dificil nao tenho raiva de ti se fico me xingando
-
Acredito que seja por GlobalEvents ... Tentei mais não consegui.
-
Nada não , qualquer coisa tamo ae
-
AJUDEI??REP+ POR FAVOR :button_ok: Ele só perde o item se voce for teleportado?? Tente trocar o script para isso : --[[ SCRIPT BY: MarcelloMkez ]] function onUse(cid, item, pos, item2, topos) config = { ptemp ="no", --[[ Teleportar para ciade principal "yes ou no". ]] townp ="yes", --[[ Teleportar para Cidade onde o player mora, "yes ou no". ]] rmvitem ="yes", --[[ Remover item quando for usado? "yes ou no". ]] vip ="no", --[[ Precisa ser Premium Account para usar o item? "yes ou no" ]] batlle ="yes", --[[ Precisa estar sem Batlle para usar o item? "yes ou no "]] possibilidade = 10 , --[[ Possibilidade do player ser teleportado em porcentagem. ]] princ = {x=100, y=40, z=7}, --[[ Posição da Cidade Principal. ]] pz ="yes" --[[ Precisa estar em Protection Zone para Usar o Magic Teleport? "yes ou no"]] } local p = getPlayerTown(cid) local townpos = getTownTemplePosition(p) local cityname = getTownName(p) local chance = math.random(1, 100) --[[ de 1 a 100 % de chance, Não mude. ]] local msgp ="~ "..getPlayerName(cid).." Foi Teleportado para Cidade Principal. ~" local msgt ="~ "..getPlayerName(cid).." Foi Teleportado para "..cityname..". ~" local fail ="'O Teleport Falhou.'" if(config.vip =="yes") and not isPremium(cid) then doPlayerSendCancel(cid, "Você precisa ser Premium Account Para usar o Teleport Magico.") return 1 elseif (config.batlle == "yes") and (getCreatureCondition(cid, CONDITION_INFIGHT) == TRUE) then doPlayerSendCancel(cid, "Você precisa estar sem o batlle para usar o Teleport Magico.") return 1 elseif (config.pz =="yes") and (getTilePzInfo(getCreaturePosition(cid)) == FALSE) then doPlayerSendCancel(cid, "Você precisa estar em Protection Zone para usar o Teleport Magico.") return 1 elseif (config.ptemp =="yes" and config.townp =="yes") then doPlayerPopupFYI(cid, "'ERROR': Não é Possivel teleportar para duas cidades ao mesmo tempo.") return 1 --[[ Menssagem quando o player marcar 'yes' para as duas opçoes de teleport. ]] elseif chance >= 1 and chance <= config.possibilidade then doCreatureSay(cid, fail, TALKTYPE_ORANGE_1) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) return 1 elseif(config.ptemp == "yes") then doTeleportThing(cid, config.princ) doRemoveItem(item.uid, 1) doCreatureSay(cid, msgp, TALKTYPE_ORANGE_1) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_RED) return 1 elseif(config.townp == "yes") then doTeleportThing(cid, townpos) doRemoveItem(item.uid, 1) doCreatureSay(cid, msgt, TALKTYPE_ORANGE_1) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_RED) return 1 end if(config.rmvitem =="yes") then doRemoveItem(item.uid, 1) end return TRUE end
-
Você tem a "aparencia" da magia??(sprite) ps : dentro do spr ja
-
Simples , você tera que ter o spr da spell no seu server ai e so colocar a magia com essa spr e a area que voce quer!!
-
entao fala oq acontece??
-
não entendi me add no msn que resolvo pra você : gugalaverna@hotmail.com
-
Eu não sei como é , você poderia postar imagems/videos? PS: ESSAS IMG NÃO TÃO ENTRANDO...
-
faz assim ó , crie 1 npc no xml e no script dele coloque isso : local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) -- OTServ event handling functions start 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 -- OTServ event handling functions end -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! local travelNode = keywordHandler:addKeyword({'hi'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Quer ir para templo?'}) travelNode:addChildKeyword({'yes'}, StdModule.travel, {npcHandler = npcHandler, premium = true, level = 2, cost = 0, destination = {x=60, y=44, z=7} }) travelNode:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'I wouldn\'t go there either.'}) keywordHandler:addKeyword({'destination'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can take you to \'Ilha dos Eventos\' for just a small fee.'}) -- Makes sure the npc reacts when you say hi, bye etc. npcHandler:addModule(FocusModule:new()) ai você troca os testos e o lugar ajudei??REP+ please
-
Olá , tente fazer assim, vá no action ... Aí depois criei um script com o nome que você quiser no caso vamos usar pilar.lua vá la e coloque esse script : function onUse(cid, item, fromPosition, itemEx, toPosition) local pos1 = {x=?,y=?,z=?} if getPlayerAccess(cid) >=2 then doTeleportThing(cid,pos1,FALSE) end end ? = lugar, exemplo: x=100,y=200,z=7 Agora vá no actions.xml ... lá você adiciona essa linha : action itemid="ID" event="script" value="pilar.lua"/> ID = id do pilar e Teste , caso funcionar REP+ Por Favor , caso nao funcionar mensione o erro!!
-
Tente olhar aqui : http://www.xtibia.com/forum/topic/86776-pet-system-adapted-by-mesenga-perguntas-e-respostas/ Ajudei ?? Rep + por favor!!
-
Tente assim : local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_WATERSPLASH) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -0.1, -0, -0.2, -0) local combatDist = createCombatObject() setCombatParam(combatDist, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combatDist, COMBAT_PARAM_EFFECT, CONST_ME_WATERSPLASH) setCombatParam(combatDist, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY) setCombatFormula(combatDist, COMBAT_FORMULA_LEVELMAGIC, -0.1, -0, -0.2, -0) function onCastSpell(cid, var) if getPlayerItemCount(cid,4864) then doPlayerRemoveItem(cid, 4864, 1) doSendAnimatedText(getThingPos(cid), "WaterBall", TEXTCOLOR_LIGHTBLUE) local target = getCreatureTarget(cid) if(target ~= 0) then return doCombat(cid, combatDist, numberToVariant(target)) else doPlayerSendCancel(cid,"You need a Water Pouch to use this spell.") return doCombat(cid, combatDist, numberToVariant(target)) end end end ajudei ?? rep+ plz
-
poketibia [Poketibia/pedido] Ao Quebrar Pedra Ter Chance De Aparecer Geodude
tópico respondeu ao shardjeff de galaverna em Lixeira Pública
Você poderia colocar o Script do Rock Smash ?? -
Script De Change Money(Trocar 100 Por 1)
tópico respondeu ao Mateusfelip de galaverna em Lixeira Pública
tenta fazer outro script e colocar com outro item id o dessa frozen coin e coloca assim local scarabid = 6527 local scarabtext = TEXTCOLOR_DARKORANGE local frozencoin = 9971 local frozentext = TEXTCOLOR_WHITE function onUse(cid, item, fromPosition, itemEx, toPosition) if item.itemid == ITEM_GOLD_COIN and item.type == ITEMCOUNT_MAX then doChangeTypeItem(item.uid, item.type - item.type) doPlayerAddItem(cid, ITEM_PLATINUM_COIN, 1) doSendAnimatedText(fromPosition, "$$", TEXTCOLOR_LIGHTBLUE) elseif item.itemid == ITEM_PLATINUM_COIN and item.type == ITEMCOUNT_MAX then doChangeTypeItem(item.uid, item.type - item.type) doPlayerAddItem(cid, ITEM_CRYSTAL_COIN, 1) doSendAnimatedText(fromPosition, "$$$", TEXTCOLOR_TEAL) elseif item.itemid == ITEM_CRYSTAL_COIN and item.type == ITEMCOUNT_MAX then doChangeTypeItem(item.uid, item.type - item.type) doPlayerAddItem(cid, scarabid, 1) doSendAnimatedText(fromPosition, "$$$$", scarabtext) elseif item.itemid == scarabid and item.type == ITEMCOUNT_MAX then doChangeTypeItem(item.uid, item.type - item.type) doPlayerAddItem(cid, frozencoin, 1) doSendAnimatedText(fromPosition, "$$$$$", frozentext) elseif item.itemid == ITEM_PLATINUM_COIN and item.type < ITEMCOUNT_MAX then doChangeTypeItem(item.uid, item.type - 1) doPlayerAddItem(cid, ITEM_GOLD_COIN, ITEMCOUNT_MAX) doSendAnimatedText(fromPosition, "$", TEXTCOLOR_YELLOW) elseif item.itemid == ITEM_CRYSTAL_COIN and item.type < ITEMCOUNT_MAX then doChangeTypeItem(item.uid, item.type - 1) doPlayerAddItem(cid, ITEM_PLATINUM_COIN, ITEMCOUNT_MAX) doSendAnimatedText(fromPosition, "$$", TEXTCOLOR_LIGHTBLUE) elseif item.itemid == scarabid and item.type < ITEMCOUNT_MAX then doChangeTypeItem(item.uid, item.type - 1) doPlayerAddItem(cid, ITEM_CRYSTAL_COIN, ITEMCOUNT_MAX) doSendAnimatedText(fromPosition, "$$$", TEXTCOLOR_TEAL) elseif item.itemid == frozencoin then doChangeTypeItem(item.uid, item.type - 1) doPlayerAddItem(cid, scarabid, ITEMCOUNT_MAX) doSendAnimatedText(fromPosition, "$$$", TEXTCOLOR_TEAL) else return FALSE end return TRUE end AJUDEI?? REP + POR FAVOR
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.