-
Total de itens
39 -
Registro em
-
Última visita
Tudo que xFkyx postou
-
Me da outro exemplo, plz
-
@Oneshot e seu forge system?
-
<talkaction words="/run" event="script" value="correr.lua"/> edita o /run do jeito que quizer
-
Procura cargo de scripter. Joguei muito em rookguard sempreesqueciaasenhadasacc
-
function onLogin(cid) registerCreatureEvent(cid, "aloot_kill") return true end local stor = 7575 function autoloot(cid, target, pos) local function doStack(cid, itemid, new) local count = getPlayerItemCount(cid, itemid) if (count > 100) then count = count - math.floor(count / 100) * 100 end local newCount = count + new if (count ~= 0) then local find = getPlayerItemById(cid, true, itemid, count).uid if (find > 0) then doRemoveItem(find) else newCount = new end end local item = doCreateItemEx(itemid, newCount) doPlayerAddItemEx(cid, item, true) end local function scanContainer(cid, uid, list) for k = (getContainerSize(uid) - 1), 0, -1 do local tmp = getContainerItem(uid, k) if (isInArray(list, tmp.itemid)) then if isItemStackable(tmp.itemid) and (getPlayerItemCount(cid, tmp.itemid) > 0) then doStack(cid, tmp.itemid, tmp.type) else local item = doCreateItemEx(tmp.itemid, tmp.type) doPlayerAddItemEx(cid, item, true) end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'Looted ' .. tmp.type .. ' ' .. getItemNameById(tmp.itemid) .. '.') doRemoveItem(tmp.uid) elseif isContainer(tmp.uid) then scanContainer(cid, tmp.uid, list) end end end local items = {} for i = getTileInfo(pos).items, 1, -1 do pos.stackpos = i table.insert(items, getThingFromPos(pos)) end if (#items == 0) then return end local corpse = -1 for _, item in ipairs(items) do local name = getItemName(item.uid):lower() if name:find(target:lower()) then corpse = item.uid break end end if (corpse ~= -1) and isContainer(corpse) then scanContainer(cid, corpse, tostring(getPlayerStorageValue(cid, stor)):gsub('_', ''):explode(',')) end function onKill(cid, target, lastHit) if not isPlayer(target) then local infos = getPlayerStorageValue(cid, stor) if (infos == -1) then return true end local list = tostring(infos):explode(',') if (#list == 0) then return true end addEvent(autoloot, 150, cid, getCreatureName(target), getCreaturePosition(target)) end return true end end
-
O que significa a a parte do isInArray?
-
Melhor mapper ever, continue assim ;D
-
data>actions>script faça um arquivo chamado dexp.lua e ponha isso: local config = { storage = 12345, exp = 100, -- em % tempo = 60, -- em minutos item = 12468 -- id do item } function onUse(cid, item, fromPosition, itemEx, toPosition) if getPlayerStorageValue(cid, config.storage) == 1 then return doPlayerSendCancel(cid, "Você já está com Double EXP.") end doPlayerSetExperienceRate(cid, (1+(config.exp/100))+(getPlayerExtraExpRate(cid)/100)) creatureEvent(doPlayerSetExperienceRate, config.tempo*60*1000, cid, 1+(getPlayerExtraExpRate(cid)/100-(exp/100))) doPlayerSendTextMessage(cid, "Agora você está com Double EXP.") setPlayerStorageValue(cid, config.storage, os.time()) creatureEvent(setPlayerStorageValue, config.tempo *60*100, cid, config.storage, 0) doPlayerRemoveItem(cid, config.item, 1) return TRUE end data>actions>actions.xml e ponha isso: <action itemid="12468" event="script" value="dexp.lua"/> data>creaturescripts>scripts e crie um arquivo com o nome ddexp.lua e ponha isso: local config = { storage = 12345, exp = 100, -- em % tempo = 60 -- em minutos } local time = config.tempo function onLogin(cid) if os.time()-getPlayerStorageValue(cid, storage) < time *60 then doPlayerSetExperienceRate(cid, (1+(config.exp/100))+(getPlayerExtraExpRate(cid)/100)) creatureEvent(doPlayerSetExperienceRate, (time*60-(os.time()-getPlayerStorageValue(cid, config.storage))) * 1000, cid, 1+(getPlayerExtraExpRate(cid)/100-(config.exp/100))) creatureEvent(setPlayerStorageValue, (time*60-(os.time()-getPlayerStorageValue(cid, config.storage))) * 1000 , cid, config.storage, 0) end end depois vá em data>creaturescripts>creaturescripts.xml e ponha isso: <event type="login" name="PlayerLogin" event="script" value="ddexp.lua"/> Não deu pra testar mas tentei
- 2 respostas
-
- item que da dobro de experien
- tibia
- (e 1 mais)
-
function onSay(cid, words, param) if not doPlayerRemoveMoney(cid, 1000) then return doPlayerSendCancel(cid, "Você não tem dinheiro o suficiente") end doChangeSpeed(cid, getCreatureSpeed(cid) + 100) doPlayerRemoveMoney(cid, 1000) doSetCreatureOutfit(cid, {lookType = 300}, 360000) addEvent(doChangeSpeed(cid), 360000, cid, getCreatureSpeed(cid) - 100) end
-
qual erro?
-
Procura google
-
Precisa das sprites
-
@UP oq faz o spell?
-
pra sempre?
-
n = numero de skills
-
[Patrimônio XTibia] Sua última Foto - Mapping
tópico respondeu ao Feyzer de xFkyx em Mapping Show-Off
@Leaft4Dead cara, vc gasta no mapping ;D -
vai em talkactions>scripts e crie um arquivo .lua e ponha o script. depois vá em talkactions e ponha pra editar o arquivo .xml e ponha isso: <talkaction log="yes" words="/invasaoitems" access="5" event="function" value="nomedoarquivolua"/>
-
Não seria mais facil chamar pra party??
-
Tenta ai, acho que ta certo ;D
- 12 respostas
-
- promotion ao compra vip
- otserv
- (e 2 mais)
-
local tp = {x=1, y=2, z=3} -- cordenadas tp local voc = { [1] = 9, [2] = 10, [3] = 11, [4] = 12, [5] = 9, [6] = 10, [7] = 11, [8] = 12, } local vocs = { [9] = 1, [10] = 2, [11] = 3, [12] = 4 } local storage = 12345 function onLogin(cid) if getPlayerStorageValue(cid) == storage then return TRUE end if isVip(cid) == TRUE then doPlayerSetVocation(cid, voc[getPlayerVocation(cid)]) setPlayerStorageValue(cid, storage, 1) return TRUE end if getPlayerStorageValue(cid) == storage and isVip(cid) == FALSE then doPlayerSetVocation(cid, vocs[getPlayerVocation(cid)]) return TRUE end end
- 12 respostas
-
- promotion ao compra vip
- otserv
- (e 2 mais)
-
vodkart, o meu ta certo?? nem testei
-
Mas é pra adicionar storage..
-
local magia = "exori" -- nome magia local storage = 12345 -- storage function onUse(cid, item, frompos, item2, topos) if getPlayerStorageValue(uid, storage) == 1 then return doPlayerSendCancel(cid, "Você já aprendeu a magia.") end playerLearnInstantSpell(cid, magia) doPlayerSendTextMessage(cid, "Parabéns você aprendeu a magia .. magia ..!") setPlayerStorageValue(uid, storage, 1) end
-
local guild = "Venorians" -- nome da guild local storage = 123 -- alguma storage local cidade = "Venore" -- cidade function onLogin(cid) if getPlayerStorageValue(uid, storage) == 1 then return TRUE end if getPlayerTown(cid) == cidade then doPlayerSetGuildNick(cid, guild) setPlayerStorageValue(uid, storage, 1) end end
-
function onSay(cid, words, param, channel) local pos_invas = {x=138,y=66,z=7} -- Coordenada da invasão! (Basta configurar essa) local item = 111 -- Id de um item local item2 = 222 local item3 = 333 local item4 = 444 local mensage = "!" -- Mensagem broadcastMessage(mensage, MESSAGE_EVENT_ADVANCE) doCreateItem(item, {x=pos_invas.x, y=pos_invas.y, z=pos_invas.z}) doCreateItem(item2, {x=pos_invas.x, y=pos_invas.y+3, z=pos_invas.z}) doCreateItem(item3, {x=pos_invas.x+2, y=pos_invas.y, z=pos_invas.z}) doCreateItem(item4, {x=pos_invas.x, y=pos_invas.y, z=pos_invas.z-5}) addEvent(broadcastMessage, 20*1000, mensage2, MESSAGE_EVENT_ADVANCE) end -- by: doindin and edited by xfkyx Nem testei mas acho que vai.
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.