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

Old Lost Script Does anyone have it?

Zaggyzigzig

plx itens menz
Joined
Aug 25, 2014
Messages
386
Reaction score
50
Location
Canada Ontario
I use to know of a script that you use a rune/scroll click it and it brings up a list of every town to teleport to, With a fee! Has anyone seen this script or still has it?
 
in onUse fucntion()
create a for loop for a table where you have written down all the town names as keys and value as a table.
inside the table write teleport cost and teleport position.
Example:
Code:
scrollTP = {
    ["OTLand"] = {
        cost = 10,
        pos = {x = 719, y = 758, z = 7},
    }
}
before the for loop crate a modal window and inside the for loop generate choice ID for each location.
If you don't know how to automatically generate ID's then write the choice ID to table too.
Finish the function (outside the loop) with sending the modal window to player
Now create creaturescript what with modalWindow event

Make sure you use correct MW ID and button ID to start right task.
For the choiceID loop trough your table again and if the table ID matches with choiceID then boom, teleport player to the position what tables says.

You can registrate the modal window inside the onUse but i prefer if all are preRegistered already in login script.

If you wanted full script then make thread in request section.
 
Back
Top Bottom