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

Spells and some doors don't work correctly

Zippiex

Member
Joined
Nov 4, 2015
Messages
255
Solutions
2
Reaction score
20
Location
Sweden
Hello. I got a big problem and it's the healing spells and attack spells who don't work as they should. The spells don't heal right or attack right but they did before and I also used the same sources. I still use TFS 0.4. The doors with IDS: 5111 and 1220 you can't close them. Does anyone know what I can do in sources to fix this?
 
doors are action scripts
they should all be inside of 1 file in your action scripts
just add the ids
 
doors are action scripts
they should all be inside of 1 file in your action scripts
just add the ids

@Felipe93 what is a cast system ? I think I don't use that.

Here is a part of action. The doors was already there so I think it's something with the sources do you know how to fix it?
Code:
<action fromid="1209" toid="1214" event="script" value="other/doors.lua"/>
    <action fromid="1219" toid="1262" event="script" value="other/doors.lua"/>
    <action fromid="1539" toid="1542" event="script" value="other/doors.lua"/>
    <action fromid="2086" toid="2092" event="script" value="other/doors.lua"/>
    <action fromid="3535" toid="3552" event="script" value="other/doors.lua"/>
    <action fromid="4913" toid="4918" event="script" value="other/doors.lua"/>
    <action fromid="5082" toid="5085" event="script" value="other/doors.lua"/>
    <action fromid="5098" toid="5145" event="script" value="other/doors.lua"/>
    <action fromid="5278" toid="5295" event="script" value="other/doors.lua"/>
    <action fromid="5515" toid="5518" event="script" value="other/doors.lua"/>

Doors
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)

    for i = 10001, 10008 do

        if getPlayerStorageValue(cid, i) > 0 then

            return doTransformItem(item.uid, item.itemid + 1) and doTeleportThing(cid, toPosition, true)

        end

    end

  

    return doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It seems this door is sealed against unwanted intruders.")

end
 
@Felipe93 what is a cast system ? I think I don't use that.

Here is a part of action. The doors was already there so I think it's something with the sources do you know how to fix it?
Code:
<action fromid="1209" toid="1214" event="script" value="other/doors.lua"/>
    <action fromid="1219" toid="1262" event="script" value="other/doors.lua"/>
    <action fromid="1539" toid="1542" event="script" value="other/doors.lua"/>
    <action fromid="2086" toid="2092" event="script" value="other/doors.lua"/>
    <action fromid="3535" toid="3552" event="script" value="other/doors.lua"/>
    <action fromid="4913" toid="4918" event="script" value="other/doors.lua"/>
    <action fromid="5082" toid="5085" event="script" value="other/doors.lua"/>
    <action fromid="5098" toid="5145" event="script" value="other/doors.lua"/>
    <action fromid="5278" toid="5295" event="script" value="other/doors.lua"/>
    <action fromid="5515" toid="5518" event="script" value="other/doors.lua"/>

Doors
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)

    for i = 10001, 10008 do

        if getPlayerStorageValue(cid, i) > 0 then

            return doTransformItem(item.uid, item.itemid + 1) and doTeleportThing(cid, toPosition, true)

        end

    end

 

    return doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It seems this door is sealed against unwanted intruders.")

end
thats your whole doors.lua script?
 
you can make your own script for doors, i dont understand how that script would even remotely work
something like this
Code:
local doors = {
    [closed id] = openid,
    [closed id2] = openid2,
    ....
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
    local id = doors[item.itemid]
    if id then
        doTransformItem(item.uid, id)
    end
    return true
end
then just add the door ids to your xml
 
Back
Top