Mirage Source

Free ORPG making software.
It is currently Thu May 23, 2024 11:02 am

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: [BUG]Admin Vs. Admin
PostPosted: Thu Oct 16, 2008 5:26 am 
Offline
Persistant Poster
User avatar

Joined: Thu Jul 24, 2008 6:42 am
Posts: 703
Google Talk: infectiousbyte@gmail.com
So, when I try to attack another Admin, it says "You cannot attack him, for thou art an Admin", however it still does the damage to him. It does the same, if the other char has no access. I checked out the:
Code:
    ' Check to make sure that they dont have access
    If GetPlayerAccess(Attacker) > ADMIN_MONITOR Then
        Call PlayerMsg(Attacker, "You cannot attack any player for thou art an admin!", BrightBlue)
        Exit Function
    End If
, and I see no problems....

_________________
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]Admin Vs. Admin
PostPosted: Thu Oct 16, 2008 5:54 am 
Offline
Persistant Poster
User avatar

Joined: Tue May 30, 2006 2:07 am
Posts: 836
Location: Nashville, Tennessee, USA
Google Talk: rs.ruggles@gmail.com
Try adding CanAttack = False before the exit function...Not sure if that's the problem but its the first thing that came to mind

_________________
I'm on Facebook! Google Plus My Youtube Channel My Steam Profile

Image


Top
 Profile  
 
 Post subject: Re: [BUG]Admin Vs. Admin
PostPosted: Thu Oct 16, 2008 7:15 am 
Offline
Pro

Joined: Sat Jun 03, 2006 8:32 pm
Posts: 415
Nean wrote:
So, when I try to attack another Admin, it says "You cannot attack him, for thou art an Admin", however it still does the damage to him. It does the same, if the other char has no access. I checked out the:
Code:
    ' Check to make sure that they dont have access
    If GetPlayerAccess(Attacker) > ADMIN_MONITOR Then
        Call PlayerMsg(Attacker, "You cannot attack any player for thou art an admin!", BrightBlue)
        Exit Function
    End If
, and I see no problems....


Read that code and what it says

You can not attack anyone else cause though art an admin

That means you cant attack anyone else because you are an admin. So remove that if you want to kill helpless people

if you want so as an admin you cant be attacked change to...

well you gotta see if attacker is =< ADMIN_MONITOR and then see if person being attacked is >

that way admins can attack anyone but if your below admin you cant attack admins

_________________
OREH
http://www.flawsin.com/oreh
Image


Top
 Profile  
 
 Post subject: Re: [BUG]Admin Vs. Admin
PostPosted: Thu Oct 16, 2008 7:36 am 
Offline
Persistant Poster
User avatar

Joined: Thu Jul 24, 2008 6:42 am
Posts: 703
Google Talk: infectiousbyte@gmail.com
Sonire wrote:
Try adding CanAttack = False before the exit function...Not sure if that's the problem but its the first thing that came to mind


It was CanAttackPlayer, but thanks a lot dude. That worked perfectly.

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

All times are UTC


Who is online

Users browsing this forum: No registered users and 5 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