|
You last visited: Today at 19:23
Advertisement
Python NPC Permission
Discussion on Python NPC Permission within the CO2 Private Server forum part of the Conquer Online 2 category.
04/07/2011, 22:13
|
#1
|
elite*gold: 0
Join Date: Nov 2009
Posts: 785
Received Thanks: 422
|
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
|
|
|
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
|
|
|
04/07/2011, 23:31
|
#3
|
elite*gold: 0
Join Date: Nov 2009
Posts: 785
Received Thanks: 422
|
Quote:
Originally Posted by pro4never
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!
|
|
|
04/07/2011, 23:34
|
#4
|
elite*gold: 0
Join Date: Nov 2009
Posts: 785
Received Thanks: 422
|
One more thing,where is the Shopping Mall located in source side?
|
|
|
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)
|
|
|
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.
|
|