- Dołączył
- Lipiec 15, 2010
- Posty
- 631
- Liczba reakcji
- 39
- Wiek
- 12
Jak w temacie Mam problem ale zani przejde do niego prosze admina o zamkniecie moich 2 pozostalych tematow problemy rozwiazane Oki a co do tego tematy problem ze skryptem na evolucje pokemonow stonem
Silnik:
[25/12/2010 21:56:06] [Error - LuaScriptInterface::loadFile] data/actions/scripts/stones/rock.lua:4: '}' expected (to close '{' at line 1) near '['
[25/12/2010 21:56:06] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/stones/rock.lua)
[25/12/2010 21:56:06] data/actions/scripts/stones/rock.lua:4: '}' expected (to close '{' at line 1) near '['
Skrypt:
local evo = {
["Geodude"] = "graveler",
["Graveler"] = "golem"
["Rhyhorn"] = "rhydon",
["Kabuto"] = "Kabutops",
[""] = "",
[""] = "",
[""] = "",
[""] = "",
[""] = "",
}
local pokeballs = {
[2531] = {"Pokeball"},
[2557] = {"Superball"},
[2524] = {"Greatball"},
[2525] = {"Ultraball"},
[2523] = {"Masterball"},
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isMonster(itemEx.uid) and getCreatureMaster(itemEx.uid) == cid then
local monster = getCreatureName(itemEx.uid)
if evo[monster] then
local health, maxHealth = getCreatureHealth(itemEx.uid), getCreatureMaxHealth(itemEx.uid)
doRemoveCreature(itemEx.uid)
doRemoveItem(item.uid)
local summon = doCreateMonster(evo[monster], toPosition)
doConvinceCreature(cid, summon)
local balls = pokeballs[getPlayerSlotItem(cid,8).itemid]
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "name", ""..evo[monster].." "..balls[1])
doCreatureAddHealth(summon, health-maxHealth)
doSendMagicEffect(getThingPos(summon), 18)
return TRUE
end
end
return FALSE
end
PROSZE O POMOC
() ZA NIA BEDZIE REPUT
))[/
Silnik:
[25/12/2010 21:56:06] [Error - LuaScriptInterface::loadFile] data/actions/scripts/stones/rock.lua:4: '}' expected (to close '{' at line 1) near '['
[25/12/2010 21:56:06] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/stones/rock.lua)
[25/12/2010 21:56:06] data/actions/scripts/stones/rock.lua:4: '}' expected (to close '{' at line 1) near '['
Skrypt:
local evo = {
["Geodude"] = "graveler",
["Graveler"] = "golem"
["Rhyhorn"] = "rhydon",
["Kabuto"] = "Kabutops",
[""] = "",
[""] = "",
[""] = "",
[""] = "",
[""] = "",
}
local pokeballs = {
[2531] = {"Pokeball"},
[2557] = {"Superball"},
[2524] = {"Greatball"},
[2525] = {"Ultraball"},
[2523] = {"Masterball"},
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isMonster(itemEx.uid) and getCreatureMaster(itemEx.uid) == cid then
local monster = getCreatureName(itemEx.uid)
if evo[monster] then
local health, maxHealth = getCreatureHealth(itemEx.uid), getCreatureMaxHealth(itemEx.uid)
doRemoveCreature(itemEx.uid)
doRemoveItem(item.uid)
local summon = doCreateMonster(evo[monster], toPosition)
doConvinceCreature(cid, summon)
local balls = pokeballs[getPlayerSlotItem(cid,8).itemid]
doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "name", ""..evo[monster].." "..balls[1])
doCreatureAddHealth(summon, health-maxHealth)
doSendMagicEffect(getThingPos(summon), 18)
return TRUE
end
end
return FALSE
end
PROSZE O POMOC
() ZA NIA BEDZIE REPUT
))[/