• 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!

[Bugs] Latest rev

Simone has made some other changes about monsters/search-path optmization.

* Moved path-cache to Creature class (each Creature now has their own path-cache for (hopefully) faster path-finding calculations).
 
Last edited:
at Rev583
Desintegrate rune
Code:
   <rune name="Desintegrate" id="2310" [COLOR=Red]allowfaruse="0"[/COLOR] charges="3" lvl="21" maglv="4" range="5" script="support/desintegrate rune.lua"/>
Code:
local function doRemoveObject(cid, pos)
    pos.stackpos = 255
    local object = getThingfromPos(pos)
    local playerPos = getPlayerPosition(cid)

    if(object.uid > 0 and isCreature(object.uid) == FALSE and isMoveable(object.uid) == TRUE) then
        doRemoveItem(object.uid)
        doSendMagicEffect(pos, CONST_ME_BLOCKHIT)
        return LUA_NO_ERROR
    end

    doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE)
    doSendMagicEffect(playerPos, CONST_ME_POFF)
    return LUA_ERROR
end

function onCastSpell(cid, var)
    local pos = variantToPosition(var)
    if(pos.x ~= 0 and pos.y ~= 0 and pos.z ~= 0) then
        return doRemoveObject(cid, pos)
    end

    doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE)
    doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
    return LUA_ERROR
end

it have allowfaruse=0 but it don't work..
you can use this by far.
 
Try in latest SVN revision.
 
oh .. u can't remove items by far .. but if you try you lose charges of your rune ;p
and
follow still a bit delayed

PS: Rev585 Trunk
 
Agree.. Follow should be a bit faster, becouse now knight cant auto move to attacked player or monster, and its really ugly :(
 
Someone is using latest rev, with md5 passwords?

I cant login, always "Account number or password incorrect"
 
I'm using it with SHA1, and that works fine. Are you sure that the passwords are correctly hashed to MD5 (without any salt)?

You might want to try to lookup the md5 hash of a password in your database that you know and see if it matches the hash you have in your database.
 
Now i'm sure. tried without changed - latest rev.

I have in config md5 (i was always have, and always worked)

And i tried find what it cause, and when i changed my pass in database to standard - plain, it worked.

But after server loading i see:
Code:
Using MD5 passwords

But it use plain.
 
Ok, i found it.. After some hours of searching!! :)

Code:
std::string hexStr = hexStream.str();
toLowerCaseString(hexStr);
return hexStr;
i changed to how it was before, and now works:
Code:
return hexStream.str();
 
Will be fixed in my next commit (with a proper fix).
 
Back
Top