Mirage Source

Free ORPG making software.
It is currently Tue Jun 04, 2024 10:01 pm

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: [BUG]Safe Zones...
PostPosted: Tue Oct 14, 2008 7:54 am 
Offline
Persistant Poster
User avatar

Joined: Thu Jul 24, 2008 6:42 am
Posts: 703
Google Talk: infectiousbyte@gmail.com
So, I nulled out the check to see if the attacker was admin, or if the victim was admin, therefore making it possible for Admins to PK and be PK'd. However, when I went to attack my other char, it said that I couldn't attack in a safe zone. I was in the default map, and I checked the properties, and there was no map moral, selected.... Any ideas?

_________________
Image
GIAKEN wrote:
Since I'm into men, not women

GIAKEN wrote:
I can't take these huge penises anymore! All that's left is shame! And blood


Top
 Profile  
 
 Post subject: Re: [BUG]Safe Zones...
PostPosted: Tue Oct 14, 2008 11:41 am 
Offline
Newbie

Joined: Mon May 12, 2008 4:54 pm
Posts: 9
teh problem is this one..
Code:
If Not Map(GetPlayerMap(Attacker)).Moral = MAP_MORAL_NONE Or GetPlayerPK(Victim) = NO Then


this will make all non-pk player cannot be attacked

replace it with this
Code:
If Not Map(GetPlayerMap(Attacker)).Moral = MAP_MORAL_NONE And GetPlayerPK(Victim) = NO Then


Top
 Profile  
 
 Post subject: Re: [BUG]Safe Zones...
PostPosted: Tue Oct 21, 2008 7:45 pm 
Offline
Persistant Poster
User avatar

Joined: Thu Mar 29, 2007 10:30 pm
Posts: 1510
Location: Virginia, USA
Google Talk: hpmccloud@gmail.com
No that's not a bug...it's suppose to be like that. If they are in a safe zone or the player they are trying to attack isn't a PKer then it says it's a safe zone. If they aren't in a safe zone and the player they are trying to attack is a PKer then continue on with the attack.

_________________
Nean wrote:
Yes harold. Give it to me.

Image
Image


Top
 Profile  
 
 Post subject: Re: [BUG]Safe Zones...
PostPosted: Tue Oct 21, 2008 7:47 pm 
Offline
Persistant Poster
User avatar

Joined: Thu Jul 24, 2008 6:42 am
Posts: 703
Google Talk: infectiousbyte@gmail.com
GIAKEN wrote:
No that's not a bug...it's suppose to be like that. If they are in a safe zone or the player they are trying to attack isn't a PKer then it says it's a safe zone. If they aren't in a safe zone and the player they are trying to attack is a PKer then continue on with the attack.


But then theres only two morals: Safe Zone, and None. In none, you should be able to attack someone... right?

_________________
Image
GIAKEN wrote:
Since I'm into men, not women

GIAKEN wrote:
I can't take these huge penises anymore! All that's left is shame! And blood


Top
 Profile  
 
 Post subject: Re: [BUG]Safe Zones...
PostPosted: Tue Oct 21, 2008 7:51 pm 
Offline
Persistant Poster
User avatar

Joined: Thu Mar 29, 2007 10:30 pm
Posts: 1510
Location: Virginia, USA
Google Talk: hpmccloud@gmail.com
Yes and that's what it does...

_________________
Nean wrote:
Yes harold. Give it to me.

Image
Image


Top
 Profile  
 
 Post subject: Re: [BUG]Safe Zones...
PostPosted: Tue Oct 21, 2008 7:58 pm 
Offline
Persistant Poster
User avatar

Joined: Thu Jul 24, 2008 6:42 am
Posts: 703
Google Talk: infectiousbyte@gmail.com
GIAKEN wrote:
Yes and that's what it does...


Yes, but in a map with no moral, you still cannot attack someone. So it's impossible to attack someone at all.

_________________
Image
GIAKEN wrote:
Since I'm into men, not women

GIAKEN wrote:
I can't take these huge penises anymore! All that's left is shame! And blood


Top
 Profile  
 
 Post subject: Re: [BUG]Safe Zones...
PostPosted: Tue Oct 21, 2008 8:13 pm 
Offline
Persistant Poster
User avatar

Joined: Thu Mar 29, 2007 10:30 pm
Posts: 1510
Location: Virginia, USA
Google Talk: hpmccloud@gmail.com
Try this:

Code:
' Check if map is attackable
    If Not Map(GetPlayerMap(Attacker)).Moral = MAP_MORAL_NONE Then
        If GetPlayerPK(Victim) = NO Then
            Call PlayerMsg(Attacker, "This is a safe zone!", BrightRed)
            Exit Function
        End If
    End If


Delete the old If statement and replace with that.

_________________
Nean wrote:
Yes harold. Give it to me.

Image
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 9 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® Forum Software © phpBB Group