PenUltima Online

It is currently Sun Sep 07, 2008 3:09 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: NO DMG ZONE
PostPosted: Tue Aug 07, 2007 12:02 pm 
Offline

Joined: Wed Aug 01, 2007 3:07 am
Posts: 47
Location: Brazil
how create no-dmg zone? where i need change?

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 08, 2007 1:37 am 
Offline

Joined: Thu Feb 02, 2006 8:33 am
Posts: 276
If you mean a no combat area, you can simply edit the regions.cfg file.
E.g.:
Code:
Region anyname
{
    Range       x1 y1 x2 y2
    Guarded     0
    NoCombat    1
    EnterText   You have entered the area of anyname
    LeaveText   You have left the the area of anyname
    midi        22
    Realm      britannia
}


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 10, 2007 9:50 am 
Offline

Joined: Wed Aug 01, 2007 3:07 am
Posts: 47
Location: Brazil
this work in pol093?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 10, 2007 12:27 pm 
Offline

Joined: Thu Feb 02, 2006 8:33 am
Posts: 276
If you take a look into the corechanges: No it don't work in pol93 :D
You should update to a more recent version like 96 or 97 :)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 24, 2008 5:20 am 
Offline

Joined: Wed Aug 01, 2007 3:07 am
Posts: 47
Location: Brazil
i maked cmd .nodmgareas to set no dmg zone to this i need edit i think more then 8 script but i maked :razz: in pol095


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 24, 2008 11:45 am 
Offline
User avatar

Joined: Fri Dec 28, 2007 11:19 pm
Posts: 91
Location: Montreal, Canada
If I understand well your plans, you'll need to verify your primary spell starter. That means the file that will initialize a spell and add an entry as if player is in this area there is no dmg. Then you'll need to open your combat starter (the file used to assign a hitscript or even the melee dmg) and add the above command lines to your script.

Exemple:

//That is used as a check
Code:
If(IsInThisArea(mobile))
SendSysMessage(mobile, "Damage is not allowed in this part of the World");
return;
Endif


The Function
Code:
Function IsInThisArea( who ) //You can name it as you want

   // Minoc Mine rectangle locations
   if( who.x >= 2554 ) //Minimum X
      if( who.x <2594>= 503 ) //Maximum Y
            if( who.y <= 442 ) //Minimum Y
               return 1;
            endif
         endif
      endif
   else
      return 0;
   endif
EndFunction


Of course, you'll need to add a check for everything that apply a dammage. That's why it would be much easier for you using a specific function to apply the dammage that would be used by every system that would apply dmg... and then you add a simple check. Thank you Distro097. ;)

_________________
Image
FantasiaShard.com


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