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

[Request] Use Itens

president vankk

Web Developer & AuraOT Owner
Joined
Jul 10, 2009
Messages
5,719
Solutions
9
Reaction score
339
I wanted a scripter so you Click the iten and you gain mana (maxima) and the other comes to life (maxima) (Same as the ArchezOT)
and I was also a scripter you click the iten and you will teleport to or trainer.
would do that?
rep+

--EDIT
and so you use in the iten and you get maximum mana and another with maximum horsepower
 
Last edited:
Credits: Chojrak

This is for you'r 3rd request.

LUA:
function onUse(cid, item, fromPosition, itemEx, topos)
local newPosition = {x = xxxx, y = xxxx, z = x}
	if item.itemid == 10570 then
		doTeleportThing(cid, newPosition, true)
        doSendMagicEffect(fromPosition, CONST_ME_POOF)
       doSendMagicEffect(newPosition, CONST_ME_TELEPORT)
	end
	return true
end

x = xxxx, y = xxxx, z = x <-= Position of Trainers

10570 <- Item ID, when click get TP.



Actions.xml
LUA:
<action itemid="xxxx" event="script" value="itemTP.lua"/>
 
Code:
local teleportPos = { x = 100, y = 100, z = 7 }
function onUse(cid, item, fromPosition, itemEx, toPosition)
	doCreatureAddHealth(cid, getCreatureMaxHealth(cid))
	doCreatureAddMana(cid, getCreatureMaxMana(cid))
	doTeleportThing(cid, teleportPos)
	return doSendMagicEffect(teleportPos, CONST_ME_TELEPORT)
end
 
Back
Top