-
Total de itens
3406 -
Registro em
-
Última visita
-
Dias Ganhos
113
Tudo que Vodkart postou
-
pow não fode demon uahuahauhauahauua para que usar LUAsql e storage? é um script simples function onStepIn(cid, item, position, lastPosition, fromPosition) return doSetCreatureOutfit(cid, {lookType = 136}, -1) end function onStepOut(cid, item, position, lastPosition, fromPosition) return doRemoveCondition(cid, CONDITION_OUTFIT) end
-
http://www.xtibia.com/forum/topic/135178-talkaction-name-changer/
-
-----------------This Spell was made with Mindrage's Spell Maker v0.56b --------- --Do not post the spells in any forum without this line or you will be caught!--- --This Software is free to use and can't be for for real-life values!------------ local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_TYPE, 1) setCombatParam(combat1, COMBAT_PARAM_BLOCKARMOR, 1) setCombatParam(combat1, COMBAT_PARAM_BLOCKSHIELD, 1) setCombatParam(combat1, COMBAT_PARAM_EFFECT, 15) setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 24) setCombatFormula(combat1, COMBAT_FORMULA_SKILL, 1, 0, 2, 0) local combat2 = createCombatObject() setCombatParam(combat2, COMBAT_PARAM_TYPE, 8) setCombatParam(combat2, COMBAT_PARAM_BLOCKARMOR, 1) setCombatParam(combat2, COMBAT_PARAM_BLOCKSHIELD, 1) setCombatParam(combat2, COMBAT_PARAM_EFFECT, 15) setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, 25) setCombatFormula(combat2, COMBAT_FORMULA_SKILL, 1, 0, 2, 0) local area1 = { {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0}, {0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 3, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0}, {0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}} local area2 = { {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0}, {0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 3, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0}, {0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}} setCombatArea(combat1, createCombatArea(area1)) setCombatArea(combat2, createCombatArea(area2)) function onCastSpell(cid, var) addEvent(doCombat, 0, cid, combat1, var) addEvent(doCombat, 0, cid, combat2, var) return TRUE end
-
junto com esses buypremium_command.xml buypremium_command.xml custommonsters.xml customspells.xml firstitems.xml highscorebook.xml
-
não tem porque fazer 2 falas,uma para female e outra para male... 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 itemid,count = 2159,1 if(msgcontains(msg, 'change') or msgcontains(msg, 'CHANGE')) then selfSay('Deseja realmente mudar de sexo por '..count..' ' .. getItemNameById(itemid) .. '? {yes}', cid) talkState[talkUser] = 1 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 1) then if doPlayerRemoveItem(cid, itemid, count) then doPlayerSetSex(cid, getPlayerSex(cid) == 0 and 1 or 0) selfSay('Compra efetuada com sucesso..', cid) talkState[talkUser] = 0 else selfSay('Você não tem '..count..' ' .. getItemNameById(itemid) .. ' para mudar de sexo!.', 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())
-
brother vc ta fazendo a coisa errada,você tem que deleta o script em actions e a sua tag tbm <action itemid="10221" event="script" value="expamulet.lua"/> isso vc deleta tudo /\ ai vc vai na pasta mods e só poe isso em arquivo.xml : expamulet.xml <?xml version="1.0" encoding="UTF-8"?> <mod name="Exp Amulet" version="1.0" author="vodka" contact="xtibia.com" enabled="yes"> <config name="expamulet"><![CDATA[ info = { rate = 3, time = 5, -- Hours storage = 20012 } function endExpRate(cid) if isPlayer(cid) == TRUE then doPlayerSetRate(cid, SKILL__LEVEL, 1) -- config.lua rate setPlayerStorageValue(cid, info.storage, -1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, 'Your extra experience time has ended.') end end ]]></config> <event type="login" name="check_rate" event="script"><![CDATA[ domodlib('expamulet') function onLogin(cid) if getPlayerStorageValue(cid, info.storage) >= os.time() then doPlayerSetRate(cid, SKILL__LEVEL, info.rate) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'Your extra experience rate is now: ' .. info.rate .. '. It will last for '.. math.floor((getPlayerStorageValue(cid, info.storage) - os.time())/(3600)) ..' hours.') addEvent(endExpRate, math.floor(getPlayerStorageValue(cid, info.storage) - os.time())*3600*1000, cid) end return true end]]></event> <action itemid="10221" event="script"><![CDATA[ domodlib('expamulet') function onUse(cid, item, frompos, item2, topos) if (getPlayerStorageValue(cid, info.storage) <= os.time()) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, 'Your extra experience rate is now: ' .. info.rate .. '. It will last for '.. info.time ..' hours.') doPlayerSetRate(cid, SKILL__LEVEL, info.rate) setPlayerStorageValue(cid, info.storage, os.time()+info.time*3600) addEvent(endExpRate, info.time *3600*1000, cid) doRemoveItem(item.uid, 1) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'You still have extra experience time left.') end return true end]]></action> </mod> OU sejá tudo em MODS,ai dentro do mods tem ACTIOND E CREATURESCRIPT nao precisa criar nenhum arquivo.lua e vc ta colocando arquivo em lua de vez de ser xml -.-
-
[Fechado] Vejam A Criatividade Deste Sujeito Emo Viado
tópico respondeu ao iagsousa de Vodkart em Lixeira Pública
FODA-SE -
@small no caso já está configurado para 5 horas,quando ele usar o ring ele fica com a exp 5 horas,ao por exemplo você reloga e tem 4 horas e 58 minutos,só vai aperecer a mensagem dizendo que tem 4 horas,e se tiver só 58 minutos vai dizer que tem 0 horas,depois eu coloco pra checar em minutos tbm,to sem tempo. flw @UP o calculo de horas está certo,é assim mesmo info.time *3600*1000 desse jeito mesmo, se você tiver usando na mods,simplismente nada,pois já ta incluindo no mods exato.
-
Alguem Pode Me Ajudar Com Esse Script De Promot?
tópico respondeu ao pok302010 de Vodkart em Lixeira Pública
Olha aqui rapazinho,eu até pensei em te ajudar,mais quando vi sua atutide infantil de chamar o cara que tentou te ajudar de noob,mesmo não sendo oque você realmente queria,as vezes as pessoas não ententem e você acha o cara de noob?,se você é tão bom porque não faz sozinho? para que vir pedir ajuda em uma coisa tão simples? ninguem é obrigado a ajudar,saiba disso.além disso seu tópico ta muito mal formatado. Flw bonzão -
@Small tenta usar assim,para melhor calcular o tempo: <?xml version="1.0" encoding="UTF-8"?> <mod name="Exp Amulet" version="1.0" author="vodka" contact="xtibia.com" enabled="yes"> <config name="expamulet"><![CDATA[ info = { rate = 3, time = 5, -- Hours storage = 20012 } function endExpRate(cid) if isPlayer(cid) == TRUE then doPlayerSetRate(cid, SKILL__LEVEL, 1) -- config.lua rate setPlayerStorageValue(cid, info.storage, -1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, 'Your extra experience time has ended.') end end ]]></config> <event type="login" name="check_rate" event="script"><![CDATA[ domodlib('expamulet') function onLogin(cid) if getPlayerStorageValue(cid, info.storage) >= os.time() then doPlayerSetRate(cid, SKILL__LEVEL, info.rate) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'Your extra experience rate is now: ' .. info.rate .. '. It will last for '.. math.floor((getPlayerStorageValue(cid, info.storage) - os.time())/(3600)) ..' hours.') addEvent(endExpRate, math.floor(getPlayerStorageValue(cid, info.storage) - os.time())*3600*1000, cid) end return true end]]></event> <action itemid="10221" event="script"><![CDATA[ domodlib('expamulet') function onUse(cid, item, frompos, item2, topos) if (getPlayerStorageValue(cid, info.storage) <= os.time()) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, 'Your extra experience rate is now: ' .. info.rate .. '. It will last for '.. info.time ..' hours.') doPlayerSetRate(cid, SKILL__LEVEL, info.rate) setPlayerStorageValue(cid, info.storage, os.time()+info.time*3600) addEvent(endExpRate, info.time *3600*1000, cid) doRemoveItem(item.uid, 1) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'You still have extra experience time left.') end return true end]]></action> </mod>
-
addpremium.lua function onSay(cid, words, param) local t = string.explode(param, ",") local player = getPlayerByNameWildcard(t[1]) local premiumdays = tonumber(t[2]) if (not t[1]) then doPlayerSendCancel(cid, "You must fill with a player name.") elseif (premiumdays < 0) then doPlayerAddPremiumDays(player, premiumdays) doPlayerSendTextMessage(cid,22,"You have removed " .. t[2] .. " premium days from " .. player .. ".") doPlayerSendTextMessage(player,25,"You have lost " .. t[2] .. " premium days.") elseif (premiumdays >= 1 and premiumdays < 150) then doPlayerAddPremiumDays(player, premiumdays) doPlayerSendTextMessage(cid,22,"You have added " .. premiumdays .. " premium days from " .. getCreatureName(player) .. ".") doPlayerSendTextMessage(player,25,"You received " .. premiumdays .. " premium days.") end return TRUE end talkactions.xml <talkaction log="yes" words="/addpremium" access="5" event="script" value="addpremium.lua"/>
-
Mods amuletExp.xml <?xml version="1.0" encoding="UTF-8"?> <mod name="Exp Amulet" version="1.0" author="vodka" contact="xtibia.com" enabled="yes"> <config name="expamulet"><![CDATA[ info = { rate = 3, -- 4x More Experience time = 5, -- Hours of Exp Time storage = 20012 } function endExpRate(cid) if isPlayer(cid) == TRUE then doPlayerSetRate(cid, SKILL__LEVEL, 1) -- config.lua rate setPlayerStorageValue(cid, info.storage, -1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, 'Your extra experience time has ended.') end end ]]></config> <event type="login" name="check_rate" event="script"><![CDATA[ domodlib('expamulet') function onLogin(cid) local hours = math.floor((getPlayerStorageValue(cid, info.storage) - os.time())/(3600)) if getPlayerStorageValue(cid, info.storage) >= os.time() then doPlayerSetRate(cid, SKILL__LEVEL, info.rate) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'Your extra experience rate is now: ' .. info.rate .. '. It will last for '.. hours ..' hours.') addEvent(endExpRate, hours*3600*1000, cid) end return true end]]></event> <action itemid="10221" event="script"><![CDATA[ domodlib('expamulet') function onUse(cid, item, frompos, item2, topos) if (getPlayerStorageValue(cid, info.storage) <= os.time()) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, 'Your extra experience rate is now: ' .. info.rate .. '. It will last for '.. info.time ..' hours.') doPlayerSetRate(cid, SKILL__LEVEL, info.rate) setPlayerStorageValue(cid, info.storage, os.time()+info.time*3600) addEvent(endExpRate, info.time *3600*1000, cid) doRemoveItem(item.uid, 1) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'You still have extra experience time left.') end return true end]]></action> </mod>
-
@Diogo sim sim,eu fui colaborador junto com o oneshot,ai falaram umas coisas sobre nosso cargo que não achamos justo e decidimos sair,além disso se os colaboradores tem alguma ferramenta a mais,sejá fechar ou mover tópicos é graças a nós que criamos e discutimos com a equipe xtibia(won,jv,lord,kaks,mais uns ae). abraços Att Che guevara
-
malz a demora fui pro curso 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 itemid,quanty = 2157,10 local out = { [0] = 366, [1] = 367 } if(msgcontains(msg, 'wayfarer') or msgcontains(msg, 'WAYFARER')) then selfSay('Você quer comprar o wayfarer addon por '..quanty..' ' .. getItemNameById(itemid) .. '? {yes} ', cid) talkState[talkUser] = 1 elseif msgcontains(msg, 'yes') and talkState[talkUser] == 1 then if doPlayerRemoveItem(cid, itemid, quanty) then doPlayerAddOutfit(cid,out[getPlayerSex(cid)],3) selfSay('Obrigado,receba seu addon!!', cid) talkState[talkUser] = 0 else selfSay('Você não tem ' .. quanty .. ' ' .. getItemNameById(itemid) .. ' para comprar o addon', 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())
-
é,paga pal mesmo vc n tem moral no meu tópico,pode sair
-
colocar um babacao que nem o linshun pra equipe xtibia? deve ta pagando mto mal só imagino,além disso ele é um inutil :X flw
-
ok e vai ser dado full addon tbm? Lembrando que voê fez double topic -.-
-
no caso não precisa ser criado um tile,dá para fazer direto na talk. assim: local position,pos = {x = 180,y = 59,z = 7},getCreaturePosition(cid) if (pos.z == position.z) and (pos.x == position.x) and (pos.y == position.y) then ... end abraços
-
@UP aqui está seu talkactions.xml
-
criativo demon achei cool *-* tem meu rep haha manda ve mlk
-
Com vontade de não fazer nada -Q
-
Já tem um servidor desse stilo online que é do nosso grande amigo dokmos xD
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.