It is currently Wed Dec 03, 2008 5:32 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Search and move corpses
PostPosted: Fri Mar 28, 2008 5:17 am 
Offline

Joined: Wed Aug 01, 2007 3:07 am
Posts: 48
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
 Profile  
 
 Post subject:
PostPosted: Fri Mar 28, 2008 5:21 am 
Offline
User avatar

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
 Profile  
 
 Post subject:
PostPosted: Fri Mar 28, 2008 5:42 am 
Offline

Joined: Wed Aug 01, 2007 3:07 am
Posts: 48
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
 Profile  
 
 Post subject:
PostPosted: Fri Mar 28, 2008 6:01 am 
Offline
User avatar

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
 Profile  
 
 Post subject:
PostPosted: Fri Mar 28, 2008 6:37 am 
Offline

Joined: Wed Aug 01, 2007 3:07 am
Posts: 48
Location: Brazil
thanks for the hinkt, i try this...


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 28, 2008 11:52 pm 
Offline

Joined: Wed Aug 01, 2007 3:07 am
Posts: 48
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
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 8 hours


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

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl