Jump to content
  • 0

Psaxnw 1 Entolh...


MrBlack

Question

Paides....Eimai GM k 8elw na brw 1 entolh gia na mporesw na doso Points sthn olympiada....Den 3erw pws...alla m exoun pei oti ginetai...3erei kaneis?? P.x. exw 1 char noblesse...k 8elw na t doso 400 points gia na bgei hero....Iparxei tpt....Ty :)

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0

Loipon Auto ginete mesa apo to navicat

 

Kapou mesa exei ena table Olympiad Nobles anixe to kai vres to name tou char sou lei apo dipla einai na valis t points kai dipla tis simetoxes kaneis kai ena safe kai eisai ok

 

Ysterogrago nmzo oti eprepe na to valis request dev help ....

Link to comment
Share on other sites

  • 0

Από ingame δεν γίνεται...Μόνο ο admin μπορεί να δώσει ή αν έχεις πρόσβαση στην database του server.

Link to comment
Share on other sites

  • 0

UNTESTED

/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
*
* [url]http://www.gnu.org/copyleft/gpl.html[/url]
*/
package net.sf.l2j.gameserver.handler.admincommandhandlers;

import java.sql.PreparedStatement;
import java.sql.SQLException;

import com.mysql.jdbc.Connection;

import net.sf.l2j.L2DatabaseFactory;
import net.sf.l2j.gameserver.handler.IAdminCommandHandler;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
public class AdminOlympiad implements IAdminCommandHandler {


private static final String[] ADMIN_COMMANDS = {"admin_addolypoint"};

public boolean useAdminCommand(String command, L2PcInstance activeChar) {		

if (command.startsWith("admin_addolypoint"))	
{	
	Connection Con = null;		
	try		
	{		
		Con = (Connection) L2DatabaseFactory.getInstance().getConnection();			
		PreparedStatement statement;

		statement = Con.prepareStatement("INSERT INTO olympiad_nobles (olympiad_points) VALUES (?)");

		String Val = command.substring(18);
		int PoVal = Integer.parseInt(Val);
		statement.setInt(1, PoVal);
		statement.execute();
		statement.close();			
	}			
	catch (Exception e)		
	{		
		//System.out.print("//");			
	}
	finally
	{
		try
		{
			if (Con != null)
				Con.close();
		}
		catch (SQLException e)
		{
			e.printStackTrace();
		}
	}
}		
return true;	
}


public String[] getAdminCommandList()

{
return ADMIN_COMMANDS;	
}

}

 

Created for c6

Idk if it work, try to make relogin if dont get points! maby must relog to update char stats

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...