-
Total de itens
118 -
Registro em
-
Última visita
-
Dias Ganhos
1
Tudo que Emooooo postou
-
function onUse(cid, item, fromPos, itemEx, toPos) if (getPlayerStorageValue(cid, config.storage) <= os.time()) then doAddCondition(cid, condition) doCreatureSay(cid, "Munch.",TALKTYPE_ORANGE_1) doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You're real fast for 1 hour.") doRemoveItem(item.uid, 1) setPlayerStorageValue(cid, config.storage, os.time() + config.exhaust) else doPlayerSendCancel(cid, "You are full.") end return true end
-
continuando dando o mesmo erro agora em outra linha ! , acho que resolve se refazer o scprit
-
[8/9/2018 9:53:37] [Error - Event::checkScript] Cannot load script (data/actions/scripts/other/food.lua) [8/9/2018 9:53:37] data/actions/scripts/other/food.lua:123: 'end' expected (to close 'if' at line 114) near '<eof>'
-
[7/9/2018 22:21:49] data/actions/scripts/other/food.lua:125: 'end' expected (to close 'function' at line 103) near '<eof>' [7/9/2018 22:21:49] [Error - LuaInterface::loadFile] data/actions/scripts/other/food.lua:125: 'end' expected (to close 'function' at line 103) near '<eof>' [7/9/2018 22:21:49] [Error - Event::checkScript] Cannot load script (data/actions/scripts/other/food.lua) [7/9/2018 22:21:49] data/actions/scripts/other/food.lua:125: 'end' expected (to close 'function' at line 103) near '<eof>'
-
local foods = { [2328] = {6, 'Gulp.'}, -- egg [2362] = {5, 'Crunch.'}, -- carrot [2666] = {15, 'Munch.'}, -- meat [2667] = {12, 'Munch.'}, -- fish [2668] = {10, 'Mmmm.'}, -- salmon [2669] = {17, 'Munch.'}, -- northern pike [2670] = {4, 'Gulp.'}, -- shrimp [2671] = {30, 'Chomp.'}, -- ham [2672] = {60, 'Chomp.'}, -- dragon ham [2673] = {5, 'Yum.'}, -- pear [2674] = {6, 'Yum.'}, -- red apple [2675] = {13, 'Yum.'}, -- orange [2676] = {8, 'Yum.'}, -- banana [2677] = {1, 'Yum.'}, -- blueberry [2678] = {18, 'Slurp.'}, -- coconut [2679] = {1, 'Yum.'}, -- cherry [2680] = {2, 'Yum.'}, -- strawberry [2681] = {9, 'Yum.'}, -- grapes [2682] = {20, 'Yum.'}, -- melon [2683] = {17, 'Munch.'}, -- pumpkin [2684] = {5, 'Crunch.'}, -- carrot [2685] = {6, 'Munch.'}, -- tomato [2686] = {9, 'Crunch.'}, -- corncob [2687] = {2, 'Crunch.'}, -- cookie [2688] = {2, 'Munch.'}, -- candy cane [2689] = {10, 'Crunch.'}, -- bread [2690] = {3, 'Crunch.'}, -- roll [2691] = {8, 'Crunch.'}, -- brown bread [2696] = {9, 'Smack.'}, -- cheese [2787] = {9, 'Munch.'}, -- white mushroom [2788] = {4, 'Munch.'}, -- red mushroom [2789] = {22, 'Munch.'}, -- brown mushroom [2790] = {30, 'Munch.'}, -- orange mushroom [2791] = {9, 'Munch.'}, -- wood mushroom [2792] = {6, 'Munch.'}, -- dark mushroom [2793] = {12, 'Munch.'}, -- some mushrooms [2794] = {3, 'Munch.'}, -- some mushrooms [2795] = {36, 'Munch.'}, -- fire mushroom [2796] = {5, 'Munch.'}, -- green mushroom [5097] = {4, 'Yum.'}, -- mango [6125] = {8, 'Gulp.'}, -- tortoise egg [6278] = {10, 'Mmmm.'}, -- cake [6279] = {15, 'Mmmm.'}, -- decorated cake [6393] = {12, 'Mmmm.'}, -- valentine's cake [6394] = {15, 'Mmmm.'}, -- cream cake [6501] = {20, 'Mmmm.'}, -- gingerbread man [6541] = {6, 'Gulp.'}, -- coloured egg (yellow) [6542] = {6, 'Gulp.'}, -- coloured egg (red) [6543] = {6, 'Gulp.'}, -- coloured egg (blue) [6544] = {6, 'Gulp.'}, -- coloured egg (green) [6545] = {6, 'Gulp.'}, -- coloured egg (purple) [6569] = {1, 'Mmmm.'}, -- candy [6574] = {5, 'Mmmm.'}, -- bar of chocolate [7158] = {15, 'Munch.'}, -- rainbow trout [7159] = {13, 'Munch.'}, -- green perch [7372] = {2, 'Yum.'}, -- ice cream cone (crispy chocolate chips) [7373] = {2, 'Yum.'}, -- ice cream cone (velvet vanilla) [7374] = {2, 'Yum.'}, -- ice cream cone (sweet strawberry) [7375] = {2, 'Yum.'}, -- ice cream cone (chilly cherry) [7376] = {2, 'Yum.'}, -- ice cream cone (mellow melon) [7377] = {2, 'Yum.'}, -- ice cream cone (blue-barian) [7909] = {4, 'Crunch.'}, -- walnut [7910] = {4, 'Crunch.'}, -- peanut [7963] = {60, 'Munch.'}, -- marlin [8112] = {9, 'Urgh.'}, -- scarab cheese [8838] = {10, 'Gulp.'}, -- potato [8839] = {5, 'Yum.'}, -- plum [8840] = {1, 'Yum.'}, -- raspberry [8841] = {1, 'Urgh.'}, -- lemon [8842] = {7, 'Munch.'}, -- cucumber [8843] = {5, 'Crunch.'}, -- onion [8844] = {1, 'Gulp.'}, -- jalapeño pepper [8845] = {5, 'Munch.'}, -- beetroot [8847] = {11, 'Yum.'}, -- chocolate cake [9005] = {7, 'Slurp.'}, -- yummy gummy worm [9114] = {5, 'Crunch.'}, -- bulb of garlic [9996] = {0, 'Slurp.'}, -- banana chocolate shake [10454] = {0, 'Your head begins to feel better.'}, -- headache pill [11246] = {15, 'Yum.'}, -- rice ball [11370] = {3, 'Urgh.'}, -- terramite eggs [11429] = {10, 'Mmmm.'}, -- crocodile steak [12415] = {20, 'Yum.'}, -- pineapple [12416] = {10, 'Munch.'}, -- aubergine [12417] = {8, 'Crunch.'}, -- broccoli [12418] = {9, 'Crunch.'}, -- cauliflower [12637] = {55, 'Gulp.'}, -- ectoplasmic sushi [12638] = {18, 'Yum.'}, -- dragonfruit [12639] = {2, 'Munch.'}, -- peas [13297] = {20, 'Crunch.'}, -- haunch of boar [15405] = {55, 'Munch.'}, -- sandfish [15487] = {14, 'Urgh.'}, -- larvae [15488] = {15, 'Munch.'}, -- deepling filet [16014] = {60, 'Mmmm.'}, -- anniversary cake [18305] = {0, 'Gulp!'}, -- fresh mushroom beer [18306] = {0, 'Phew!'}, -- stale mushroom beer [18397] = {33, 'Munch.'}, -- mushroom pie [19737] = {10, 'Urgh.'}, -- insectoid eggs [20100] = {15, 'Smack.'}, -- soft cheese [20101] = {12, 'Smack.'} -- rat cheese } function onUse(cid, item, frompos, item2, topos) local food = foods[item.itemid] if not food then return false end if((getPlayerFood(cid) + food[1]) >= 2000) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_SMALL, 'You are full.') return true end doPlayerFeed(cid, food[1]*12) doCreatureSay(cid, food[2], TALKTYPE_MONSTER_SAY) doRemoveItem(item.uid, 1) return true end
-
pego! thx
-
[4/9/2018 19:33:41] [Error - Test Interface] [4/9/2018 19:33:41] data/actions/scripts/other/FilledjalapeñoPeppers.lua [4/9/2018 19:33:41] Description: [4/9/2018 19:33:41] (LuaInterface::luaGetPlayerFlagValue) Player not found [4/9/2018 19:33:41] [Error - Test Interface] [4/9/2018 19:33:41] data/actions/scripts/other/FilledjalapeñoPeppers.lua [4/9/2018 19:33:41] Description: [4/9/2018 19:33:41] (LuaInterface::luaGetCreatureStorage) Creature not found [4/9/2018 19:33:41] [Error - Test Interface] [4/9/2018 19:33:41] data/actions/scripts/other/FilledjalapeñoPeppers.lua [4/9/2018 19:33:41] Description: [4/9/2018 19:33:41] data/lib/034-exhaustion.lua:17: attempt to compare number with boolean [4/9/2018 19:33:41] [Error - Event::checkScript] Cannot load script (data/actions/scripts/other/FilledjalapeñoPeppers.lua)
-
[4/9/2018 19:31:8] [Error - LuaInterface::loadFile] data/actions/scripts/other/FilledjalapeñoPeppers.lua:2: '}' expected (to close '{' at line 1) near 'ï' [4/9/2018 19:31:8] [Error - Event::checkScript] Cannot load script (data/actions/scripts/other/FilledjalapeñoPeppers.lua) [4/9/2018 19:31:8] data/actions/scripts/other/FilledjalapeñoPeppers.lua:2: '}' expected (to close '{' at line 1) near 'ï'
-
[4/9/2018 18:49:53] [Error - Test Interface] [4/9/2018 18:49:53] data/actions/scripts/other/FilledjalapeñoPeppers.lua [4/9/2018 18:49:53] Description: [4/9/2018 18:49:53] data/actions/scripts/other/FilledjalapeñoPeppers.lua:5: attempt to perform arithmetic on a boolean value [4/9/2018 18:49:53] [Error - Event::checkScript] Cannot load script (data/actions/scripts/other/FilledjalapeñoPeppers.lua)
-
[4/9/2018 15:23:26] [Error - Test Interface] [4/9/2018 15:23:26] data/actions/scripts/other/FilledjalapeñoPeppers.lua [4/9/2018 15:23:26] Description: [4/9/2018 15:23:26] (LuaInterface::luaGetCreatureStorage) Creature not found [4/9/2018 15:23:26] [Error - Test Interface] [4/9/2018 15:23:26] data/actions/scripts/other/FilledjalapeñoPeppers.lua [4/9/2018 15:23:26] Description: [4/9/2018 15:23:26] data/actions/scripts/other/FilledjalapeñoPeppers.lua:5: attempt to compare boolean with number [4/9/2018 15:23:26] [Error - Event::checkScript] Cannot load script (data/actions/scripts/other/FilledjalapeñoPeppers.lua)
-
colocar exausted de 10 minutos nesse item +rep local config = { storage = 10000, --use empty storage exhaust = 1800 --Exhaust is in seconds 600 equals 10min } local condition = createConditionObject(CONDITION_HASTE) setConditionParam(condition, CONDITION_PARAM_TICKS, 3600000) setConditionFormula(condition, 9.4, -24, 10.9, -24) function onUse(cid, item, fromPosition, itemEx, toPosition) if(doAddCondition(cid, condition)) then doCreatureSay(cid, "Munch.",TALKTYPE_ORANGE_1) doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "its speed was increased by 1 hour.") doRemoveItem(item.uid) else doPlayerSendCancel(cid, "You are full.") end return true end
-
queria um chão que faz o player fica rodando para evitar o char logar , para treiner . +rep
-
[3/9/2018 10:45:31] [Error - Action Interface] [3/9/2018 10:45:31] data/actions/scripts/other/food.lua:onUse [3/9/2018 10:45:31] Description: [3/9/2018 10:45:31] data/actions/scripts/other/food.lua:110: attempt to index local 'condition' (a number value) [3/9/2018 10:45:31] stack traceback: [3/9/2018 10:45:31] data/actions/scripts/other/food.lua:110: in function <data/actions/scripts/other/food.lua:103> tfs 0.3.6
-
local foods = { [2328] = {6, 'Gulp.'}, -- egg [2362] = {5, 'Crunch.'}, -- carrot [2666] = {15, 'Munch.'}, -- meat [2667] = {12, 'Munch.'}, -- fish [2668] = {10, 'Mmmm.'}, -- salmon [2669] = {17, 'Munch.'}, -- northern pike [2670] = {4, 'Gulp.'}, -- shrimp [2671] = {30, 'Chomp.'}, -- ham [2672] = {60, 'Chomp.'}, -- dragon ham [2673] = {5, 'Yum.'}, -- pear [2674] = {6, 'Yum.'}, -- red apple [2675] = {13, 'Yum.'}, -- orange [2676] = {8, 'Yum.'}, -- banana [2677] = {1, 'Yum.'}, -- blueberry [2678] = {18, 'Slurp.'}, -- coconut [2679] = {1, 'Yum.'}, -- cherry [2680] = {2, 'Yum.'}, -- strawberry [2681] = {9, 'Yum.'}, -- grapes [2682] = {20, 'Yum.'}, -- melon [2683] = {17, 'Munch.'}, -- pumpkin [2684] = {5, 'Crunch.'}, -- carrot [2685] = {6, 'Munch.'}, -- tomato [2686] = {9, 'Crunch.'}, -- corncob [2687] = {2, 'Crunch.'}, -- cookie [2688] = {2, 'Munch.'}, -- candy cane [2689] = {10, 'Crunch.'}, -- bread [2690] = {3, 'Crunch.'}, -- roll [2691] = {8, 'Crunch.'}, -- brown bread [2696] = {9, 'Smack.'}, -- cheese [2787] = {9, 'Munch.'}, -- white mushroom [2788] = {4, 'Munch.'}, -- red mushroom [2789] = {22, 'Munch.'}, -- brown mushroom [2790] = {30, 'Munch.'}, -- orange mushroom [2791] = {9, 'Munch.'}, -- wood mushroom [2792] = {6, 'Munch.'}, -- dark mushroom [2793] = {12, 'Munch.'}, -- some mushrooms [2794] = {3, 'Munch.'}, -- some mushrooms [2795] = {36, 'Munch.'}, -- fire mushroom [2796] = {5, 'Munch.'}, -- green mushroom [5097] = {4, 'Yum.'}, -- mango [6125] = {8, 'Gulp.'}, -- tortoise egg [6278] = {10, 'Mmmm.'}, -- cake [6279] = {15, 'Mmmm.'}, -- decorated cake [6393] = {12, 'Mmmm.'}, -- valentine's cake [6394] = {15, 'Mmmm.'}, -- cream cake [6501] = {20, 'Mmmm.'}, -- gingerbread man [6541] = {6, 'Gulp.'}, -- coloured egg (yellow) [6542] = {6, 'Gulp.'}, -- coloured egg (red) [6543] = {6, 'Gulp.'}, -- coloured egg (blue) [6544] = {6, 'Gulp.'}, -- coloured egg (green) [6545] = {6, 'Gulp.'}, -- coloured egg (purple) [6569] = {1, 'Mmmm.'}, -- candy [6574] = {5, 'Mmmm.'}, -- bar of chocolate [7158] = {15, 'Munch.'}, -- rainbow trout [7159] = {13, 'Munch.'}, -- green perch [7372] = {2, 'Yum.'}, -- ice cream cone (crispy chocolate chips) [7373] = {2, 'Yum.'}, -- ice cream cone (velvet vanilla) [7374] = {2, 'Yum.'}, -- ice cream cone (sweet strawberry) [7375] = {2, 'Yum.'}, -- ice cream cone (chilly cherry) [7376] = {2, 'Yum.'}, -- ice cream cone (mellow melon) [7377] = {2, 'Yum.'}, -- ice cream cone (blue-barian) [7909] = {4, 'Crunch.'}, -- walnut [7910] = {4, 'Crunch.'}, -- peanut [7963] = {60, 'Munch.'}, -- marlin [8112] = {9, 'Urgh.'}, -- scarab cheese [8838] = {10, 'Gulp.'}, -- potato [8839] = {5, 'Yum.'}, -- plum [8840] = {1, 'Yum.'}, -- raspberry [8841] = {1, 'Urgh.'}, -- lemon [8842] = {7, 'Munch.'}, -- cucumber [8843] = {5, 'Crunch.'}, -- onion [8844] = {1, 'Gulp.'}, -- jalapeño pepper [8845] = {5, 'Munch.'}, -- beetroot [8847] = {11, 'Yum.'}, -- chocolate cake [9005] = {7, 'Slurp.'}, -- yummy gummy worm [9114] = {5, 'Crunch.'}, -- bulb of garlic [9996] = {0, 'Slurp.'}, -- banana chocolate shake [10454] = {0, 'Your head begins to feel better.'}, -- headache pill [11246] = {15, 'Yum.'}, -- rice ball [11370] = {3, 'Urgh.'}, -- terramite eggs [11429] = {10, 'Mmmm.'}, -- crocodile steak [12415] = {20, 'Yum.'}, -- pineapple [12416] = {10, 'Munch.'}, -- aubergine [12417] = {8, 'Crunch.'}, -- broccoli [12418] = {9, 'Crunch.'}, -- cauliflower [12637] = {55, 'Gulp.'}, -- ectoplasmic sushi [12638] = {18, 'Yum.'}, -- dragonfruit [12639] = {2, 'Munch.'}, -- peas [13297] = {20, 'Crunch.'}, -- haunch of boar [15405] = {55, 'Munch.'}, -- sandfish [15487] = {14, 'Urgh.'}, -- larvae [15488] = {15, 'Munch.'}, -- deepling filet [16014] = {60, 'Mmmm.'}, -- anniversary cake [18305] = {0, 'Gulp!'}, -- fresh mushroom beer [18306] = {0, 'Phew!'}, -- stale mushroom beer [18397] = {33, 'Munch.'}, -- mushroom pie [19737] = {10, 'Urgh.'}, -- insectoid eggs [20100] = {15, 'Smack.'}, -- soft cheese [20101] = {12, 'Smack.'} -- rat cheese } function onUse(player, item, fromPosition, target, toPosition, isHotkey) local food = foods[item.itemid] if not food then return false end local condition = player:getCondition(CONDITION_REGENERATION, CONDITIONID_DEFAULT) if condition and math.floor(condition:getTicks() / 1000 + (food[1] * 12)) >= 1200 then player:sendTextMessage(MESSAGE_STATUS_SMALL, 'You are full.') return true end player:feed(food[1] * 12) player:say(food[2], TALKTYPE_MONSTER_SAY) item:remove(1) return true end erro [3/9/2018 9:21:14] [Error - Action Interface] [3/9/2018 9:21:14] data/actions/scripts/other/food.lua:onUse [3/9/2018 9:21:14] Description: [3/9/2018 9:21:14] data/actions/scripts/other/food.lua:109: attempt to index local 'player' (a number value) [3/9/2018 9:21:14] stack traceback: [3/9/2018 9:21:14] data/actions/scripts/other/food.lua:109: in function <data/actions/scripts/other/food.lua:103>
-
-
[2/9/2018 17:50:36] [Error - LuaInterface::loadFile] data/actions/scripts/other/knight.lua:34: '<eof>' expected near 'end' [2/9/2018 17:50:36] [Error - Event::checkScript] Cannot load script (data/actions/scripts/other/knight.lua) [2/9/2018 17:50:36] data/actions/scripts/other/knight.lua:34: '<eof>' expected near 'end'
-
function onUse(cid, item, frompos, item2, topos) local dolls = { [11339] = {pet = "holy"}, } local go = dolls[item.itemid] local summon = getCreatureSummons(cid) --------------------------------------------------- if #summon >= 1 then for _, pid in ipairs(summon) do doRemoveCreature(pid) doCreatureSay(cid, "! ["..go.pet.."]", TALKTYPE_ORANGE_1) end return true end doConvinceCreature(cid, doSummonCreature(go.pet, getCreaturePosition(cid))) doCreatureSay(cid, "Pufff! ["..go.pet.."]", TALKTYPE_ORANGE_1) return true end
-
funcionou muito obrigado
-
[31/8/2018 16:23:2] [Error - LuaInterface::loadFile] data/globalevents/scripts/tp.lua:33: 'end' expected (to close 'function' at line 21) near '<eof>' [31/8/2018 16:23:2] [Error - Event::checkScript] Cannot load script (data/globalevents/scripts/tp.lua) [31/8/2018 16:23:2] data/globalevents/scripts/tp.lua:33: 'end' expected (to close 'function' at line 21) near '<eof>'
-
[31/8/2018 16:8:57] [Error - Event::checkScript] Event onTime not found (data/globalevents/scripts/tp.lua)
-
ok vou ver aqui [Error - Event::checkScript] Event onThink not found (data/globalevents/scripts/tp.lua) deu esse erro
-
[31/8/2018 12:58:30] [Error - Event::checkScript] Cannot load script (data/globalevents/scripts/tp3.lua) [31/8/2018 12:58:30] data/globalevents/scripts/tp3.lua:22: ')' expected near 'ï'
-
script >>> local config = { day = "Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday", pos = {x=290, y=24, z=7}, topos = {x=821, y=459, z=7}, time = 3, -- tempo que o teleport ira sumir em minutos msg_open = "The Portal will open in 3 minutes, go to the temple.", msg_close = "The Portal closed." } local function DelTp() local t = getTileItemById(config.pos, 1387) if t then doRemoveItem(t.uid, 1) doSendMagicEffect(config.pos, CONST_ME_POFF) end end function onTimer() if (os.date("%A") == config.day) then doCreateTeleport(1387, config.topos, config.pos) doBroadcastMessage(config.msg_open) addEvent(DelTp, config.time*60*1000) addEvent(doBroadcastMessage, config.time*60*1000, config.msg_close) end return true end erro [31/8/2018 12:10:18] [Error - Event::checkScript] Event onTime not found (data/globalevents/scripts/tp1.lua)
-
vou testa aqui ! funcionou valeu !
-
criar uma actions , estilo quest , para quando o player da use toma hitkill . para deixar igual ao rpg que tem os mimics , que são baus que quando o player abre o bau mata o player . +rep
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.