• 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 Knowledge parchment

By the way, Jesper, for the newer servers you dont need 'frompos', 'item2' and 'topos' but 'fromPosition', 'itemEx' and 'toPosition'.

Edited my post.

no difference, it's just variables names and I'm still using frompos, item2 etc in my newer :)

So my code was right :D?

yes, if you exclude writing the count, it remove all in stack
 
okay. Thanks for all the nice responds.

Atm I'm trying to make a script that summons a monster if you walk on a certain XYZ.

making this with walking on certain ID was easy, but I don't understand how to do with XYZ

I tried with
PHP:
if getPlayerPosition(cid) == STEPXYZ then

STEPXYZ is declared like this:

PHP:
local STEPXYZ =
{
x=94,
y=126,
z=7,
stackpos=0
}

But doesn't seem to work
 
you can't compare a table, you need to iterate through each table and compare the results...

simple function (that you might already have):
Code:
function comparePos(pos1, pos2)
    return pos1.x == pos2.x and pos1.y == pos2.y and pos1.z == pos2.z
end

and it return true/false so you do "if comparePos(pos, pos2) then"
[/code]
 
you can't compare a table, you need to iterate through each table and compare the results...

simple function (that you might already have):
Code:
function comparePos(pos1, pos2)
    return pos1.x == pos2.x and pos1.y == pos2.y and pos1.z == pos2.z
end

and it return true/false so you do "if comparePos(pos, pos2) then"
[/code]

lol I think you would confuse him with that:p. I think he should do like this(if I understood him right):

Give a certain tile an action id.
then use in the script if tilepos.actionid == actionid then
summon monster
endbye
 
lol I think you would confuse him with that:p. I think he should do like this(if I understood him right):

Give a certain tile an action id.
then use in the script if tilepos.actionid == actionid then
summon monster
endbye

I'll talk to you on MSN :*
 
lol I think you would confuse him with that:p. I think he should do like this(if I understood him right):

Give a certain tile an action id.
then use in the script if tilepos.actionid == actionid then
summon monster
endbye

I just told him how to compare positions nothing more.
 
Back
Top