WhiteWolf

Member
Hello All
First I looked on the Forums for 2 weeks before I Post this Question i have 2 Questions

1) MoveToWorld( GetWorldLocation(), Map ); .....I have this on my one Script and I like to make it move to a location I want how can I?

2) Log Log = new Log();
Log.MoveToWorld( GetWorldLocation(), Map ); ..... How can I put a Delay on this?


Thank you
 
[Move Item to specific coordinates]

Log log = new Log();
Point3D loc = new Point3D(286, 774, 20);
Map map = Map.Felucca;
TimeSpan duration = TimeSpan.FromSeconds( 120 ); //delay
log.MoveToWorld(loc, map);


[Move Item to Relative Location]

Map map = this.Map;
Point3D ourLoc = GetWorldLocation();
log.MoveToWorld( new Point3D( ourLoc.X +3, ourLoc.Y +3, ourLoc.Z ), map );

[Spawn Mobile]

BaseCreature spawn;
spawn = new Daemon();
 
[Move Item to specific coordinates]

Log log = new Log();
Point3D loc = new Point3D(286, 774, 20);
Map map = Map.Felucca;
TimeSpan duration = TimeSpan.FromSeconds( 120 ); //delay
log.MoveToWorld(loc, map);


[Move Item to Relative Location]

Map map = this.Map;
Point3D ourLoc = GetWorldLocation();
log.MoveToWorld( new Point3D( ourLoc.X +3, ourLoc.Y +3, ourLoc.Z ), map );

[Spawn Mobile]

BaseCreature spawn;
spawn = new Daemon();

Thank you for Replying my post
I try your first one and give me the error

CS0136: Line 306: A local variable named 'map' cannot be declared in this scope because it would give a different meaning to 'map', which is already used in a 'parent or current' scope to denote something else

Then I try your

Map map = this.Map;
Point3D ourLoc = GetWorldLocation();
log.MoveToWorld( new Point3D( ourLoc.X +3, ourLoc.Y +3, ourLoc.Z ), map );

And it give me this Error

CS0136: Line 305: A local variable named 'map' cannot be declared in this scope because it would give a different meaning to 'map', which is already used in a 'parent or current' scope to denote something else
CS0120: Line 307: An object reference is required for the non-static field, method, or property 'Server.Item.MoveToWorld(Server.Point3D, Server.Map)'

Thank you for helping me on this
 
post your entire script.

CS0120: Line 307: An object reference is required for the non-static field, method, or property 'Server.Item.MoveToWorld(Server.Point3D, Server.Map)'
Log log = new Log();
 
Last edited:

Active Shards

Donations

Total amount
$50.00
Goal
$1,000.00
Back