Can u post screenie?
[07/05/2010 14:33:22] [Error - LuaScriptInterface::loadFile] data/creaturescripts/scripts/advanced.lua:20: '<eof>' expected near 'end'
[07/05/2010 14:33:22] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/advanced.lua)
[07/05/2010 14:33:22] data/creaturescripts/scripts/advanced.lua:20: '<eof>' expected near 'end'
you copypasted badly the script<_<I get this error
Using tfs 0.3.6pl1Code:[07/05/2010 14:33:22] [Error - LuaScriptInterface::loadFile] data/creaturescripts/scripts/advanced.lua:20: '<eof>' expected near 'end' [07/05/2010 14:33:22] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/advanced.lua) [07/05/2010 14:33:22] data/creaturescripts/scripts/advanced.lua:20: '<eof>' expected near 'end'
how to fix?
you copypasted badly the script<_<
--[[ / / / / / / / / / / / / / / / / / / / / / /
Advanced OnAdvance Fancy Edition
The Best OnAdvance Creaturescript
Scripted by Cybermaster
/ / / / / / / / / / / / / / / / / / / / / / ]]--
local area, data =
{
{0, 1, 1, 1, 0},
{1, 1, 1, 1, 1},
{1, 1, 1, 1, 1},
{1, 1, 1, 1, 1},
{0, 1, 1, 1, 0}
},
{
[SKILL_FIST] = 'FISTUP!',
[SKILL_CLUB] = 'CLUBUP!',
[SKILL_SWORD] = 'SWORDUP!',
[SKILL_AXE] = 'AXEUP!',
[SKILL_DISTANCE] = 'DISTANCEUP!',
[SKILL_SHIELD] = 'SHIELDUP!',
[SKILL_FISHING] = 'FISHINGUP!',
[SKILL__MAGLEVEL] = 'MAGICUP!',
[SKILL__LEVEL] = 'LEVELUP!'
}
function onAdvance(cid, skill, oldLevel, newLevel)
doPlayerSave(cid)
local center, data = {}, data[skill] --function doSendMagicEffectInArea of Mock
center.y = math.floor(table.getn(area)/2)+1
for y = 1, table.getn(area) do
for x = 1, table.getn(area[y]) do
if area[y][x] > 0 then
center.x = math.floor(table.getn(area[y])/2)+1
doSendMagicEffect({x=getThingPos(cid).x+x-center.x,y=getThingPos(cid).y+y-center.y,z= getThingPos(cid).z},math.random(28,30),cid)
end
end
end
for i = 1, #data do
addEvent(doSendAnimatedText, i*150, getThingPos(cid), data:sub(i,i), i%2 == 0 and TEXTCOLOR_RED or TEXTCOLOR_ORANGE)
end
return true
end
You won the Golden Shovel for this message !nice script!! Work perfectly for me, TFS 0.4
4) one player with lots of items in equipment - this already happens when he logs in or out and is known problem of all enginesThis will definitely lag your server because of the database saving. These are the situations that will cause serious lag or freezing.
1) Multiple players level up at once. (including skill levels)
2) Too many level ups happen at once (even on just 1 player) I think most the time its 500+ (including skill levels)
3) If multiple players level up while on each others screens. The magic effects can cause client bugs. (Shouldn't cause debug)
As long as you are a lower rate server you are fine. If you plan on having "event monsters" be wary.
Well, I'm grateful that is is still interesting after all these years : DYou won the Golden Shovel for this message !
Never heard of this before, aren't nowadays' computers and internet more efficient?This will definitely lag your server because of the database saving. These are the situations that will cause serious lag or freezing.
1) Multiple players level up at once. (including skill levels)
2) Too many level ups happen at once (even on just 1 player) I think most the time its 500+ (including skill levels)
3) If multiple players level up while on each others screens. The magic effects can cause client bugs. (Shouldn't cause debug)
As long as you are a lower rate server you are fine. If you plan on having "event monsters" be wary.