Jump to content

Question

2 answers to this question

Recommended Posts

  • 0
Posted
Index: data/scripts/handlers/bypasshandlers/OlympiadManagerLink.java
===================================================================
--- data/scripts/handlers/bypasshandlers/OlympiadManagerLink.java	(revision 8230)
+++ data/scripts/handlers/bypasshandlers/OlympiadManagerLink.java	(working copy)
@@ -124,10 +124,16 @@
						activeChar.sendPacket(html);
						break;
					case 4:
-						OlympiadManager.getInstance().registerNoble(activeChar, CompetitionType.NON_CLASSED);
+						if(activeChar.getPvpKills() >= 100)
+							OlympiadManager.getInstance().registerNoble(activeChar, CompetitionType.NON_CLASSED);
+						else
+							activeChar.sendMessage("You need "+(100 - activeChar.getPvpKills())+" Pvp's to register in Olympiad");
						break;
					case 5:
-						OlympiadManager.getInstance().registerNoble(activeChar, CompetitionType.CLASSED);
+						if(activeChar.getPvpKills() >= 100)
+							OlympiadManager.getInstance().registerNoble(activeChar, CompetitionType.CLASSED);
+						else
+							activeChar.sendMessage("You need "+(100 - activeChar.getPvpKills())+" Pvp's to register in Olympiad");
						break;
					case 6:
						passes = Olympiad.getInstance().getNoblessePasses(activeChar, false);
@@ -174,7 +180,10 @@
						}
						break;
					case 11:
-						OlympiadManager.getInstance().registerNoble(activeChar, CompetitionType.TEAMS);
+						if(activeChar.getPvpKills() >= 100)
+							OlympiadManager.getInstance().registerNoble(activeChar, CompetitionType.TEAMS);
+						else
+							activeChar.sendMessage("You need "+(100 - activeChar.getPvpKills())+" Pvp's to register in Olympiad");
						break;
					default:
						_log.warning("Olympiad System: Couldnt send packet for request " + val);

  • 0
Posted

if(activeChar.getPvpKills() >= 100)

 

 

So i guess that is the secret for that.

 

If i want to do the same with shops i mean to have 1+ Pvp what i suppose to do?

 

+ if(activeChar.getPvpKills() >= 1)

 

And put it on gm shop's code?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock