It is currently Fri Dec 05, 2008 12:53 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: no looting zone
PostPosted: Sat Mar 25, 2006 8:11 am 
Offline

Joined: Sun Mar 12, 2006 1:32 pm
Posts: 27
some one know how i can do one arena whit one no looting zone

_________________
th3_l00ny


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 25, 2006 9:06 am 
Offline

Joined: Sun Feb 05, 2006 4:35 pm
Posts: 162
Location: Poland
1. Open itemdesc.cfg in config.
2. Look for Corpse. In distro Container 0x2006.
3. Add following line: CanRemoveScript ::noloot
4. Go to scripts/control
5. Create noloot.src

Code:
use uo;


program noloot( who, corpse, item )

var serial := cint(GetObjProperty(corpse, "serial"));
var komp := getobjproperty(corpse, "npctemplate");

if( serial == who.serial )
        return 1;   

elseif(komp) //is npctemplate ?
        return 1;

elseif(corpse.x >= 900 && corpse.y >= 444 && corpse.x<=1084 && corpse.y<=596 ) // replace integers with your x1, y1, x2, y2 location here.

        SendSysMessage(who, "Restricted Area! Can't loot!",3,40);
        return 0;
else

return 1;
endif




endprogram




_________________
Shutdown();


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 11, 2006 1:20 pm 
Offline

Joined: Sun Mar 12, 2006 1:32 pm
Posts: 27
hummm i have looking 3 time and he dont have container whit the name corspe ....

and the location x1 x2 y1 y2 i find this whi command .where ? that gave
-5391,1151,0
-5391,1109,0
-5422,1109,0
-5422,1125,0
*for the sripte abote the noloot.src*
heu the player can loot is corsp ''the dead player''? is a question

_________________
th3_l00ny


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 16, 2006 5:33 pm 
Offline

Joined: Sun Mar 12, 2006 1:32 pm
Posts: 27
how i can fin the location x1 x2 y1 y2 ???for place a no looting zone !!

and in the scripte itemdesc.cfg i dont got the conteiner 0x2006 and no corpse container

{
Name Corpse
MaxItems ---
Gump ---
MinX ---
MaxX ----
MinY ----
MaxY ----
RequiresAttention ----
DestroyScript -----
}

_________________
th3_l00ny


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 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