Fulfilled the lovely pull request #427 from @dragoso, which added in backing code content to HeavenMS. Implemented structural changes for the Marriage wishlist, in order to receive, maintain and distribute gifts to spouses. Added untradeable check on wishlist gift handler. Adjusted CPQ drops to actually load from DB rathe than hard-coded. Fixed CPQ "random disease to player/party" functionality not applying properly. Adjusted how CPQ maps are generated. It directly loads a new area from WZ (this process should at least removes the player's spawned mobs) rather than reset the cache at every MCPQ creation.
20 lines
276 B
JavaScript
20 lines
276 B
JavaScript
|
|
/*
|
|
[CelticMS] Monster Carnival Reviving Field 1
|
|
*/
|
|
|
|
function enter(pi) {
|
|
var portal = 0;
|
|
switch (pi.getPlayer().getTeam()) {
|
|
case 0:
|
|
portal = 4;
|
|
break;
|
|
case 1:
|
|
portal = 3;
|
|
break;
|
|
}
|
|
pi.warp(980000301, portal);
|
|
pi.playPortalSound();
|
|
return true;
|
|
}
|