• Sign up for September Mapping Competition! The prize includes Otland Premium time.
  • 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!

Action Working Demon Oak Quest

Newpy

New Member
Joined
May 5, 2010
Messages
50
Best answers
0
Reaction score
1
Having a problem with loading up Oldrak.

 

Limos

Premium User
Joined
Jun 7, 2010
Messages
10,018
Best answers
8
Reaction score
2,985
Location
Netherlands
Replace this part
Code:
function onCreatureAppear(cid)       npcHandler:onCreatureAppear(cid)       end
function onCreatureDisappear(cid)     npcHandler:onCreatureDisappear(cid)       end
function onCreatureSay(cid, type, msg)     npcHandler:onCreatureSay(cid, type, msg)     end
function onThink()         npcHandler:onThink()           end
The : o part is changed because of the missing Lua tags and this turns : o into :eek: smileys.
 

Newpy

New Member
Joined
May 5, 2010
Messages
50
Best answers
0
Reaction score
1
thank you, i actually just copied the funtions from another NPC! but now im having this error

Code:
[13/08/2014 17:22:51] [Error - Action Interface]
[13/08/2014 17:22:51] data/actions/scripts/demonOak.lua:onUse
[13/08/2014 17:22:51] Description:
[13/08/2014 17:22:51] data/lib/102-demonOak.lua:244: attempt to call method 'lower' (a nil value)
[13/08/2014 17:22:51] stack traceback:
[13/08/2014 17:22:51]     data/lib/102-demonOak.lua:244: in function 'monsterExists'
[13/08/2014 17:22:51]     data/actions/scripts/demonOak.lua:59: in function <data/actions/scripts/demonOak.lua:1>
Oh, and what do i have to do to enter the area? becuase using the axe on the dead tree [uniqueid=32192] did nothing
 
Last edited:

Limos

Premium User
Joined
Jun 7, 2010
Messages
10,018
Best answers
8
Reaction score
2,985
Location
Netherlands
It's because of a missing [ i ].
Change
Code:
if monsterExists(summons[get]) then
To
Code:
if monsterExists(summons[get][i]) then
 

Newpy

New Member
Joined
May 5, 2010
Messages
50
Best answers
0
Reaction score
1
Well you are getting me closer and closer it seems.. but now this? o_O

Code:
[13/08/2014 17:46:12] [Error - Action Interface]
[13/08/2014 17:46:12] data/actions/scripts/demonOak.lua:onUse
[13/08/2014 17:46:12] Description:
[13/08/2014 17:46:12] (luaDoCreateMonster) Monster with name '' not found
 

Limos

Premium User
Joined
Jun 7, 2010
Messages
10,018
Best answers
8
Reaction score
2,985
Location
Netherlands
Also add [ i ] there
Code:
ret = doCreateMonster(summons[get][i], pos)
Code:
ret = doCreateMonster(summons[get][i], sPos)
 

Newpy

New Member
Joined
May 5, 2010
Messages
50
Best answers
0
Reaction score
1
I've just been teleporting past it on my GM...

How do I get past the first dead tree to enter the area?

Limos tysm for your help
 
Last edited:

survivor

New Member
Joined
Mar 20, 2008
Messages
89
Best answers
0
Reaction score
4
I guess this script isn't for 0.2.15? :eek:
 
Last edited:

Felipe93

Ghost Member
Joined
Mar 21, 2015
Messages
1,611
Best answers
9
Reaction score
244
Location
Chile
blockingTree =
{
[ITEM_DEADTREE] = {32193, 3614}



Working 100% great release
 
Last edited:

Lelodro

khé?
Joined
Sep 15, 2008
Messages
326
Best answers
3
Reaction score
176
Location
Venezuela
blockingTree =
{
[ITEM_DEADTREE] = {32193, 3614}



for what is the id 3614?
im adapting this quest tibia 7.72

and where do i place theses on the map?
<movevent type="StepIn" itemid="8292" event="script" value="demonOakArea.lua" />
this is just for 1 sqm below the demon oak tree ? or for all sqm

npc is not working help he doesnt even talk
im using tfs 0.3.7 with config 360 in lin 102-demon oak

value="demonOakSquares.lua" />
Spasnish; ese item lo tienes que agregar a spr, por que? es un item el cual caminas y te quita vida random.. No te recomiendo usar el que tiene el spr por defecto porque por ejemplo ese tile se encuentra en rookgaard, y los que caminen por ahi, morirán.

That item you have to add to spr, Is an item that you walk and takes life away random .. I do not recommend used one of the spr because for example that tile is in rookgaard, and those who walk around, will die.
 

Felipe93

Ghost Member
Joined
Mar 21, 2015
Messages
1,611
Best answers
9
Reaction score
244
Location
Chile
Spasnish; ese item lo tienes que agregar a spr, por que? es un item el cual caminas y te quita vida random.. No te recomiendo usar el que tiene el spr por defecto porque por ejemplo ese tile se encuentra en rookgaard, y los que caminen por ahi, morirán.

That item you have to add to spr, Is an item that you walk and takes life away random .. I do not recommend used one of the spr because for example that tile is in rookgaard, and those who walk around, will die.
gracias lelodro aun no enteidno para que es pero la quest me funciono use la axe en el arbol y a cierto punto me kickeo del area fuia reportar a oldrak di click en el grave y me llevo al room quias lo editaron
y el tile premium lo tengo como 4012
16:20 You see a stones.
ItemID: [3614].<<<<son unas roquitas pequeñas esas supuestamente van debajo del oak tree?
Position: [X: 32717] [Y: 32347] [Z: 7].

ya ni modo si me sale un problema preguntare por ahora todo ok aun no entiendo esa parte

PD EDIT : CREO QUE TE ENTENDI y ese tile id el 3614? lo pongo en donde quiera o cual es la idea? vi el video de la demon oak pero no veo que el tipo camine y pierda vida :(

gracias @Lelodro
 

Skuniasz

Member
Joined
Jan 14, 2014
Messages
34
Best answers
0
Reaction score
12
all working good, only grave not teleported me, anyone can help me? im don`t have bugs in console...
 

Giorox

New Member
Joined
Jun 5, 2009
Messages
13
Best answers
0
Reaction score
0
Did anyone edit the code to get it working 100% like RL Tibia? Been trying to study the code, but it's a tad complicated for me to try and figure out what to change.
 
Top