• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Action Mount system

Maybe I'm dumb :$ , but I don't get the point. U'r gonna add it or not? .. ofc when u have time :p

No sorry, I am not going to add it.

and to check if the player is PZ locked use.

Lua:
if not isPlayerPzLocked(cid) then
end

the not is because he shouldn't be PzLocked.
 
Hello this is happening to me ..

[20/01/2005 17:01:25] Lua Script Error: [Action Interface]
[20/01/2005 17:01:25] data/actions/scripts/mountsystem.lua

[20/01/2005 17:01:25] luaAddOutfitCondition(). Condition not found


The system displays the information system
17:11 You Have mounted the wolf.
17:11 You Have demounted the wolf.


But he just does it .. (The same happens on your system "simple fly" he did not find the condition)
Thanks
 
Unfortunately, not only works for a knight

It shows me a message
20:33 Only can use this knight.

I tested the GOD and Knight
 
@up
Read the posts above ....


--------------------
---- CONDITION -----
--------------------
local wolfSpeed = createConditionObject(CONDITION_HASTE)
setConditionParam(wolfSpeed, CONDITION_PARAM_TICKS,-1) --- -1 = infinite haste or use calculate minutes*60*1000 in a calculator and put result there.
setConditionFormula(wolfSpeed, 0.3, -24, 0.3, -24)
local wolfCondition = createConditionObject(CONDITION_OUTFIT)
setConditionParam(wolfCondition, CONDITION_PARAM_TICKS, -1)
addOutfitCondition(wolfCondition, {lookType = 4, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})
--------------------
----- config -------
--------------------
local t = {
[7443] = {article='a' ,name='wolf', text='Mount, wolf!', dtext='Demount, wolf!', s=100, condition=wolfCondition, speedcondition=wolfSpeed},
}

------------------------------------
--- don't change if you are noob ---
------------------------------------
function onUse(cid, item, fromPosition, itemEx, toPosition)
local v, r = getCreaturePosition(cid), t[item.itemid]
local s = r.s
local pos = {x = v.x, y = v.y, z = v.z}
if r then
if getPlayerStorageValue(cid, s) <= 0 then
doSendMagicEffect(pos, 10)
doCreatureSay(cid, r.text, 19)
setPlayerStorageValue(cid, s, 1)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, 'You have mounted ' .. r.article .. ' '.. r.name .. '.')
doAddCondition(cid, r.speedcondition)
return doAddCondition(cid, r.condition)
elseif getPlayerStorageValue(cid, s) == 1 then
doSendMagicEffect(pos, 10)
doCreatureSay(cid, r.dtext, 19)
setPlayerStorageValue(cid, s, 0)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, 'You have demounted ' .. r.article .. ' '.. r.name .. '.')
doRemoveCondition(cid,CONDITION_HASTE)
return doRemoveCondition(cid, CONDITION_OUTFIT)
else
return doPlayerSendCancel(cid, 'You can\'t do this.')
end
else
return doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE, 'There has been some error, try contacting a staff member.')
end
end
 
Himmel
look for it

local t = {
[5940] = {article='a' ,name='wolf', text='Mount, wolf!', dtext='Demount, wolf!', s=100, condition=wolfCondition},
}


and put in [5940] same item then actionid !!!!!!!

nice script man !awesome :)
 
would be nice if you can make, if you are on a mount then you can have more spells spicel spells only for mounts

More speed etc
 
One thing, i Use it thanks a lot, but can u put time to use it?
because the people spams using the potions. Thanks
 
With exhaust of 30 seconds.

Lua:
    --EXHAUST--
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, 30*1000)
--------------------
---- CONDITION -----
--------------------
local wolfCondition = createConditionObject(CONDITION_OUTFIT)
setConditionParam(wolfCondition, CONDITION_PARAM_TICKS, -1)
addOutfitCondition(wolfCondition, {lookType = 4, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})
--------------------
----- config -------
--------------------
local t =   {
        [7443] = {article='a' ,name='wolf', text='Mount, wolf!', dtext='Demount, wolf!', s=100, condition=wolfCondition},
}      

------------------------------------
--- don't change if you are noob ---
------------------------------------
function onUse(cid, item, fromPosition, itemEx, toPosition)
        local v, r = getCreaturePosition(cid), t[item.itemid]
        local s = r.s
        local pos = {x = v.x, y = v.y, z = v.z}
        if r then
			if not(getCreatureCondition(cid,CONDITION_EXHAUST))then
                if getPlayerStorageValue(cid, s) <= 0 then
						doAddCondition(cid,exhaust)
                        doSendMagicEffect(pos, 10)
                        doCreatureSay(cid, r.text, 19)
                        setPlayerStorageValue(cid, s, 1)
                        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, 'You have mounted ' .. r.article .. ' '.. r.name .. '.')
                        return doAddCondition(cid, r.condition)  
                elseif getPlayerStorageValue(cid, s) == 1 then
                        doSendMagicEffect(pos, 10)
                        doCreatureSay(cid, r.dtext, 19)
                        setPlayerStorageValue(cid, s, 0)
                        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, 'You have demounted ' .. r.article .. ' '.. r.name .. '.')
                        return doRemoveCondition(cid, CONDITION_OUTFIT)
                else
                        return doPlayerSendCancel(cid, 'You can\'t do this.')
						doSendMagicEffect(v,2)
                end
			else
				doPlayerSendCancel(cid,'You are exhausted.')
			end
        else
                return doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE, 'There has been some error, try contacting a staff member.')
        end
end

change the value 30 to the amount of seconds in
Lua:
    --EXHAUST--
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, 30*1000)
 
I have problem when i using the item don't appears orc for ride only says Mount,wolf and Demount wolf no more else.
 
Back
Top