• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[8.41/42] The Forgotten Server 0.3.4PL2 (Crying Damson)

Status
Not open for further replies.
For me its working.. Post an example.

Code:
 local roomPos  = {x = 32701, y = 32201, z = 9}

function onUse(cid, item, fromPosition, itemEx, toPosition)
	if item.uid == 30330 then 
	if(getPlayerStorageValue(cid, 20000) == TRUE) and (getPlayerStorageValue(cid, 20001) == TRUE) and (getPlayerStorageValue(cid, 20002) == TRUE) and (getPlayerStorageValue(cid, 20003) == TRUE) then
          doTeleportThing(cid, {x = 32701, y = 32201, z = 9})
	   doSendMagicEffect(roomPos, CONST_ME_TELEPORT)
  end
 end
  return TRUE
end
It's doesn't work if i have storages, also svar arena doesn't working, teleport nothing to do
 
Code:
 local roomPos  = {x = 32701, y = 32201, z = 9}

function onUse(cid, item, fromPosition, itemEx, toPosition)
	if item.uid == 30330 then 
	if(getPlayerStorageValue(cid, 20000) == TRUE) and (getPlayerStorageValue(cid, 20001) == TRUE) and (getPlayerStorageValue(cid, 20002) == TRUE) and (getPlayerStorageValue(cid, 20003) == TRUE) then
          doTeleportThing(cid, {x = 32701, y = 32201, z = 9})
	   doSendMagicEffect(roomPos, CONST_ME_TELEPORT)
  end
 end
  return TRUE
end
It's doesn't work if i have storages, also svar arena doesn't working, teleport nothing to do

Actually, it have nothing to do with doTeleportThing, you should always debug your scripts, e.g. adding print('Test') before doTeleportThing to see if 'if' statement is done property.

You should change all TRUE in getPlayerStorageValue to 1, as TRUE from 0.3.4 is not 1 anymore, but just TRUE = true (boolean)
 
Try this :
local roomPos = {x=32701, y=32201, z=9}

function onUse(cid, item, fromPosition, itemEx, toPositilocal suma = 0
for i=20000, 20003 do
if getPlayerStorageValue(cid, i) == 1 then
suma = suma + 1
end
end
if item.uid == 30330 and suma == 4 thenon)

doTeleportThing(cid, roomPos, TRUE)
doSendMagicEffect(roomPos, 10)
end
end
return TRUE
end
 
Sorry try this :
local roomPos = {x=32701, y=32201, z=9}

function onStepIn(cid, item, position, fromPosition)
local suma = 0
for i=20000, 20003 do
if getPlayerStorageValue(cid, i) == 1 then
suma = suma + 1
end
end
if item.uid == 30330 and suma == 4 thenon)

doTeleportThing(cid, roomPos, TRUE)
doSendMagicEffect(roomPos, 10)
end
end
return TRUE
end
 
I've tested. Melaniaot.net and it's Stable.
 
Then you haven't updated your server properly... the only one thing which you can do now is to download server again and replace libs and that command.
 
ScorpiOOn about what bless bug are you talking ??
I'm using 0.3.1 too but there is really bless bug ? :p
 
ok here you have latest version, with fixed much bugs (Much more than I posted previously)

With __EXCEPTION_TRACER__
and
its __CONSOLE__

It also contains new config values (you can add it to config.lua)
Code:
premiumDaysToFormGuild = 0
pushCreatureDelay = 2 * 1000
deathContainerId = 1987
confirmOutdatedVersion = "yes"

Changes:
Code:
* Premium account time fix (thanks Faramir)
* Teleport summon fix
* 'hidename', 'hidehealth' flags for monsters & npcs (Used in flamethrowers etc.)
* Fixes to click & turn teleport (Debug prevent, and you can't enter house)
* Client version displaying onLook
* Deprecated getPlayerGroupName(cid), use getGroupInfo(id).name
* New configurable: premiumDaysToFormGuild (Default: 0)
* New configurable: pushCreatureDelay (how fast players moves creatures) (Default: 2 * 1000)
* New configurable: confirmOutdatedVersion (Allowing you to use older versions, without confirmation)
* New configurable: deathContainerId, its a default container added afer player death
* New functions: setPlayerPZLocked(cid, locked), getCreatureLastPosition(cid), getWaypointsList()
* Display more detailed time in banishment info (at login etc)
* lastLogin param to onLogin
* executeLogout optional parameter in doRemoveCreature, e.g. usable for disabling MC logging
* new creature events: onFollow(cid, target) and onTarget(cid, target)
* few additional things displayed onLook, like decayTo and ghost activated
* doCreateItem fix. Count is OPTIONAL
* Few fixes with vocation multipliers
* '*Ghost Mode*' text for invisible gamemasters onLook
* Temporary crashbug fix with Monster::pushCreatures

There are more changes/fixes in doc/ and data/ but I can give you only this binary.

Download link:
TFS_FIXED.rar - UploadHyper.com

Linux version plxplx? :wub:
 
I've searched, but I can't find a tutorial anywhere. How do I update to this from an older version? (3 beta)
 
Status
Not open for further replies.
Back
Top Bottom