Crafters & keybinding & commands fix + updated MobBook info

Fixed player receiving DOT even if protected on Orbis Tower <B2>, added
HPbar on Rombot, fixed keybinding issue with clashing skill-item id's,
fixed some mischeckings on NPC crafters, fixed "travelling events"
sending players to random spawnpoints when arriving, fixed hair&face
commands, fixed dispel effect not showing to others, updated drop data
on mobbook.
This commit is contained in:
ronancpl
2017-08-18 19:35:23 -03:00
parent c8e36c10e7
commit ba6b5bc191
122 changed files with 30229 additions and 10188 deletions

View File

@@ -19,39 +19,50 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
var toMap = new Array(211040200, 220050300, 220000000,240030000);
var toMap = new Array(211040200, 220050300, 220000000, 240030000);
var inMap = new Array(211000000, 220000000, 221000000, 240000000);
var cost = new Array(10000, 25000, 25000, 65000);
var location;
var status = 0;
var status;
function start() {
for (var i = 0; i < toMap.length; i ++) {
if (inMap[i] == cm.getPlayer().getMap().getId()) {
location = i;
break;
}
}
cm.sendNext("Hello there! This taxi will take you to dangerous places in Ossyria faster than an arrow! We go from #m" + inMap[location] + "# to #b#m"+toMap[location]+"##k on this Ossyria Continent! It'll cost you #b"+ cost[location] +" meso#k. I know it's a bit expensive, but it's well worth passing all the dangerous areas!");
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1)
if (mode == -1) {
cm.dispose();
else if (mode == 0)
cm.sendNext("Hmm, please think this over. It's not cheapr, but you will NOT be disappointed with our premier service!");
else
status++;
if (status == 1)
cm.sendYesNo("Would you like to pay meso#k to travel to the #b#m"+toMap[location]+"##k?");
else if (status == 2) {
if (cm.getMeso() < cost[location]) {
cm.sendNext("You don't seem to have enough mesos. I am terribly sorry, but I cannot help you unless you pay up. Bring in the mesos by hunting more and come back when you have enough.");
} else {
cm.warp(toMap[location]);
cm.gainMeso(-cost[location]);
} else {
if (mode == 0 && type > 0) {
cm.sendNext("Hmm, please think this over. It's not cheap, but you will NOT be disappointed with our premier service!");
cm.dispose();
return;
}
if (mode == 1)
status++;
else
status--;
if(status == 0) {
for (var i = 0; i < toMap.length; i ++) {
if (inMap[i] == cm.getPlayer().getMap().getId()) {
location = i;
break;
}
}
cm.sendNext("Hello there! This taxi will take you to dangerous places in Ossyria faster than an arrow! We go from #m" + inMap[location] + "# to #b#m"+toMap[location]+"##k on this Ossyria Continent! It'll cost you #b"+ cost[location] +" meso#k. I know it's a bit expensive, but it's well worth passing all the dangerous areas!");
}
else if (status == 1)
cm.sendYesNo("Would you like to pay #b"+ cost[location] +" mesos#k to travel to the #b#m"+toMap[location]+"##k?");
else if (status == 2) {
if (cm.getMeso() < cost[location]) {
cm.sendNext("You don't seem to have enough mesos. I am terribly sorry, but I cannot help you unless you pay up. Bring in the mesos by hunting more and come back when you have enough.");
} else {
cm.warp(toMap[location]);
cm.gainMeso(-cost[location]);
}
cm.dispose();
}
cm.dispose();
}
}