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

Lua HELP with Teleports or vip teleport spells

redguy

New Member
Joined
Mar 20, 2010
Messages
45
Reaction score
1
I need a set of spells that when a player buys a paper or item, than uses it on himself, it gives him a set of spells

!temple
!house
!depot
!trainers

all of these being instant telports to that place but ony can be used if u have learned the spells by useing the paper or item on themselfs

im useing crying damson 3.6 if that helps any

thank you for your time, repp + +
 
Last edited:
Make that "paper" like an scroll, or something like that.. Then, add an actions.xml script that when the scroll is used on a player, it gives the player a storage value.

Then, in spells, copy-paste whatever spell, remove the combatformula thing of the combat specifications, and, at function onCastSpell(cid, var) add your script. I think it could be, like:

Code:
if getplayerstoragevalue(cid, xxx) == 1 then
doteleportthing(cid, temple)
else
doplayersendcancel(cid, "sorry, you need to use the scroll on you, first.")
end

something like that xD
 
Back
Top