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

Speed stone enchant \ Lever creates teleport

Synergy

New Member
Joined
Nov 24, 2011
Messages
334
Reaction score
0
Hello, I'm really sorry for requesting alot lately.

What I need is something I can't figure to script on my own

I want a script like this:

1. You have a item called "speed stone" lets take whatever ID, can be configured later..

2. You need a weapon to put the speed stone enchantment on, so lets take a normal sword.

3. You put the sword on a table/coal basin, doesnt really matter which one, can also be configured later.

4. You either USE the speed stone on the sword when its on the table/coal basin or you put the speed stone on it and push a lever.

The scripter can decide what to choose between the options..
Atleast I hope someone figures out how to make it!



And a lever who creates a teleport with destination, is it possible?


Thanks in advance, Jay

- - - Updated - - -

bump
 
Last edited:
The teleport, how it will dissapear later?

Options:
1. Time
2. Limit of players using it

For the speed stone, I dont know what you need to do with it, but to make an action when it's used on a sword that is on the coal basin, this should work:

Code:
local itemId = -- itemid of sword
local basinId = -- itemid of basin
function onUse(cid, item, fromPos, itemEx, toPos)
if itemEx.itemid == itemId then
if getThingFromPos({x=, y=, z=, stackpos = 252}).itemid == basinId then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It works.")
else
doPlayerSendCancel(cid, "The sword needs to be on the basin.")
end
else
doPlayerSendCancel(cid, "You need to use the speed stone on the correct sword.")
end
return true
end

Hope it works...
 
Back
Top