View unanswered posts | View active topics
|
Page 1 of 1
|
[ 6 posts ] |
|
| Author |
Message |
|
westrupp
|
Post subject: Search and move corpses Posted: Fri Mar 28, 2008 5:17 am |
|
Joined: Wed Aug 01, 2007 3:07 am Posts: 47 Location: Brazil
|
This script search and print name of corpse but dont move corpse, i already tryied others sintaxes but dont work, any have ideia?
Code: foreach corpse in ListItemsNearLocationOfType( coords.x, coords.y, coords.z, 5, UOBJ_CORPSE ) PrintTextAbovePrivate( corpse, corpse.desc, character ); MoveItemToLocation(corpse, obj.x, obj.y, obj.z , MOVEITEM_FORCELOCATION); endforeach
Thanks,
Last edited by westrupp on Fri Mar 28, 2008 5:43 am, edited 1 time in total.
|
|
| Top |
|
 |
|
ncrsn
|
Post subject: Posted: Fri Mar 28, 2008 5:21 am |
|
Joined: Fri Feb 10, 2006 12:15 am Posts: 225
|
That does not make sense.
I don't know what the obj is, but try this snippet instead:
Code: foreach corpse in ListItemsNearLocationOfType( coords.x, coords.y, coords.z, 5, UOBJ_CORPSE ) PrintTextAbovePrivate( corpse, corpse.desc, character ); MoveItemToLocation(corpse, obj.x, obj.y, obj.z , MOVEITEM_FORCELOCATION); endforeach
|
|
| Top |
|
 |
|
westrupp
|
Post subject: Posted: Fri Mar 28, 2008 5:42 am |
|
Joined: Wed Aug 01, 2007 3:07 am Posts: 47 Location: Brazil
|
ncrsn wrote: That does not make sense.
I don't know what the obj is, but try this snippet instead:
I not in my home now and make this new script i forget change name of variable but already tryed this and dont work, he still dont move corpses...

|
|
| Top |
|
 |
|
ncrsn
|
Post subject: Posted: Fri Mar 28, 2008 6:01 am |
|
Joined: Fri Feb 10, 2006 12:15 am Posts: 225
|
Corpses are unmovable by default; thus.
Code: foreach corpse in ListItemsNearLocationOfType( coords.x, coords.y, coords.z, 5, UOBJ_CORPSE ) PrintTextAbovePrivate( corpse, corpse.desc, character ); corpse.movable := 1; MoveItemToLocation(corpse, obj.x, obj.y, obj.z , MOVEITEM_FORCELOCATION); corpse.movable := 0; endforeach
That should do.
|
|
| Top |
|
 |
|
westrupp
|
Post subject: Posted: Fri Mar 28, 2008 6:37 am |
|
Joined: Wed Aug 01, 2007 3:07 am Posts: 47 Location: Brazil
|
|
thanks for the hinkt, i try this...
|
|
| Top |
|
 |
|
westrupp
|
Post subject: Posted: Fri Mar 28, 2008 11:52 pm |
|
Joined: Wed Aug 01, 2007 3:07 am Posts: 47 Location: Brazil
|
ncrsn wrote: Corpses are unmovable by default; thus. Code: foreach corpse in ListItemsNearLocationOfType( coords.x, coords.y, coords.z, 5, UOBJ_CORPSE ) PrintTextAbovePrivate( corpse, corpse.desc, character ); corpse.movable := 1; MoveItemToLocation(corpse, obj.x, obj.y, obj.z , MOVEITEM_FORCELOCATION); corpse.movable := 0; endforeach
That should do.
this work perfect, thanks...
any idea how equip items from corpse?
|
|
| Top |
|
 |
|
Page 1 of 1
|
[ 6 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 0 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|

|