Most visitors online was 12693 , on 1 May 2024
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature currently requires accessing the site using the built-in Safari browser.
Can anyone help me how can I spawn a boss randomly every 3 hours or so, using script?
Someone told me that I should edit aipolicy.data. Do you have working AIEditor for 1.5.5 v159?You'd be better off setting that in NPCgen, with a mob trigger that has a timer for every x hours.
Someone told me that I should edit aipolicy.data. Do you have working AIEditor for 1.5.5 v159?
In all honesty, you're more likely to break everything if you do that. Editing NPCgen does the same stuff and is easier + less chances to mess it up and break your files.
But, no, I do not have a tool for that.
<%@page contentType="text/html; charset=UTF-8" %>
<%@page import="java.lang.*"%>
<%@page import="protocol.*"%>
<%@page import="com.goldhuman.auth.*"%>
<%@page import="org.apache.commons.logging.Log"%>
<%@page import="org.apache.commons.logging.LogFactory"%>
<%@page import="com.goldhuman.util.*" %>
<%
String opt = request.getParameter("trg_opt");
String tag = request.getParameter("trg_tag");
int worldtag = Integer.parseInt(tag);
String id = request.getParameter("trg_id");
String command;
if ( opt.equals("start") )
{
command = "active_npc_generator "+id;
}
else
{
command = "cancel_npc_generator "+id;
}
DeliveryDB.GMControlGame( worldtag, command );
%>
/usr/bin/wget http://127.0.0.1:8080/pwadmin/AA/trig.jsp?trg_opt="start"\&trg_tag="1"\&trg_id="3035" && rm -f trig.jsp?*
here is a method for start/stopping triggers via script...
install and get pwadmin working using the default install location...
create a script called trig.jsp in the directory /usr/local/jakarta/webapps/pwAdmin/AA
copy and paste this code into the trig.jsp script,
Code:<%@page contentType="text/html; charset=UTF-8" %> <%@page import="java.lang.*"%> <%@page import="protocol.*"%> <%@page import="com.goldhuman.auth.*"%> <%@page import="org.apache.commons.logging.Log"%> <%@page import="org.apache.commons.logging.LogFactory"%> <%@page import="com.goldhuman.util.*" %> <% String opt = request.getParameter("trg_opt"); String tag = request.getParameter("trg_tag"); int worldtag = Integer.parseInt(tag); String id = request.getParameter("trg_id"); String command; if ( opt.equals("start") ) { command = "active_npc_generator "+id; } else { command = "cancel_npc_generator "+id; } DeliveryDB.GMControlGame( worldtag, command ); %>
set the trig.jsp script permission to 777...
from command line run this,
Code:/usr/bin/wget http://127.0.0.1:8080/pwadmin/AA/trig.jsp?trg_opt="start"\&trg_tag="1"\&trg_id="3035" && rm -f trig.jsp?*
the idea here is to use pwAdmin's json/api... with a bit of creativity you could put this command in a script and pass arguments to it for smaller command lines...