ID:179252
 
I have a house on a map. I have a door how do i make it so that when you step on the door you warp to the inn or somthing the link about warping is broken and I cant find any other ones
im not sure if this is what u want

turf/door
icon='door.dmi'
Entered()
usr.loc=locate(x,y,z)
In response to Soccerguy13
YES THANK YOU
In response to Soccerguy13
Where do I pub where I want to warp? and how do I make the edvent start?
In response to Chrishero
do u still need above
In response to Soccerguy13
What?
In response to Chrishero
Chrishero wrote:
Where do I pub where I want to warp? and how do I make the edvent start?

You change x,y,z to the location on the map you want the mob to go to.In numbers.
In response to SSJ4_Gohan_Majin
How do I make it start when they walk on the door?
In response to Chrishero
Whats the location on the door?Ill re-do the code for you.Whats the location on the door?
In response to Chrishero
majin look down(can u answer that)
In response to SSJ4_Gohan_Majin
9,8,1
and I want it to warp to TOWN1PUB.DMP
In response to Chrishero
Oh,ok,whats the location for the begging of the town sorry.
In response to SSJ4_Gohan_Majin
Where I want it to warp to is TOWN1PUB.DMP and where I want that to go is at 29,20,1

The location of the door is at 9,8,1
In response to Chrishero
Chrishero wrote:
Where I want it to warp to is TOWN1PUB.DMP and where I want that to go is at 29,20,1

The location of the door is at 9,8,1

Ok,heres the code:

turf/door
icon='door.dmi'
Entered()
usr.locate=(29,20,1)

I hope that solves your problem.
~~~SSJ4_Gohan_Majin

In response to SSJ4_Gohan_Majin
WHen I include it it says

SAoilder Talk.dm:4:error:usr.locate:undefined var

Quest Of The Dragon Online.dmb - 1 error, 0 warnings (double-click on an error to jump to it)
In response to Chrishero
tru usr.loc=locate
In response to Chrishero
Chrishero wrote:
WHen I include it it says

SAoilder Talk.dm:4:error:usr.locate:undefined var

Quest Of The Dragon Online.dmb - 1 error, 0 warnings (double-click on an error to jump to it)

Try this:
turf/door
     icon='door.dmi'
     Entered()
          usr.loc = locate(29,20,1)

In response to Chrishero
Chrishero wrote:
WHen I include it it says

SAoilder Talk.dm:4:error:usr.locate:undefined var

Quest Of The Dragon Online.dmb - 1 error, 0 warnings (double-click on an error to jump to it)

It think i know tat,Heres a re-do code:



turf/door
      icon='door.dmi'
      Entered()
      usr.loc = locate(29,20,1)

There.I perfectly fixed the code,its a perfect code as long as you have a map or location will be a bad var.



As you see i added locate next to loc.
Hopefully it solves your prob,if its the same error siwtch loc and locate around.
~~~~~SSJ4_Gohan_Majin
In response to SSJ4_Gohan_Majin
You need to learn how to indent properly.
Chrishero wrote:
I have a house on a map. I have a door how do i make it so that when you step on the door you warp to the inn or somthing the link about warping is broken and I cant find any other ones

i dont know if anyone else pointed this out, so ill just take a shot.

Teleport.

Spelling isnt a big deal, i just thought i would let you know how to spell it correctly! =P

FIREking
Page: 1 2