• 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 Working Demon Oak Quest

Changing this:
Lua:
                if(math.random(100) <= 1) then
                        doPlayerSetStorageValue(cid, itemEx.itemid, 12)
                        return true
                end

You can increase or decrease the chance to don't cut a demon oak part 11 times.
 
So this would do it:
Code:
                if(math.random(100) <= 20) then
                        doPlayerSetStorageValue(cid, itemEx.itemid, 12)
                        return true
                end
or

Code:
                if(math.random(20) <= 1) then
                        doPlayerSetStorageValue(cid, itemEx.itemid, 12)
                        return true
                end
 
Little bug in the script:
Code:
  function onUse(cid, item, fromPosition, itemEx, toPosition)
local position = {x=586, y=630, z=8} -- reward room
        if getPlayerStorageValue(cid, 35700) >= 1 then
                doTeleportThing(cid, position)
                doSendMagicEffect(position, CONST_ME_TELEPORT)
        else
                return false
        end
        return true
end

Not
Code:
        if getPlayerStorageValue(cid, 35700) >= 1 then
because
Code:
                        doPlayerSetStorageValue(cid, storages.done, 1)
 
is very good.. i used him ^^.. but i have one question and problem :B ..
for what is the local position?
and.. the problem: how i can add more monster?.. because when i do the demon oak.. i think that is too short.. :/
thx :)
TFS 0.3.5 (XvX Server 8.5) :D
 
Last edited:
engine can't load demonoakdeath.lua on TFS 0.3.6
any ideas how to fix it ?

function onDeath(cid, corpse)
if getPlayerStorageValue(cid, 36901) > 0 and getPlayerStorageValue(cid, 35700) < 1 then
doPlayerSetStorageValue(cid, 36901, 0)
end
return TRUE
end
 
Last edited:
How to change from 11 cuts to 4 cuts Each??? without that Percent chance thingy...

11 cuts are WAY to much...
But nice script :)
 
Little bug in the script:
Code:
  function onUse(cid, item, fromPosition, itemEx, toPosition)
local position = {x=586, y=630, z=8} -- reward room
        if getPlayerStorageValue(cid, 35700) >= 1 then
                doTeleportThing(cid, position)
                doSendMagicEffect(position, CONST_ME_TELEPORT)
        else
                return false
        end
        return true
end

Not
Code:
        if getPlayerStorageValue(cid, 35700) >= 1 then
because
Code:
                        doPlayerSetStorageValue(cid, storages.done, 1)

Not a bug, you must say to Oldrak 'demon oak' 'yes' after defeating the demon oak:
Code:
        elseif msgcontains(msg, 'demon oak') then
                npcHandler:say('Did you defeat the demon oak?', cid)
                talk_state = 2
        elseif msgcontains(msg, 'yes') and talk_state == 2 then
            if getPlayerStorageValue(cid, 35700) == 1 then
                npcHandler:say('Good job!', cid)
                [B][COLOR="Red"]doPlayerSetStorageValue(cid, 35700, [COLOR="Blue"]2[/COLOR])[/COLOR][/B]
                talk_state = 0
            else
                npcHandler:say('Go defeat the demon oak first.', cid)
                talk_state = 0
            end
 
I have a some problems.

1. If player say : hi>hallowed axe>yes then Oldrak not change axe for halowed axe , but he stolen gp xD
2. Bad in console.
Code:
 Loading Scripts
Error: [MoveEvent::configureMoveEvent] No valid event name script
Warning: [BaseEvents::loadFromXml] Can not configure event
Error: [MoveEvent::configureMoveEvent] No valid event name script
Warning: [BaseEvents::loadFromXml] Can not configure event
3. If i use Hallowed axe on DemonOak then
Code:
Lua Script Error: [Action Interface] 
data/actions/scripts/tools/hallowed axe.lua:onUse

luaDoSummonCreature(). Monster name(The Demon Oak) not found


help xd

i have engine stigma3 ;]
 
Ah, im stupid and i dont know what positions are
kick = { x = 571, y = 621, z = 7 },
summon =
{
{x=575, y=630, z=7},
{x=583, y=629, z=7},
{x=579, y=635, z=7},
{x=575, y=634, z=7}

can anybody tell me? :D
or can anybody make screen shot with tutorial? :p
 
Last edited:
NaxedMap
but my question is
Is "kick" is demonoak or tree to enter demon oak, or what?
And other coordinations are corners of demon oak area or what? :D
 
Last edited:
NaxedMap
but my question is
Is "kick" is demonoak or tree to enter demon oak, or what?
And other coordinations are corners of demon oak area or what? :D
Something like that:
126459920620.jpg
 
Back
Top