Yes, it's in the title
im doing the same as you and i failed to get a good map working on that version , may w help each other ?Thanks a bunch... slowly getting there
I've managed to loggin on the server now... but it says the temple location is wrong, so I need to change that somehow... I think it's this part I need to edit, but what would good values be?
-- The Forgotten Server Config
-- Account manager
accountManager = true
namelockManager = true
newPlayerChooseVoc = true
newPlayerSpawnPosX = 1000
newPlayerSpawnPosY = 1000
newPlayerSpawnPosZ = 7
newPlayerTownId = 1
newPlayerLevel = 8
newPlayerMagicLevel = 0
generateAccountNumber = false
Sorry if I'm being a bother...
I managed to do it!
I went to the admin page (the online page where I uploaded the SQL file and went to players and changed the position of it to 1000, 1000, 7.
The defaults are 50, 50, 7. (Hope this helps anyone struggling with this)
Okay, I've managed to create a character, given it a name and a vocation now.
I thought the characters would spawn in a different temple than the "account manager" but it seems like their default spawning position is at (1000, 1000, 1) and I get the same error as before. (Temple position is wrong)
Is there a way to find the position of the various temples on the map? (I'm really struggling with this)
After reading through the first 37 pages of the thread, I noticed that the actual map is just the island where the account manager spawns at position 1000, 1000, 7.
I have no clue how to find and insert a "real" map to actually play at, could anyone possibly help me with that?
If possible, I'd like to try to replicate the original game...
(I'm almost there!)
where i can have dis v 0.4 ? :/in mysql.sql (the one u imported) the pos of acc manager is 50 50 7, you need to manually change it from database to 1000 1000 7 (in this case, if you download a map you need to change it to w/e the positions are for that map...)
what do you mean v 0.4?where i can have dis v 0.4 ? :/
i got some loading items and events errors ,, i just wanna to know can they be fixed ?Thanks a lot for the replies, people!
So, if I decide to upload another SQL file on my phpMyAdmin, is that all which is nescessary in order to change the actual map you play on?
If so, does anyone know where a replica of the original tibia 8.6 could be found? (is that possible?)
@Yusuf El-Shora sure, what problems have you run in to? I've tried to be clear about how I solved the issues I ran into above but ask away!
oh thanksAnything can be fixed
-- Include the Advanced NPC System
dofile(getDataDir() .. 'npc/lib/npcsystem/npcsystem.lua')
function selfIdle()
following = false
attacking = false
selfAttackCreature(0)
target = 0
end
function selfSayChannel(cid, message)
return selfSay(message, cid, false)
end
function selfMoveToCreature(id)
if(not id or id == 0) then
return
end
local t = getCreaturePosition(id)
if(not t.x or t.x == nil) then
return
end
selfMoveTo(t.x, t.y, t.z)
return
end
function getNpcDistanceToCreature(id)
if(not id or id == 0) then
selfIdle()
return nil
end
local c = getCreaturePosition(id)
if(not c.x or c.x == 0) then
return nil
end
local s = getCreaturePosition(getNpcId())
if(not s.x or s.x == 0 or s.z ~= c.z) then
return nil
end
return math.max(math.abs(s.x - c.x), math.abs(s.y - c.y))
end
function doMessageCheck(message, keyword)
if(type(keyword) == "table") then
return table.isStrIn(keyword, message)
end
local a, b = message:lower():find(keyword:lower())
if(a ~= nil and b ~= nil) then
return true
end
return false
end
function doNpcSellItem(cid, itemid, amount, subType, ignoreCap, inBackpacks, backpack)
local amount = amount or 1
local subType = subType or 1
local ignoreCap = ignoreCap and true or false
local item = 0
if(isItemStackable(itemid)) then
item = doCreateItemEx(itemid, amount)
if(doPlayerAddItemEx(cid, item, ignoreCap) ~= RETURNVALUE_NOERROR) then
return 0, 0
end
return amount, 0
end
local a = 0
if(inBackpacks) then
local container = doCreateItemEx(backpack, 1)
local b = 1
for i = 1, amount do
item = doAddContainerItem(container, itemid, subType)
if(itemid == ITEM_PARCEL) then
doAddContainerItem(item, ITEM_LABEL)
end
if(isInArray({(getContainerCapById(backpack) * b), amount}, i)) then
if(doPlayerAddItemEx(cid, container, ignoreCap) ~= RETURNVALUE_NOERROR) then
b = b - 1
break
end
a = i
if(amount > i) then
container = doCreateItemEx(backpack, 1)
b = b + 1
end
end
end
return a, b
end
for i = 1, amount do
item = doCreateItemEx(itemid, subType)
if(itemid == ITEM_PARCEL) then
doAddContainerItem(item, ITEM_LABEL)
end
if(doPlayerAddItemEx(cid, item, ignoreCap) ~= RETURNVALUE_NOERROR) then
break
end
a = i
end
return a, 0
end
function doRemoveItemIdFromPos (id, n, position)
local thing = getThingFromPos({x = position.x, y = position.y, z = position.z, stackpos = 1})
if(thing.itemid == id) then
doRemoveItem(thing.uid, n)
return true
end
return false
end
function getNpcName()
return getCreatureName(getNpcId())
end
function getNpcPos()
return getCreaturePosition(getNpcId())
end
function selfGetPosition()
local t = getNpcPos()
return t.x, t.y, t.z
end
msgcontains = doMessageCheck
moveToPosition = selfMoveTo
moveToCreature = selfMoveToCreature
selfMoveToPosition = selfMoveTo
selfGotoIdle = selfIdle
isPlayerPremiumCallback = isPremium
doPosRemoveItem = doRemoveItemIdFromPos
doNpcBuyItem = doPlayerRemoveItem
doNpcSetCreatureFocus = selfFocus
getNpcCid = getNpcId
getDistanceTo = getNpcDistanceTo
getDistanceToCreature = getNpcDistanceToCreature
Do you mean in the database or that people can change their name ingame?Can you rename people? (Yea I know it's possible but how do you do it?)
How can you give yourself GOD? (I saw pass: god god thing)