[Guide]Remove GM protction-send blackname to jail

09/11/2008 06:06 elragal_30#16
Quote:
Originally Posted by glupkotrup View Post
Well basically yes, but you should do some editing first... When you got killed you are being sent to Jail, but you can leave it when you have 100+ pkp (Black named). Also I got request where players want to pay dbs to get out of jail, so actually you can add a NPC which will ask you for X CPs or X DBs to let you go out of jail (working similar like conductress but requires items or cps for it). And I think there should be rewards for those who'll capture black named players, so they code have a motive to kill them (or it will be pointless killing them)
ok ty fro advice
i don't make npc because some have this npc already on them sources ,so they will start flam and say that i just copied it
but i'll make one soon after i finish my Pc problems
i will also make it reuqire some money or CPs to let u out
and i plan to make let out every xx:00 or xx:30 if u go to jail on GW (Like CO lol)
about drop gears idk about it ,but i'll try
ty all
09/11/2008 21:35 glupkotrup#17
No problem and if they flame you, they would be wrong. Coz' you didn't copied it... You just made on of your own with your own unique idea! And I think there isn't a server with that NPC... :p Also I've made a test NPC which give you a use of /clearpkp (clear your pk points) and made an item which will be dropped from monsters with 0.08 drop rate... When you have that item you can click on the NPC and she'll delete your pkps...
09/11/2008 21:49 calisme4ever#18
Can someone plz explain to me in english what hes trying to help us do? o.o
09/11/2008 21:54 glupkotrup#19
He made a guide "How to make black named players when killed go to jail instead of reviving in the same city..."... Is that simple enough? :D
09/12/2008 01:02 iono1234#20
Quote:
Originally Posted by pegaeu View Post
the players leaves the NPC how i fix it?...
if (CurrentNPC == 104801)
{

if (Control == 1)
{
if (MyChar.LocMap == 6000 && MyChar.PKPoints > 99)
{
MyChar.Teleport(1002, 514, 355);
}
}
}
and, the players die in jail when they are taken again get jail ..:(
Code:
if (Control == 1)
                            {
                                if (MyChar.PKPoints > 99)
                                    return;
                                MyChar.Teleport(1002, 514, 355);
                            }
                        }
that keeps them in jail
09/18/2008 20:29 elragal_30#21
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
09/19/2008 09:42 luiskp#22
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
09/19/2008 09:52 taguro#23
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?
09/19/2008 15:35 glupkotrup#24
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 :p
09/19/2008 15:45 ~Yuki~#25
Useless thread eh?
09/19/2008 15:53 glupkotrup#26
Maybeee? :p
09/19/2008 18:40 elragal_30#27
@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
09/19/2008 23:34 tao4229#28
@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...
09/20/2008 11:32 glupkotrup#29
Yeah and without the "return" actually the code won't work :rolleyes:
10/29/2008 21:41 artiman#30
[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. Click Here To Register...]
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?