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

[Actions/Movements] 2 Scripts 'easy' of PoI Quest (TFS 0.3.1 CryingDamson)

Pentagratta

ancientwars.servegame.com
Joined
Mar 15, 2009
Messages
76
Reaction score
0
Location
São Paulo - Brazil
HAS BEEN RESOLVED !!!


Greetings,

Im here (again xD) to ask if someone have 2 scripts which i need...

Here go:


- PoI Gravestone Script:
When i 'click use' in gravestone (ID 1409) i will be teleported to XYZ coord.

- Holy Tible tile Script:
When i step in XYZ floor i will be teleported to XYZ coord., and i can step/be teleported only when i have X item in hands/backpack/with me, etc...

I use: The Forgotten Server - Version 0.3.1 (Crying Damson)


Ill be glad if someone could post it here to me!! :wub:
Ill give some rep+ for who help me here, i know it isnt so much, but... :)

Regards,
Pentagratta.
 
Last edited:
First one

PHP:
--BY Waxel
function onUse(cid, item, frompos, item2, topos)
location = {x=1, y=1, z=1}-- coordinates
pos = getPlayerPosition(cid)

if item.uid == 11148 then
doTeleportThing(cid, location)
 doSendMagicEffect(pos,32)
 return TRUE
 end

<action uniqueid="11148" script="stone.lua"/>
set the unique id to the stone
 
PHP:
--BY Waxel
function onUse(cid, item, frompos, item2, topos)
location = {x=1, y=1, z=1}-- coordinates
pos = getPlayerPosition(cid)

if item.uid == 11148 then
   doTeleportThing(cid, location)
   doSendMagicEffect(pos,32)
  end
 return TRUE
end
 
'bump,

Please if someone have this script, i really need:

- Holy Tible tile Script:
When i step in XYZ floor i will be teleported to XYZ coord., and i can step/be teleported only when i have X item in hands/backpack/with me, etc...


Regards,
Pentagratta.
 
Hope you rep me :D

PHP:
local tibleId = TIBLE_ITEM_ID
local pos = {x=123, y=123, z=123}
function onStepIn(cid, item, position, fromPosition)
	if isPlayer(cid) == TRUE then
		if getPlayerItemCount(cid, tibleId) >= 1 then
			 doTeleportThing(cid, pos, TRUE)
			 doSendMagicEffect(position, 12)
		else
			doTeleportThing(cid, fromPosition, TRUE)
		end
	end
	return TRUE
end

Just change the
"local pos" and "local tibleId"
 
Back
Top