Reading approximated unitPrice value from WZ in such a fashion that the new double value can be represented in float point without losing too much data. Fixed rechargeables with quantity 0 set on the playershop/hiredmerchant being handed back to the owner with quantity 1. Solved many concurrecy issues related with items on the field and playershop/hiredmerchant. Fixed anomalies with waiting time before picking up other players items, now acting GMS-like. Added/patched copyleft claims in files that are from my own authorship. Please see backtrack_licenses/readme.txt for more info about this move. Fixed issues with item retrieval when using bundles on playershop/hiredmerchant. Fixed some exploits with playershop/hiredmerchant. Fixed a glitch with npcshop when trying to recharge/buy items without having enough mesos. Added portal sound effect for some scripted portals that still lacked it. Fixed some exploits with NPCs Fredrick and Duey. Fixed Body Pressure not displaying damage to other players. Added a flag that permits town scrolls to act like a "banish" for players. This renders the antibanish scroll effect available.
29 lines
673 B
JavaScript
29 lines
673 B
JavaScript
function enter(pi) {
|
|
pi.playPortalSound();
|
|
|
|
switch (pi.getPlayer().getMapId()) {
|
|
case 130000000:
|
|
pi.warp(130000100, 5); //or 130000101
|
|
break;
|
|
case 130000200:
|
|
pi.warp(130000100, 4); //or 130000101
|
|
break;
|
|
case 140010100:
|
|
pi.warp(140010110, 1); //or 140010111
|
|
break;
|
|
case 120000101:
|
|
pi.warp(120000105, 1);
|
|
break;
|
|
case 103000003:
|
|
pi.warp(103000008, 1); //or 103000009
|
|
break;
|
|
case 100000201:
|
|
pi.warp(100000204, 1); //or 100000205
|
|
break;
|
|
default:
|
|
pi.warp(pi.getMapId() + 1, 0); //or + 2
|
|
break;
|
|
}
|
|
|
|
return true;
|
|
} |