• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

FuNkCjA

Erazma

Banned User
Joined
Sep 3, 2012
Messages
265
Reaction score
4
Code:
if item.actionid == 2025 and isPlayer(cid) == TRUE [COLOR="#FF0000"]and ------[/COLOR] then
doSendMagicEffect(getCreaturePosition(cid),13)
doRemoveItem(getwall1.uid,1)
doRemoveItem(getwall2.uid,1)
doRemoveItem(getwall3.uid,1)
doSendMagicEffect(wall1,2)
doSendMagicEffect(wall2,2)
doSendMagicEffect(wall3,2)
end
Co dodać do and ---- żeby sprawdzalo czy postac stoi na xyz kratce?
 
LUA:
if (... and doComparePositions(getThingPosition(cid), {x = 0, y = 0, z = 0})) then
 
dzieki zaraz sprawddze

- - - Updated - - -

data/movements/scripts/quests/dhq/wall.lua:18: attempt to call global 'getThingPosition' (a nil value)

- - - Updated - - -

player1pos = {x=1367, y=704, z=13, stackpos=253}
player1 = getThingfromPos(player1pos)

and player1.itemid > 0

zrobilem tak ;p bo inaczej nie dzialczy
 
noob

t = {x=, y =, z = }
g = getCreaturePosition(cid)
if g.x == t.x and g.y == t.y and g.z == t.z then

w t wpisujesz pozcyje do jakiej ma sprawdzać
 
Tak zamiast getThingPosition użyj funkcji getCreaturePosition.
 
Back
Top