Register for your free account! | Forgot your password?

You last visited: Today at 19:23

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Python NPC Permission

Discussion on Python NPC Permission within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
F i n c h i's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 785
Received Thanks: 422
Question Python NPC Permission

Does anyone know how to add permission to this NPC,I want it to work only if you are a GM / PM.
I've tried (Client.Permission < 3) but It doesn't work.

Code:
def npc(Client, Option):
    if(Option == 0):        
        Text("I Can Send You To The GM Map Only If You Are A GM / PM")        
        Link("Sure!", 1)
        Link("Nope!", 255)
        Finish()
    if(Option == 1):
        Teleport(32, 33, 1098, Client)
    return 0
F i n c h i is offline  
Old 04/07/2011, 23:18   #2
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
well that would be UNDER 3 (so 1 or 2 meaning normal player)


Should be....

Code:
 def npc(Client, Option):
    if(Option == 0):        
        Text("I Can Send You To The GM Map Only If You Are A GM / PM")        
        Link("Sure!", 1)
        Link("Nope!", 255)
        Finish()
    if(Option == 1 and Client.Permission > 2):
        Teleport(32, 33, 1098, Client)
    return 0
pro4never is offline  
Thanks
1 User
Old 04/07/2011, 23:31   #3
 
F i n c h i's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 785
Received Thanks: 422
Talking

Quote:
Originally Posted by pro4never View Post
well that would be UNDER 3 (so 1 or 2 meaning normal player)


Should be....

Code:
 def npc(Client, Option):
    if(Option == 0):        
        Text("I Can Send You To The GM Map Only If You Are A GM / PM")        
        Link("Sure!", 1)
        Link("Nope!", 255)
        Finish()
    if(Option == 1 and Client.Permission > 2):
        Teleport(32, 33, 1098, Client)
    return 0
Thank you,It worked!
F i n c h i is offline  
Old 04/07/2011, 23:34   #4
 
F i n c h i's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 785
Received Thanks: 422
One more thing,where is the Shopping Mall located in source side?
F i n c h i is offline  
Old 04/07/2011, 23:46   #5
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Shopping mall is just a normal shop. Keep in mind right now NOTHING related to shops are checked (IE: check the price from shop.dat and that it exists before selling. Right now it just reads from the packet which is.. bullshit)
pro4never is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Permission set for Enter MAP
01/19/2011 - EO PServer Hosting - 5 Replies
Hello, I would like to set for a certain map access rights. I know I can define a level set lower or higher than, ep, pp or gold demand. How it looks with set Potency or Pets in * would go, too? Example: For enter the Map u must have level 255 and 2x 250* pets.
permission denied
02/06/2010 - Metin2 Private Server - 6 Replies
Hallu ._. Wenn ich einem verzeichniss chmod 777 geben will dann kommt das: Gruß, -Sky.
Permission Denied.
12/10/2009 - Metin2 Private Server - 9 Replies
Wenn ich "make.sh" ausführen möchte, erscheint mitlerweile bei jeder neuen Quest Permission Denied. Allgemein meine Quests InGame sind weg o.o Warum?



All times are GMT +1. The time now is 19:24.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.