• 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!

Help!!

Gangsta-jr

You are an elite knight
Senator
Joined
Jan 13, 2008
Messages
1,547
Reaction score
3
Location
Bottrop, Germany
Here is a script.
Its function is that if u step in on that field (the coords are given in that) u fall down and on the field u stepped in there will "spawn" a stone with the id 1285


function onStepIn(cid, item, frompos, topos)

local position = {x = 32826, y = 32273, z = 11}

if isPlayer == 1 then
doTeleportThing(cid, {x = 32826, y = 32273, z = 11 - 1})
doCreateItem(1285,position,1)
end
end

K now my problem.
When i walk on the tile
nothin happens.The console doesnt say anything!
Btw its a movement and in movements.xml i wrote
<movevent event="StepIn" actionid="10257" script="PitsOfInferno/falldown.lua"/>
and gave the tile the actioid 10257 of course.

Any help?!
 
Umm once in a life I solved that problem... but don't remember how XD
ok now, for what is teleport thingy? because I see, u want to the player teleport on the ID, and the stone teleports on the same ID... so... solve my doubt :p
 
change
Code:
doTeleportThing(cid, {x = 32826, y = 32273, z = 11 - 1})

to:
Code:
doTeleportThing(cid, {x = 32826, y = 32273, z = 11 - 1}, 0)

Please don't blame me if don't works... I've just entered the ots business 2 days ago... retired since like april...
 
Code:
 local nPos = {x = 32826, y = 32273, z = 11}

function onStepIn(cid, item, frompos, topos)
	if isPlayer == TRUE then
	   doTeleportThing(cid, nPos, TRUE)
	   doSendMagicEffect(nPos, CONST_ME_TELEPORT)
	   doCreateItem(1285, nPos, 1)
 end
 return TRUE
end
 
if i use ur script
my server wont even start lol^^
It shuts down itself or it it loads everything and before it says serveronline its just loading doesnt matter how long iwait
 
Firstly,
isPlayer == TRUE should be isPlayer(cid) == TRUE
secondly,
doTeleportThing(cid, {x = 32826, y = 32273, z = 11 - 1}) should be
doTeleportThing(cid, getPlayerPosition(cid).z - 1, 0)
 
hhctytcf.jpg



Error message if i use the script with ur fixxes marcinek
 
add under onStepIn
local position = { x = getCreaturePosition(cid).x, y = getCreaturePosition(cid).y, z = getCreaturePosition(cid).z - 1 }
and change doTeleportThing with:
doTeleportThing(cid, position, 0)
 
I get that error msg with index and when i step in on the tile i get tped from the pos iven in the script to
Position: [X: 32828] [Y: 32275] [Z: 8].xd
maybe cuz i changed that
the localposition coords is under stepin and this under the coords
local position = { x = getCreaturePosition(cid).x, y = getCreaturePosition(cid).y, z = getCreaturePosition(cid).z - 1 }

but before it didnt work either
 
Back
Top