Satanserver
New Member
- Joined
- Jul 7, 2008
- Messages
- 2
- Reaction score
- 0
Well first of all, i am getting an error message :
Could not open the file.
Unknown attribute. Code : 31823
When trying to import the Island i made into my map..
Second off,
I get an error when trying to load my server
Warning: could not load teleport.lua data/npc/scripts/teleport.lua:46: expected '=' near 'esleif'
Can someone please fix my code for me here it is..
Third of all,
Now i am getting a different error message when trying to start my server... note this only happened after i attempted to import the island into the map. it didn't work. i just saved the map and now i am getting this error :
WARNING: IOMapSerialize::loadTile(). NULL item at ( 00132 / 00352 / 004 ). type = 6249, sid = 1, pid = 0
:/ i dont know what is wrong.... I hope that someone can help me get these problems fixed... thanks
Could not open the file.
Unknown attribute. Code : 31823
When trying to import the Island i made into my map..
Second off,
I get an error when trying to load my server
Warning: could not load teleport.lua data/npc/scripts/teleport.lua:46: expected '=' near 'esleif'
Can someone please fix my code for me here it is..
Code:
focus = 0
talk_start = 0
target = 0
following = false
attacking = false
function onThingMove(creature, thing, oldpos, oldstackpos)
end
function onCreatureAppear(creature)
end
function onCreatureDisappear(cid, pos)
if focus == cid then
selfSay('Good bye then.')
focus = 0
talk_start = 0
end
end
function onCreatureTurn(creature)
end
function msgcontains(txt, str)
return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)'))
end
function onCreatureSay(cid, type, msg)
msg = string.lower(msg)
end
if (msgcontains(msg, 'hi') and (focus == 0)) and getDistanceToCreature(cid) < 4 then
selfSay('Hello, ' .. creatureGetName(cid) .. '! I can teleport you to any city! Just say where you want to go and I will take you there!.')
focus = cid
talk_start = os.clock()
end
eof
elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then
selfSay('Sorry, ' .. creatureGetName(cid) .. '. I am busy at the moment. I can help you in a Second!')
end
elseif focus == cid then
talk_start = os.clock()
if msgcontains(msg, 'Rook') then
selfSay('Would you like to travel to Rookguard?')
if msgcontains(msg, 'yes') then
selfsay('On your Way then .. creatureGetName(cid) .. !')
selfSay('/send ' .. creatureGetName(cid) .. ', 95 117 7')
focus = 0
talk_start = 0
elseif msgcontains(msg, 'no') then
selfSay('Thats to bad. Maybe next time.')
end
elseif msgcontains(msg, 'Enter a name here') then
selfSay('Would you like to travel to EnterName?')
if msgcontains(msg, 'yes') then
selfSay('On your way then ..creatureGetName(cid) .. !')
selfSay('/send ' .. creatureGetName(cid) .. ', x y z')
focus = 0
talk_start = 0
elseif msgcontains(msg, 'no') then
selfSay('Thats too bad. Maybe next time.')
end
elseif msgcontains(msg, 'Enter a name here') then
selfSay('Would you like to travel to EnterName?')
if msgcontains(msg, 'yes') then
selfSay('On your way then .. creatureGetName(cid) .. !')
selfSay('/send ' .. creatureGetName(cid) .. ', x y z')
focus = 0
talk_start = 0
elseif msgcontains(msg, 'no') then
selfSay('Thats too bad. Maybe next time.')
end
elseif msgcontains(msg, 'EnterName') then
selfSay('Would you like to travel to EnterName?')
if msgcontains(msg, 'yes') then
selfSay('On your way then .. creatureGetName(cid) .. !')
selfSay('/send ' .. creatureGetName(cid) .. ', x y z')
focus = 0
talk_start = 0
elseif msgcontains(msg, 'no') then
selfSay('Thats too bad. Maybe next time.')
end
elseif msgcontains(msg, 'EnterName') then
selfsay('Would you like to travel to EnterName?')
if msgcontains(msg, 'yes') then
selfSay('On your way then .. creatureGetName(cid) .. !')
selfSay('/send ' .. creatureGetName(cid) .. ', x y z')
focus = 0
talk_start = 0
elseif msgcontains(msg, 'no') then
selfSay('Thats too bad. Maybe next time.')
end
elseif msgcontains(msg, 'EnterName') then
selfSay('Would you like to travel too EnterName?')
if msgcontains(msg, 'yes') then
selfSay('On your way then .. creatureGetName(cid) .. !')
selfSay('/send ' .. creatureGetName(cid) .. ', x y z')
focus = 0
talk_start = 0
elseif msgcontains(msg, 'no') then
selfSay('Thats too bad. Maybe next time.')
end
elseif msgcontains(msg, 'EnterName') then
selfSay('Would you like to travel to EnterName?')
if msgcontains(msg, 'yes') then
selfSay('On your way then .. creatureGetName(cid) .. !')
selfSay('/send ' .. creatureGetName(cid) .. ', x y z')
focus = 0
talk_start = 0
elseif msgcontains(msg, 'no') then
selfSay('Thats too bad. Maybe next time.')
end
elseif msgcontains(msg, 'EnterName') then
selfSay(' Would you like to travel to EnterName?')
if msgcontains(msg, 'yes') then
selfSay('On your way then .. creatureGetName(cid) .. !')
selfSay('/send ' .. creatureGetName(cid) .. ', x y z')
focus = 0
talk_start = 0
elseif msgcontains(msg, 'no') then
selfSay('Thats too bad. Maybe next time')
end
elseif msgcontains(msg, 'EnterName') then
selfSay('Would you like to travel to EnterName?')
if msgcontains(msg, 'yes') then
selfSay('On your way then .. creatureGetName(cid) .. !')
selfSay('/send ' .. creatureGetName(cid) .. ', x y z')
focus = 0
talk_start = 0
elseif msgcontains(msg, 'no') then
selfSay('Thats too bad. Maybe next time.')
end
elseif msgcontains(msg, 'EnterName') then
selfSay('Would you like to go to EnterName?')
if msgcontains(msg, 'yes') then
selfSay('On your way then .. creatureGetName(cid) .. !')
selfSay('/send ' .. creatureGetName(cid) .. ', x y z')
focus = 0
talk_start = 0
elseif msgcontains(msg, 'no') then
selfSay('Thats too bad. Maybe next time.')
end
elseif msgcontains(msg, 'EnterName') then
selfSay('Would you like to travel to EnterName?')
if msgcontains(msg. 'yes') then
selfSay('On your way then .. creatureGetName(cid) .. !')
selfSay('/send ' .. creatureGetName(cid) .. ', x y z')
focus = 0
talk_start = 0
elseif msgcontains(msg, 'no') then
selfSay('Thats too bad. Maybe next time.')
end
elseif msgcontains(msg, 'EnterName') then
selfSay(' Would you like to travel to EnterName?')
if msgcontains (msg, 'yes') then
selfSay('On your way then .. creatureGetName(cid) .. !')
selfSay('/send ' .. creatureGetName(cid) .. ', x y z')
focus = 0
talk_start = 0
elseif msgcontains(msg, 'no') then
selfSay('Thats too bad. Maybe next time.')
end
elseif msgcontains(msg, 'EnterName') then
selfSay(' Would you like to travel to EnterName?')
if msgcontains (msg, 'yes') then
selfSay('On your way then .. creatureGetName(cid) .. !')
selfSay('/send ' .. creatureGetName(cid) .. ', x y z')
focus = 0
talk_start = 0
elseif msgcontains(msg, 'no') then
selfSay('Thats too bad. Maybe next time.')
end
elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then
selfSay('Good bye, ' .. creatureGetName(cid) .. '!')
focus = 0
talk_start = 0
end
end
end
function onCreatureChangeOutfit(creature)
end
function onThink()
if (os.clock() - talk_start) > 30 then
if focus > 0 then
selfSay('Next Please...')
end
focus = 0
end
if focus ~= 0 then
if getDistanceToCreature(focus) > 5 then
selfSay('Good bye then.')
focus = 0
end
end
end
Third of all,
Now i am getting a different error message when trying to start my server... note this only happened after i attempted to import the island into the map. it didn't work. i just saved the map and now i am getting this error :
WARNING: IOMapSerialize::loadTile(). NULL item at ( 00132 / 00352 / 004 ). type = 6249, sid = 1, pid = 0
:/ i dont know what is wrong.... I hope that someone can help me get these problems fixed... thanks