Code:
case 104839: // BoxerLi PC- TG teleporter { if (LinkBack == 0) { Text("If you are level 20 or above, you may train ub the training ground. Would you like me to teleport you there for 1000 silver.", CSocket); Link("Yes, please.", 1, CSocket); Link("No Thanks.", 255, CSocket); End(CSocket); } else if (LinkBack == 1) { Text("In the training ground, you will not lose any HP or MP. And no items nordurability will be consumed.", CSocket); Link("Please teleport me there.", 2, CSocket); Link("No, I changed my mind.", 255, CSocket); End(CSocket); } else if (LinkBack == 2) { if (CSocket.Client.Money >= 1000) { Teleport(1039, 219, 215, 0, CSocket); Money(-1000, CSocket); } else { Text("Sorry, you do not have 1000 silver.", CSocket); Link("I see.", 255, CSocket); End(CSocket); } } break; }
Code:
case 10021: // ArenaGuard { if (LinkBack == 0) { Text("The arena is open. Welcome to challenge olther people. The admission fee is only 50 silver.If you are in the arena, you will not gain or lose any experience or items equipped, and will get revived at the place you die.The kungfu circle is very dangerous, I suggest you PK in area.", CSocket); Link("Enter the arena.", 1, CSocket); Link("Just passing by.", 255, CSocket); End(CSocket); } else if (LinkBack == 1) { if (CSocket.Client.Money >= 50) { Teleport(1005, 051, 068, 0, CSocket); Money(-50, CSocket); } else { Text("Sorry, you do not have 50 silver.", CSocket); Link("I see.", 255, CSocket); End(CSocket); } } break; }