no looting zone
no looting zone
some one know how i can do one arena whit one no looting zone
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
2. Look for Corpse. In distro Container 0x2006.
3. Add following line: CanRemoveScript ::noloot
4. Go to scripts/control
5. Create noloot.src
Code: Select all
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
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
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