ID:271629
 
How could i make it so a player can cast a spell, and once cast they can click any object and then drag and drop it anywhere? Also i will need a way to make some objects impossible to drag, thanks :D
Lt. Pain wrote:
How could i make it so a player can cast a spell, and once cast they can click any object and then drag and drop it anywhere? Also i will need a way to make some objects impossible to drag, thanks :D

well the way id go about doing this is a make a verb so that the can move the stuff.
mob/spell/verb/ROFLTHISISSOOOOEZ
set name="Telekenisis"
usr.moves_stuff=1
usr<<"Brains!"

Next you go to the Mouse_Down proc
atom/movable/MouseDrop(over_object,src_location,over_location)
if(src.moves_stuff)
if(over_object.moves)
over_object.loc=src_location

src.moves_stuff=0

im doing this fast so there may be an error with the last bit

**Edit i forgot to add the check if it moves.
In response to Tubutas
Tubutas wrote:
mob/spell/verb/ROFLTHISISSOOOOEZ

Dude, don't include leetspeak gibberish in code help you give people. It's annoying and helps no one.

Lummox JR
In response to Lummox JR
can you do it again but right XD