Implemented CWKPQ
Made CWKPQ fully-functional, using the Expedition system (won't work with the lobby system).
This commit is contained in:
21
scripts/reactor/6109013.js
Normal file
21
scripts/reactor/6109013.js
Normal file
@@ -0,0 +1,21 @@
|
||||
var fid = "glpq_s";
|
||||
|
||||
function action() {
|
||||
rm.mapMessage(6, "All stirges have disappeared.");
|
||||
rm.getMap().killAllMonsters(true);
|
||||
eim.setIntProperty(fid, 777);
|
||||
}
|
||||
|
||||
function touch() {
|
||||
var eim = rm.getEventInstance();
|
||||
|
||||
if(eim.getIntProperty(fid) == 5) action();
|
||||
eim.setIntProperty(fid, eim.getIntProperty(fid) + 1);
|
||||
}
|
||||
|
||||
function untouch() {
|
||||
var eim = rm.getEventInstance();
|
||||
|
||||
if(eim.getIntProperty(fid) == 5) action();
|
||||
eim.setIntProperty(fid, eim.getIntProperty(fid) - 1);
|
||||
}
|
||||
Reference in New Issue
Block a user