ID:262371
 
Code:
obj
bukujutsu_3
name="Bukujutsu (Fast Flying)"
tech=1
verb
bukujutsu()
set name = "Bukujutsu (Fast Flying)"
set category = "Fighting"
if(usr.meditate==1)usr<<"<b>Not while meditating."
if(usr.rest==1)usr<<"<b>Not while Resting."
if(usr.spar==1)usr<<"<b>Not while sparring."
if(usr.training==1)usr<<"<b>Not while Training."
if(usr.spar==0&&usr.meditate==0&&usr.rest==0&&usr.training==0)
if(usr.flight == 1)
usr.density=0
usr.icon_state="buku"
if(usr.dir == EAST)
usr.loc = locate(usr.x+2,usr.y,usr.z)
if(usr.dir == WEST)
usr.loc = locate(usr.x-2,usr.y,usr.z)
if(usr.dir == NORTH)
usr.loc = locate(usr.x,usr.y+2,usr.z)
if(usr.dir == SOUTH)
usr.loc = locate(usr.x,usr.y-2,usr.z)


Problem description:

Ok, there is what i want to hapeen is when you fly you dash 2 space ahead, which ever diretcion your at, but instaed you dash for 2 step ahead when you click it and then you fly normal.
I think you need the:

if(usr.flight == 1)


to be

if(usr.flight==0)


But I'm not exactly sure what your asking.

Are there any errors, Warnings you get?

Maybe Runtime Errors.

List anything that may be a help to us.

In response to Crzylme
no sorry no error or nothing that all i have, can somelse help me please
In response to Crzylme
Crzylme, Stop right there. You are teaching this guy bad programming practices.

He should be using if(!var) and if(var) here.

~>Jiskuha
That's because you set it up as a verb. The "fast" moving action will only happen when the user presses the verb. What you can to do is make some sort of a "fast flying" variable, and in the client/direction procedures do the work there. Also, keep in mind, you need to check to make sure they don't go where they aren't supposed to.
In response to SSJ2GohanDBGT
obj
bukujutsu_3
name="Bukujutsu (Fast Flying)"
tech=1
verb
bukujutsu()
set name = "Bukujutsu (Fast Flying)"
set category = "Fighting"
if(usr.meditate==1)usr<<"<b>Not while meditating."
if(usr.rest==1)usr<<"<b>Not while Resting."
if(usr.spar==1)usr<<"<b>Not while sparring."
if(usr.training==1)usr<<"<b>Not while Training."
if(usr.spar==0&&usr.meditate==0&&usr.rest==0&&usr.training==0)
if(usr.flight == 1)
usr.density=0
usr.icon_state="buku"
usr.Fast()

mob
proc
Fast()
while(usr.flight == 1)
if(usr.dir == EAST)
usr.loc = locate(usr.x+2,usr.y,usr.z)
if(usr.dir == WEST)
usr.loc = locate(usr.x-2,usr.y,usr.z)
if(usr.dir == NORTH)
usr.loc = locate(usr.x,usr.y+2,usr.z)
if(usr.dir == SOUTH)
usr.loc = locate(usr.x,usr.y-2,usr.z)
usr.Fast()

Is it something like this.
But it still doesn't work can someone help me please.
O sorry i took so long to write back i been really busy over the pass week
In response to Sayian Hunter
You have usr abuse in your proc, and your tags don't break off. So, I would guess you were using Zeta coding, because it is just completely filled with usr abuse.

So, don't use Zeta, if you are do it all over yourself it will be worth it.
In response to Sayian Hunter
Yes I can since I recently did this.
You need to set a variable to Fast_Buku for a mob. Then
mob
Move()
..()
if(src.Fast_Buku)
if(src.dir==NORTH)
step(src,NORTH)

Of cource, you will need to do the other directions also.

- ITG
In response to ITG Master
ITG Master wrote:
Yes I can since I recently did this.
You need to set a variable to Fast_Buku for a mob. Then
> mob
> Move()
> ..()
> if(src.Fast_Buku)
> if(src.dir==NORTH)
> step(src,NORTH)
>

Of cource, you will need to do the other directions also.

- ITG


Or just:

mob
Move()
..()
if(src.whatever)
step(src,src.dir)