Not a member yet? Register for your free account!


Go Back   elitepvpers > Conquer Online 2 > CO2 PServer - Discussions / Questions > CO2 PServer Guides & Releases
You last visited: Today at 13:11

  • Did you know? elitepvpers has its own image host, epvpimg.com.

 

[Guide]Remove GM protction-send blackname to jail

This is a discussion on [Guide]Remove GM protction-send blackname to jail within the CO2 PServer Guides & Releases forum part of the CO2 PServer - Discussions / Questions category; Originally Posted by iono1234 Code: if (Control == 1) { if (MyChar.PKPoints > 99) return; MyChar.Teleport(1002, 514, 355); } } ...

Reply
 
Thread Tools
Old 09-18-2008, 20:29   #21
Senior Member
 
Join Date: Oct 2007
Posts: 120
Received Thanks: 24

Quote:
Originally Posted by iono1234 View Post
Code:
if (Control == 1)
                            {
                                if (MyChar.PKPoints > 99)
                                    return;
                                MyChar.Teleport(1002, 514, 355);
                            }
                        }
that keeps them in jail
sorry all for this bug that make u die again in jail
1- i edit it now and it is Work
but you must rechange all codes again and change 99 or 100 with 29

2- add Npc Jail that let you away if you r less than 29 pkp
or if you are red name u pay 4 kk or Black pay 54 Cps
elragal_30 is offline  
Thanks
1 User
QQpenguin (10-27-2011)
 
Old 09-19-2008, 09:42   #22
Junior Member
 
Join Date: Jul 2008
Posts: 13
Received Thanks: 9
Quote:
Originally Posted by elragal_30 View Post
sorry all for this bug that make u die again in jail
1- i edit it now and it is Work
but you must rechange all codes again and change 99 or 100 with 29

2- add Npc Jail that let you away if you r less than 29 pkp
or if you are red name u pay 4 kk or Black pay 54 Cps
Quote:
Originally Posted by iono1234 View Post
Code:
if (Control == 1)
                            {
                                if (MyChar.PKPoints > 99)
                                    return;
                                MyChar.Teleport(1002, 514, 355);
                            }
                        }
that keeps them in jail
Code:
if (Control == 1)
                            {
                                 if (MyChar.PKPoints > 99)
                                    return;
                                MyChar.Teleport(1002, 514, 355);
                            }
                        }
it should be like this

Code:
if (Control == 1)
                            {
                                if (MyChar.PKPoints [B]<[/B] 100)
                                    return;
                                MyChar.Teleport(1002, 514, 355);
                            }
                        }
that means if pkp are LOWER than 100 char can leave jail
btw , i dont think "return" is needed lol
luiskp is offline  
Thanks
1 User
QQpenguin (10-27-2011)
Old 09-19-2008, 09:52   #23
I think therefore I am...
 
Join Date: Jun 2007
Posts: 387
Received Thanks: 64
Blog Entries: 1
Quote:
Originally Posted by luiskp View Post
that means if pkp are LOWER than 100 char can leave jail btw , i dont think "return" is needed lol
Then why did you put it in?
taguro is offline  
Thanks
1 User
QQpenguin (10-27-2011)
Old 09-19-2008, 15:35   #24
VixxA - PS Maniac
 
Join Date: May 2007
Posts: 1,195
Received Thanks: 455
Haha lol... Also I made a quest which will give you an item that can delete your pkps (using /clearpkp)... Many of the testers like it
glupkotrup is offline  
Old 09-19-2008, 15:45   #25
Banned
 
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 489
Blog Entries: 7
Useless thread eh?
~Yuki~ is offline  
Old 09-19-2008, 15:53   #26
VixxA - PS Maniac
 
Join Date: May 2007
Posts: 1,195
Received Thanks: 455
Maybeee?
glupkotrup is offline  
Old 09-19-2008, 18:40   #27
Senior Member
 
Join Date: Oct 2007
Posts: 120
Received Thanks: 24
@luiskp
it is not my code ,it is some one request it and i just try to help him
but look at my code i don't use this
@ glupkotrup
good i'll search for your post
but why you don't make this with PK Amulet
2- about make it lost equip and about reward :
i make it pay 4 kk if red name or 54 Cps for Black name
but i can't get the killer name to record it
so can u tell me where i can get red,balck name's killer when they kill ???
and about Unequipped i try it now
but about lose inventory items i search it alot
may be because i still 18 hrs on editing so wait me
elragal_30 is offline  
Thanks
1 User
QQpenguin (10-27-2011)
Old 09-19-2008, 23:34   #28
Banned
 
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 153
@luispk or whatever;

The code is like this if Your PKP are GREATER THAN 99, it returns and calls no more functions. Thats what "return" does...
tao4229 is offline  
Thanks
1 User
QQpenguin (10-27-2011)
Old 09-20-2008, 11:32   #29
VixxA - PS Maniac
 
Join Date: May 2007
Posts: 1,195
Received Thanks: 455
Yeah and without the "return" actually the code won't work
glupkotrup is offline  
Thanks
1 User
QQpenguin (10-27-2011)
Old 10-29-2008, 21:41   #30
Junior Member
 
Join Date: Oct 2008
Posts: 1
Received Thanks: 1
[quote=elragal_30;1416754]# Update 1
Fix dieing into jail again - add message has killed by xx

#Update 2
1-Add NPC To jail to let u out for 4kk or 54 Cps
2- Change points from 99 to 29(you must change code again)


hi
it is first help i make here
plz don't flam , i just send for some newbies that don't know(I'm also noob lol)
and I'm don't take from any one i just make it
and Hint for all beginners don't aim to publish source on line quickly ,but try to learn C# and practice for make any thing yourself
it works for me at shadow server
lets go

First : How to remove GM protection on guards :

Go to "entities.cs" go to line 334
u should find some thing like that :

u may delete it or put protection on type u want
(i just know Status ==8 >> GM / 7 >>>PM )
sorry i'm just starter ,so if u have some thing best tell here for all

Second : How to Make Black Name Send to jail on (Now Working on die so u can't revive him with skill or command):

1-go to "character.cs" go to Line 827 or Search for

add

2-go to "Character.cs" go to Line 795 (Press Ctrl+G):
or search for
[quote]if (Tele)
{
foreach (ushort[] revp in DataBase.RevPoints)
{
Quote:
after " { "

and before
add

**Adding Jail NPC

go to ur [Only registered and activated users can see links. ]
then go to conquer database >> Table >> Npc
Click Insert and fill fields as follow :


then go to Your Source >>> Client.Cs
Go to NPC Section>>
and Search for
after it add this :


then search for

After it add


Wait for update to make money go to killer


Now To Prevent using city Scrolls to use in Jail (ty For @tao4229 for remind me) :
go to Character.cs and search for (Near Line 2808)



and exchange with this Code (Make Backup for character.Cs be4 changing it) :


and now if u want also prevent using "/Scroll " command into jail
go To Client.Cs and Search for

and exchange with :

sorry I'm just starter ,so if u have some thing best tell here for all
i hope it work for all ,and i will give more soon as i make new
press thanks if u see it is good


hey say when the guide remove qeu there and put it down or add another?

because I did what the guide said, and anyway I am 118 pk in black and not send me to jail?
artiman is offline  
Thanks
1 User
QQpenguin (10-27-2011)
Reply

 

Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to ban/send to bot jail with gm commands Sohaib[GM] CO2 PServer - Discussions / Questions 4 07-13-2010 18:40
Question on blackname and jail WHITELIONX CO2 PServer - Discussions / Questions 9 12-14-2009 21:10
[HELP]PK Points in jail and arena remove? How? Fish* CO2 PServer - Discussions / Questions 7 10-18-2009 07:08
Guide to help [New Server Owners] fix bot jail! mama020153 Zero 3 08-22-2009 08:47
[Help]Send To Jail On Death DragonStar CO2 PServer - Discussions / Questions 7 09-07-2008 22:11



All times are GMT +2. The time now is 13:11.


Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.