Action Working Demon Oak Quest

zxcvbnnm

New Member
Joined
Jun 28, 2008
Messages
11
Best answers
0
Reaction score
0
I have one problem with dead tree. When 1 person do quest and get rewards the floor 3669 do not transform back to the tree. What i need to do. Please help me


I find what i did wrong very good script THANKS:)
 
Last edited:

Sannnna

New Member
Joined
Jun 28, 2009
Messages
58
Best answers
0
Reaction score
0
Location
Sweden
Thanks for the script it works fine, just have some trouble at the end. After i finish the quest i get teleported to the other side of the dead tree, how do i do so i get teleported to the reward room?

Thanks.
 

Sannnna

New Member
Joined
Jun 28, 2009
Messages
58
Best answers
0
Reaction score
0
Location
Sweden
Nvm i found it, i was just gonna change the kick position..

Thanks again for the scripts rep++
 

Tuchol

falania.com
Joined
Nov 21, 2008
Messages
387
Best answers
0
Reaction score
13
Location
Uzbekistan
PHP:
local areaPosition =
{
        {x=568, y=624, z=7, stackpos = 255},
        {x=589, y=640, z=7, stackpos = 255}
}
what there to write down ?


fixed ;P
 
Last edited:

Suxex

Member
Joined
Aug 13, 2007
Messages
391
Best answers
0
Reaction score
5
Location
Halland - Getinge
[14/08/2009 19:15:02] Lua Script Error: [Action Interface]
[14/08/2009 19:15:02] data/actions/scripts/demonOak.lua:eek:nUse

[14/08/2009 19:15:02] data/actions/scripts/demonOak.lua:102: attempt to call global 'doPlayerSetStorageValue' (a nil value)
[14/08/2009 19:15:02] stack traceback:
[14/08/2009 19:15:02] data/actions/scripts/demonOak.lua:102: in function <data/actions/scripts/demonOak.lua:1>

[14/08/2009 19:15:07] Lua Script Error: [Action Interface]
[14/08/2009 19:15:07] data/actions/scripts/demonOak.lua:eek:nUse

[14/08/2009 19:15:07] data/actions/scripts/demonOak.lua:112: attempt to call global 'doPlayerSetStorageValue' (a nil value)
[14/08/2009 19:15:08] stack traceback:
[14/08/2009 19:15:08] data/actions/scripts/demonOak.lua:112: in function <data/actions/scripts/demonOak.lua:1>
That error comes up when I cut the oak. And I can cut the oak parts how much I want and it always comes the summon 1:

[1] = {"Demon", "Grim Reaper", "Elder Beholder", "Demon Skeleton"},


Someone that can help me with this?

Thanks anyway!
 

Shawak

Intermediate OT User
Joined
Sep 11, 2008
Messages
1,976
Best answers
2
Reaction score
101
Location
Germany
@up:
change "doPlayerSetStorageValue(...)" to:
Lua:
                doPlayerSetStorageValue(cid, storages.cutTree, 1)
(ctrl+g and then tip line 102 and 112)
 

Gale

The Crooked Fate
Joined
Jun 7, 2008
Messages
56
Best answers
0
Reaction score
0
I have tried several demon oak quests, but all have failed. This one however was 100% perfect! great work! rep++
 
OP
Darkhaos
Joined
Apr 17, 2008
Messages
1,922
Best answers
0
Reaction score
181
Location
Venezuela
I have tried several demon oak quests, but all have failed. This one however was 100% perfect! great work! rep++
I was tired of it, because of it i decided to create my own demon oak script xD, Thanks for rep!
 

Inteligentny

Im not.
Joined
Aug 2, 2008
Messages
485
Best answers
0
Reaction score
0
darkhaos how to make gravestone which do not let enter if people already took reward?
 
OP
Darkhaos
Joined
Apr 17, 2008
Messages
1,922
Best answers
0
Reaction score
181
Location
Venezuela
Add this under "local position = ...."

Lua:
if getPlayerStorageValue(cid, 12900) > 0 then
	return FALSE
end
 

Inteligentny

Im not.
Joined
Aug 2, 2008
Messages
485
Best answers
0
Reaction score
0
Thanks a lot mate :] If I could I would rep you, but already did :p

Script is working 100%
btw, are u thinking about adding 5 tiles like in rl?
 

Suxex

Member
Joined
Aug 13, 2007
Messages
391
Best answers
0
Reaction score
5
Location
Halland - Getinge
@up:
change "doPlayerSetStorageValue(...)" to:
Lua:
                doPlayerSetStorageValue(cid, storages.cutTree, 1)
(ctrl+g and then tip line 102 and 112)
It's still the same problem :(

Really need help with this


Thank you anyway!
 
OP
Darkhaos
Joined
Apr 17, 2008
Messages
1,922
Best answers
0
Reaction score
181
Location
Venezuela
It's still the same problem :(

Really need help with this


Thank you anyway!
If you are using a TFS under 0.3.5, then change all "doPlayerSetStorageValue" to "setPlayerStorageValue" and change "isInRange" to "isInArea"
 

Teddy

SweStream.se
Joined
Oct 2, 2008
Messages
3,798
Best answers
0
Reaction score
10
Location
Sweden 172
iam a really noob at Oak but how do i get to the reward room ? and do i finish the arena ?
and what happens if some die in the arena/zone ? (when some die i cant enter the arena ?)
and
i can spam the axe on the three and be tp to reward room ? .. ? arent there that i most kill 4 mobs then smash the three after that 4 more ? why can i spam on the three so its come more then 4 mobs ?
+
how do i set the postion for reward room ? :S
plzz answer ..
 
Last edited:
OP
Darkhaos
Joined
Apr 17, 2008
Messages
1,922
Best answers
0
Reaction score
181
Location
Venezuela
iam a really noob at Oak but how do i get to the reward room ? and do i finish the arena ?
and what happens if some die in the arena/zone ? (when some die i cant enter the arena ?)
and
i can spam the axe on the three and be tp to reward room ? .. ? arent there that i most kill 4 mobs then smash the three after that 4 more ? why can i spam on the three so its come more then 4 mobs ?
+
how do i set the postion for reward room ? :S
plzz answer ..
In tibia rl, you will be teleported to the reward room if you finish the quest and use a gravestone. (uniqueId for gravestone: 55100)

I don't have tested if a player can enter after other player died in the quest. I think he can enter because the script check for a player, if the script don't found a player then player can enter.

@The spam, with my demon Oak, you need to use the axe in the demon oak 11 times. I do it in this way because when i did the script i did'nt know how demon oak quest works.
 
Top