HelpRanks and Dungeon

Posts 1–4 of 4 · Page 1 of 1
Ranks and Dungeon
1. How do i add ranks for each person? Example, when someone donates i set there rank to 1 and they get /give and stuff. I tried earlier but it wouldnt work (I would set my rank to 1 and try /give and it would say no permission.) Also, rank 2 cant use the command either although its assigned to rank 1. Only rank 3 can.

2. How do i put a xp spawner in the nexus that never goes away? I put the code in dat1 and i cant find it in the editor.
Quote Originally Posted by PserverErk View Post
1. The rank is not assigned as a value, just google how to add ranks on fsod. 2. is the xp spawner added in the Client? (http://www.mpgh.net/forum/showthread.php?t=1114813)
You will also need a behavior for it. I suggest using:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using wServer.realm;
using wServer.logic.behaviors;
using wServer.logic.loot;
using wServer.logic.transitions;

namespace wServer.logic
{
partial class BehaviorDb
{
_ Xpfarm = () => Behav()
.Init("XP Gift Spawner",
new State(
new ConditionalEffect(ConditionEffectIndex.Invincible, true),
new State("idle",
new PlayerWithinTransition(10, "spawn1")
),
new State("spawn1",
new Spawn("XP Gift C", maxChildren: 1000, initialSpawn: 0.050, coolDown: 3500),
new TimedTransition(3600, "check")
),
new State("check",
new EntityNotExistsTransition("XP Gift C", 50, "idle")
)
)
)
;
}
}
Just make a file called BehaviorDb.xpspawner.cs
Posts 1–4 of 4 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?