Anyone wanna mess w/ a jail NPC code (Text based on real CO)
I got it to work but i wanna make it so if you do link 1 if you have 100 pkp or above it will say I cannot let you out. You are black name. and if you do link 7 if your below 100 pkp or dont have enough money it will say w/e
I did it myself you just gotta do
}
else
{
blablabla
but it messed up link 2.. which is that discount crap so if anyone fix it thanks
Code:
case 42:// Warden (Out of jail)
{
if (LinkBack == 0)
{
Text("Lucky for you, the player who killed you is willing to drop the murder charges if", CSocket);
Text(" you pay him according to what you did. Lucky for you, the player who killed you", CSocket);
Text(" is willing to drop the murder charges if you pay him 500,000 silvers.", CSocket);
Link("Ok! Let me get out from here!", 1, CSocket);
Link("Any chance of a discount?", 2, CSocket);
Link("I would rather rot in hell!", 255, CSocket);
End(CSocket);
}
else if (LinkBack == 1)
{
if (CSocket.Client.PkPoints <= 99)
{
Teleport(1002, 518, 356, 0, CSocket);
}
}
else if (LinkBack == 2)
{
Text("The red name, whose PK Points are 30-99 can leave here without any price.", CSocket);
Text(" The black name, whose PK Points are 100 or above, should pay 500,000 as recognizance", CSocket);
Text(" to leave here.", CSocket);
Link("Ok, I will pay.", 7, CSocket);
Link("I would rather stay here.", 255, CSocket);
End(CSocket);
}
else if (LinkBack == 7)
{
if (CSocket.Client.PkPoints > 99)
if (CSocket.Client.Money >= 500000)
{
Teleport(1002, 518, 356, 0, CSocket);
Money(-500000, CSocket);
}
}
break;
}
I did it myself you just gotta do
}
else
{
blablabla
but it messed up link 2.. which is that discount crap so if anyone fix it thanks