Adding Custom Dungeons (Spawning Arena)
Anyone know how to add "spawning arena" to pserver?
Reply
skype:aistis.augustinas
Reply
skype:aistis.augustinas
{"data":"eNq9mImSgyAMQAVZRa22//+1W7UuR06zWjLTWgfyTAgxadNswxVyZmhXOiDr8IW01W/PrNQQVvGEhOz6mPvzFo6y3++2efncUnOP8hJhlY6klPNqOyJpzwAYaT3PoOwYP98TY8dZBu5/3FtahkMIj0pfRJmYD3T7kWuZVXZw8YvHn2M9VMeufEZKzc4g/sQp5J/OsadVyiZaH2jygY5gYQwCRcNYCuFjw8ZYgFgY8ZMvJsBYCIGM0WhH0knNOeergK4/CM9MPJKfg3o/ImAcV8/m9Zb90zP70ZKMIMSVlhH+EbuSr6YLzofE0O15v+3FwDAOHRgjZG8BbLQqO5J+b7QjiPmKegpLLglkTuQZ/V/kc4xZyLu4nVflxFofvDdextDVrFD/d96D33if31+X7LUV9XTzJfUVVr9BLz+Q+KEpdC2q7wtwSqpJKTswCiU9SZAZWFWdMtnE9mpSb0AzRsSKaGJ0Kjvovag7wjv6Wlv3jOex1tyf3/4/wy+mLw/z","dict":[{},{"ground":"Light Cobblestone Speedy"},{"ground":"Snow"},{"objs":[{"id":"ic Loot Balloon"}],"ground":"Snow"},{"objs":[{"id":"Tree Leafless"}],"ground":"Snow"},{"regions":[{"id":"Spawn"}],"ground":"Light Cobblestone Speedy"},{"objs":[{"id":"Nexus Portal"}],"ground":"Light Cobblestone Speedy"},{"objs":[{"id":"Winter Tree Big"}],"ground":"Snow"},{"objs":[{"id":"Tree Stump"}],"ground":"Snow"},{"objs":[{"id":"Winter Snowman Small"}],"ground":"Snow"},{"objs":[{"id":"Winter Tree Small"}],"ground":"Snow"},{"objs":[{"id":"Tree Dead"}],"ground":"Snow"},{"objs":[{"id":"Winter Snowman Big"}],"ground":"Snow"},{"objs":[{"id":"Winter Drift"}],"ground":"Snow"},{"ground":"Roman Rug"},{"ground":"Retro Dirt"},{"ground":"shtrs Maze Floor 2"}],"width":50,"height":43}
#region
using System.Threading;
using System.Threading.Tasks;
using DungeonGenerator;
using wServer.networking;
#endregion
namespace wServer.realm.worlds
{
public class Arena2 : World
{
public Arena2()
{
Name = "Arena2";
ClientWorldName = "{Arena2}";
Dungeon = false;
Background = 0;
AllowTeleport = true;
}
public override bool NeedsPortalKey => true;
protected override void Init()
{
LoadMap("wServer.realm.worlds.maps.arena.jm", MapType.Json); //change .maps.x to your map's name (the one you pasted from step 1), if it's a .wmap change .jm to .wmap and MapType to MapType.Wmap
}
public override World GetInstance(Client psr) => Manager.AddWorld(new Arena2());
}
}
<Object type="0xd69" id="Arena2 Portal">
<Class>Portal</Class>
<IntergamePortal/>
<DungeonName>Arena2</DungeonName>
<Texture>
<File>lofiEnvironment2</File>
<Index>0x97</Index>
</Texture>
</Object>
<Object type="0x2a1b" id="Arena Key">
<Class>Equipment</Class>
<Item/>
<Texture>
<File>lofiObj3</File>
<Index>0xf4</Index>
</Texture>
<SlotType>10</SlotType>
<Description>{equip.A_key_which_opens_an_entrance_to_an_Undead_Lair.}</Description>
<Sound>use_key</Sound>
<Consumable/>
<Soulbound/>
<Activate id="Arena2 Portal">Create</Activate>
<feedPower>200</feedPower>
<DisplayId>{Arena Key}</DisplayId>
</Object>