[Help] Cultivation Edit and request for full startup script.

Results 1 to 3 of 3
  1. #1
    Apprentice Ragame is offline
    MemberRank
    Nov 2004 Join Date
    MalaysiaLocation
    13Posts

    [Help] Cultivation Edit and request for full startup script.

    Hi, it's me again. I'm wondering that how am I suppose to edit the cultivation level when it doesn't even let me change the value?
    Here's the image of it.



    Need a full startup script for dungeons. Thanks in advance =)


  2. #2
    Member Hauk is offline
    MemberRank
    Jul 2008 Join Date
    87Posts

    Re: [Help] Cultivation Edit and request for full startup script.

    Go to /usr/local/jakarta-tomcat-5.5.9/webapps/iweb/role_testNO/
    inside there should be a file called modrole.jsp
    open that up, delete everything in it and paste this in then save:
    Code:
    <%@page contentType="text/html; charset=GBK"%>
    <%@page import="java.lang.*"%>
    <%@page import="java.util.*"%>
    <%@page import="java.text.*"%>
    <%@page import="org.apache.commons.lang.StringEscapeUtils"%>
    <%@page import="protocol.*"%>
    <%@page import="com.goldhuman.auth.*"%>
    <%@page import="org.apache.commons.logging.Log"%>
    <%@page import="org.apache.commons.logging.LogFactory"%>
    <%
    	String strRoleId = request.getParameter("roleid");
    	String strRoleName = request.getParameter("name");
    
    	LogFactory.getLog("modrole.jsp").info("request for roleid=" + strRoleId + ",name=" + strRoleName + ",operator=" + AuthFilter.getRemoteUser(session) );
    
    	int roleid = -1;
    	if( null != strRoleId && strRoleId.length() > 0 )
    		roleid = Integer.parseInt(request.getParameter("roleid"));
    
    	if( -1 == roleid && null != strRoleName && strRoleName.length() > 0 ){
    		try{ roleid = GameDB.getRoleIdByName( strRoleName ); }
    		catch (Exception e) { out.println(e.toString()); return; }
    		if( -1 == roleid ){
    			//out.println("
    Last edited by Hauk; 08-02-10 at 01:28 AM.

  3. #3
    Apprentice Ragame is offline
    MemberRank
    Nov 2004 Join Date
    MalaysiaLocation
    13Posts

    Re: [Help] Cultivation Edit and request for full startup script.

    Thanks a lot! Really helped me a lot =)



Advertisement