Tudo que firebolt postou
- shovel não abre buracos
- shovel não abre buracos
-
shovel não abre buracos
não funcionou cara =s só que eu acredito que o problema não esta nessa parte, pq se eu colocar o script da shovel em outro item ele funciona normal, alguem sabe se tem algum outro arquivo para mecher na shovel? no actions xml ta assim <!-- Tools --> <action itemid="6561" script="tools/ceremonial_ankh.lua"/> <action itemid="9930" script="tools/rustremover.lua"/> <action itemid="2420" script="tools/machete.lua"/> <action itemid="2442" script="tools/machete.lua"/> <action itemid="2550" script="tools/scythe.lua"/> <action itemid="2580" script="tools/fishing.lua" allowfaruse="1"/> <action itemid="2554" script="tools/shovel.lua"/> <action itemid="5710" script="tools/shovel.lua"/> <action itemid="2120" script="tools/rope.lua"/> <action itemid="7731" script="tools/rope.lua"/> <action itemid="2553" script="tools/pick.lua"/> <action itemid="5908" script="tools/obsidian_knife.lua"/> <action itemid="5942" script="tools/blessed_wooden_stake.lua"/>
- shovel não abre buracos
-
shovel não abre buracos
galera as shovels (todas elas) nenhuma esta abrindo buraco, ja tentei resolver algumas vezes mas não deu, alguem pode me ajudar? local holes = {468, 481, 483, 7932, 8579} local sand = {231, 9059} function onUse(cid, item, fromPosition, itemEx, toPosition) if(isInArray(holes, itemEx.itemid)) then local newId = itemEx.itemid + 1 if(itemEx.itemid == 8579) then newId = 8585 end doTransformItem(itemEx.uid, newId) doDecayItem(itemEx.uid) elseif(isInArray(sand, itemEx.itemid)) then local rand = math.random(1, 100) if(itemEx.actionid == 100 and rand <= 20) then doTransformItem(itemEx.uid, 489) doDecayItem(itemEx.uid) elseif(rand >= 1 and rand <= 5) then doCreateItem(2666, 1, toPosition) elseif(rand > 85) then doCreateMonster("Scarab", toPosition, false) end doSendMagicEffect(toPosition, CONST_ME_POFF) end return true end
- Ajuda
- Rings
-
Bug no trade do npc furniture
coloque assim no furniture.lua local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) 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 -- Don't forget npcHandler = npcHandler in the parameters. It is required for all StdModule functions! keywordHandler:addKeyword({'chairs'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I sell wooden, sofa, red cushioned, green cushioned, tusk and ivory chairs.'}) keywordHandler:addKeyword({'tables'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I sell big, square, round, small, stone, tusk, bamboo tables.'}) keywordHandler:addKeyword({'plants'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I sell pink and green flowers, also christmas trees.'}) keywordHandler:addKeyword({'furniture'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I sell large trunks, boxes, drawers, dressers, lockers and troughs.'}) keywordHandler:addKeyword({'more'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I sell coal basins, birdcages, harps, pianos, globes, clocks and lamps.'}) keywordHandler:addKeyword({'destination'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I sell blue, green, orange, pink, red, white and yellow tapestries.'}) keywordHandler:addKeyword({'small'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I sell small purple, small green, small red, small blue, small orange, small turquiose and small white pillows.'}) keywordHandler:addKeyword({'round'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I sell round blue, round red, round purple and round turquiose pillows.'}) keywordHandler:addKeyword({'square'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I sell blue, red, green and yellow pillows.'}) keywordHandler:addKeyword({'pillows'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I sell heart, small, sqare and round pillows.'}) keywordHandler:addKeyword({'beds'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I sell {green}, {red} and {yellow} {beds} for {5000}gp. I can sell you too standard bed (to remove modification)'}) npcHandler:addModule(FocusModule:new())
- Ajuda
-
Ajuda
olá pessoal, eu tenho algumas duvidas, primeiramente como eu faço para adicionar um shopping no meu servidor, tipo ja tem a parte do shop (meu geisor compatível com tfs 1.0) eu ativei o site, só que quero saber como faço para o dinheiro cair na minha conta e toda informação útil que vocês poderem dar, outra coisa, eu gostaria de saber um host bom, com domínio de site e sugestões. obrigado não sei se essa é a area certa, se não for me desculpem
-
(Resolvido)Save
ix cara não funciono o comando do god
-
(Resolvido)Save
vlw
-
(Resolvido)Save
eae galera, como eu fasso pra adicionar o save server automatico, tipo de meia em meia hora ele salva sozinho..?? e como eu adiciono o comando /save pra poder salvar direto com o god? obrigado!
- Rings
- Rings
-
Erro trono ADM!
poste o trono.lua inteiro
-
Bug no trade do npc furniture
poste o furniture.lua e poste aqui pra mim, eu ja resolvo pra vc data/npc/scripts/furniture.lua
- Pedido de Geisior
- Pedido de Geisior
- Pedido de Geisior
- Pedido de Geisior
-
debug
consegui resolver aqui, obrigado Absolut por me ajudar, sem vc não iria conseguir mesmo haha para quem tiver esse problema aqui esta a enchanting.lua --by Keraxel function onUse(cid, item, fromPosition, itemEx, toPosition) --CONFIG local config = { mana = 300, soul = 2, messNotEnoughSoul = "You don't have enough soul points.", messNotEnoughMana = "You don't have enough mana points.", effect = 39 --you can test effects with !z command (ex. !z 23) } --/CONFIG local array = { [7759] = 8907, [7760] = 8906, [7761] = 8909, [7762] = 8908 } local altars = {{7516, 7517, 7518, 7519}, {7504, 7505, 7506, 7507}, {7512, 7513, 7514, 7515}, {7508, 7509, 7510, 7511}} local gems = {2149, 2147, 2150, 2146} local enchantedGems = {7761, 7760, 7762, 7759} local weapons = { -- {earth, fire, energy, ice} [2430] = {7860, 7750, 7875, 7769}, [2423] = {7864, 7754, 7879, 7773}, [7406] = {7857, 7747, 7872, 7766}, [7383] = {7855, 7745, 7870, 7764}, [7384] = {7856, 7746, 7871, 7765}, [7415] = {7866, 7756, 7881, 7775}, [7380] = {7862, 7752, 7877, 7771}, [7402] = {7858, 7784, 7873, 7767}, [2391] = {7868, 7758, 7883, 7777}, [7389] = {7861, 7751, 7876, 7770}, [2383] = {7854, 7744, 7869, 7763}, [7392] = {7867, 7757, 7882, 7776}, [2429] = {7859, 7749, 7874, 7768}, [2445] = {7865, 7755, 7880, 7774}, [2454] = {7863, 7753, 7878, 7772} } if itemEx.itemid == 8905 and isInArray(enchantedGems, item.itemid) then for k, v in pairs(array) do if item.itemid == k then doTransformItem(itemEx.uid, v) doRemoveItem(item.uid, 1) doSendMagicEffect(fromPosition, config.effect) return TRUE end end elseif isInArray(gems, item.itemid) == TRUE then for i=1, #gems do if isInArray(altars[i], itemEx.itemid) == TRUE and item.itemid == gems[i] then if getPlayerMana(cid) >= config.mana then if getPlayerSoul(cid) >= config.soul then doRemoveItem(item.uid, 1) doPlayerAddItem(cid, enchantedGems[i], 1) doPlayerAddSoul(cid,-config.soul) doPlayerAddMana(cid,-config.mana) else doPlayerSendTextMessage(cid, MESSAGE_EVENT_ORANGE, config.messNotEnoughSoul) doSendMagicEffect(fromPosition, 2) return FALSE end else doPlayerSendTextMessage(cid, MESSAGE_EVENT_ORANGE, config.messNotEnoughMana) doSendMagicEffect(fromPosition, 2) return FALSE end doSendMagicEffect(toPosition, config.effect) return TRUE end end else for k, v in pairs(weapons) do if itemEx.itemid == k then for i=1, #enchantedGems do if item.itemid == enchantedGems[i] then doTransformItem(itemEx.uid, v[i], 1000) doRemoveItem(item.uid, 1) doSendMagicEffect(fromPosition, config.effect) return TRUE end end end end end return TRUE end
- debug
- debug
-
debug
function onUse(cid, item, fromPosition, item2, toPosition) local gems = {2146, 2147, 2149, 2150} local egems = {7759, 7760, 7761, 7762} local altars = {{7508, 7509, 7510, 7511}, {7504, 7505, 7506, 7507}, {7516, 7517, 7518, 7519}, {7512, 7513, 7514, 7515}} local weapons = {2383, 7384, 7389, 7406, 7402, 2429, 2430, 2435, 7380, 2454, 2423, 2445, 7415, 7392, 2391, 2544, 8905, 2342} local eweapons = {{7763, 7744, 7854, 7869}, {7765, 7746, 7856, 7871}, {7770, 7751, 7861, 7876}, {7766, 7747, 7857, 7872}, {7767, 7748, 7858, 7873}, {7768, 7749, 7859, 7874}, {7769, 7750, 7860, 7875}, {7770, 7751, 7861, 7876}, {7771, 7752, 7862, 7877}, {7772, 7753, 7863, 7878}, {7773, 7754, 7864, 7879}, {7774, 7755, 7865, 7880}, {7775, 7756, 7866, 7881}, {7776, 7757, 7867, 7882}, {7777, 7758, 7868, 7883}, {7839, 7840, 7838, 7850}, {8907, 8906, 8909, 8908}, {2343, 2343, 2343, 2343}} local type = item.type if type == 0 then type = 1 end local mana = -300 * type local soul = -2 * type if isInArray(gems, item.itemid)== TRUE then for aa=1, #gems do if item.itemid == gems[aa] then a=aa end end if isInArray(altars[a], item2.itemid)== TRUE then if getPlayerMana(cid) >= mana and getPlayerSoul(cid) >= soul then doTransformItem(item.uid,egems[a]) doPlayerAddMana(cid,mana) doPlayerAddSoul(cid,soul) doSendMagicEffect(fromPosition,39) else doPlayerSendCancel(cid,"You dont have mana or soul points.") end else return 2 end elseif isInArray(egems, item.itemid)== TRUE then for bb=1, #egems do if item.itemid == egems[bb] then b=bb end end if isInArray(weapons, item2.itemid)== TRUE then for cc=1, #weapons do if item2.itemid == weapons[cc] then c=cc end end doTransformItem(item2.uid,eweapons[c],1000) doDecayItem(item.uid) doSendMagicEffect(fromPosition,39) doRemoveItem(item.uid,1) else doPlayerSendCancel(cid,"You can't enchanted this.") end else return 0 end return 1 end