Code: Show/Hide local void clear_zone(Player *p, void *v) { printf("\nClear\n"); struct PersistentZoneData *d; d = PPDATA(p, pdkey); // Stats d->exp = 0; d->lvl = 0; d->neg = 0; d->race = 0; // Money d->money = 0; // Inventory d->burst = 0; } |
Code: Show/Hide local Iarenaplace myint =
{ INTERFACE_HEAD_INIT(I_ARENAPLACE, "ap-multipub") Place }; |
Code: Show/Hide if (action == MM_LOAD)
{ ... mm->RegInterface(&myint, arena); |
Code: Show/Hide else if (action == MM_UNLOAD)
{ if (mm->UnregInterface(&myint, arena)) return MM_FAIL; ... |