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

Lua Summons

owned

Excellent OT User
Joined
Nov 9, 2008
Messages
2,001
Solutions
3
Reaction score
563
Location
New York
How can i make it so when i walk through a portal my summons will follow me through, instead of just disappearing.

Any kind of help would be nice.

Thanks ahead of time :)
 
alright, is there anyway to make it so that only the players with a certain storage value will have the summon teleport to them?
 
Try like this:
LUA:
function onStepIn(cid, item)
    if(getPlayerStorageValue(cid, STORAGE) ~= FALSE)then
        for _, pid in getCreatureSummons(cid)
            doTeleportThing(pid, getCreaturePosition(cid), FALSE)
        end
    end
end

Thus, I dont know if it will work how it is supposed to.
 
Try like this:
Code:
function onStepIn(cid, item)
    if(getPlayerStorageValue(cid, STORAGE) [B][COLOR="Blue"]~= FALSE[/COLOR][/B])then
        for _, pid in [B][COLOR="Red"]ipairs(getCreatureSummons(cid))[/COLOR][/B]
            doTeleportThing(pid, getCreaturePosition(cid), FALSE)
        end
    end
end

Thus, I dont know if it will work how it is supposed to.
about the getStorage i guess it returns a number not boolean
 
error: [31/05/2010 18:58:35] [Error - LuaScriptInterface::loadFile] data/movements/scripts/summons.lua:4: 'do' expected near 'doTeleportThing'
[31/05/2010 18:58:35] [Warning - Event::loadScript] Cannot load script (data/movements/scripts/summons.lua)
[31/05/2010 18:58:35] data/movements/scripts/summons.lua:4: 'do' expected near 'doTeleportThing'
 
Back
Top