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 15:32

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

 

[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; Code: if (Control == 1) { if (MyChar.PKPoints > 99) return; MyChar.Teleport(1002, 514, 355); } } that keeps them in ...

Reply
 
Thread Tools
Old   #21
 
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   #22
 
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   #23
 
Join Date: Jun 2007
Posts: 387
Received Thanks: 64
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   #24
 
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   #25
 
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 489
Useless thread eh?
~Yuki~ is offline  
Old   #26
 
Join Date: May 2007
Posts: 1,195
Received Thanks: 455
Maybeee?
glupkotrup is offline  
Old   #27
 
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   #28
 
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   #29
 
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   #30
 
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
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 +1. The time now is 15:32.


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