PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
no looting zone

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> General Help (095)
Display posts from previous:   

Author Message
th3_l00ny



Joined: 12 Mar 2006
Posts: 27

PostPosted: Sat Mar 25, 2006 12:11 pm    Post subject: no looting zone Reply with quote

some one know how i can do one arena whit one no looting zone

Author Message
qrak



Joined: 05 Feb 2006
Posts: 160
Location: Poland

PostPosted: Sat Mar 25, 2006 1:06 pm    Post subject: Reply with quote

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




Author Message
th3_l00ny



Joined: 12 Mar 2006
Posts: 27

PostPosted: Tue Apr 11, 2006 5:20 pm    Post subject: Reply with quote

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

Author Message
th3_l00ny



Joined: 12 Mar 2006
Posts: 27

PostPosted: Sun Apr 16, 2006 9:33 pm    Post subject: Reply with quote

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 -----
}

Post new topic   Reply to topic    PenUltima Online Forum Index -> General Help (095) All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty