1
Help/Support / Re: Trouble whispering to @target@ in Command Message
« on: May 23, 2016, 09:35:44 AM »
Try putting @target@ before the /w. From what I've seen it doesn't work properly if you put a @target@ after the whisper.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
It is possible, just use @calc@ = Use operators to calculate mathematical equations. @calc@[op|num1|num2] , Available operations (+,-,*,/). E.g. @calc@[+|5|4].
What would this actually look like in the command?
@if@[@target@||+||!adddeath||@if@[@target@||-||!subdeath]]
@savefile@[Death\deathcount.txt,@calc@[+|@readfile@[Death\deathcount.txt]|1]]
@savefile@[Death\deathcount.txt,@calc@[-|@readfile@[Death\deathcount.txt]|1]]
You've died @readfile@[Death\deathcount.txt] times.
Looks like there is certain text or message it can't send to Discord channel. Probably something with in the message of the command.
There's no fight steps, like you do !fightencounter and it just states you have slain or been slain but you can keep spamming that command even at low HP.
@user@ has been slain by a @readfile@[RPG\Enemies\log\@user@CurrentMonster.txt], and lost @readfile@[RPG\Enemies\log\@user@ExpPot.txt]Exp... @editpoints@[@user@|@readfile@[RPG\Enemies\log\@user@PointPot.txt]] @savefile@[RPG\Users\@user@Exp.txt,@calc@[-|@readfile@[RPG\Users\@user@Exp.txt]|@readfile@[RPG\Enemies\log\@user@ExpPot.txt] @savefile@[RPG\Users\@user@CurrentHealth.txt,@readfile@[RPG\Users\@user@MaxHealth.txt]]]]
@if@[@readfile@[Cooldown/@user@.txt]||||!fightpass||!fightmath]
I changed your original fight command to this, run elevated.@if@[@readfile@[RPG\Users\@user@.txt]||1||!fightencounter||@user@, you must create a character first. Use the !rpg command.]
This is/was your original !fight command. The reason I did this was because I couldn't figure out how to get it to run !fightencounter after successfully passing the cooldown. So to make the code shorter, I just sepearted it into two parts. It'll make more sense later.@if@[>=||@calc@[-|@unixtime@|@readfile@[Cooldown/@user@.txt]]||@readfile@[Cooldown/limit.txt]||!fightpass||!fightfail @calc@[-|@unixtime@|@readfile@[Cooldown/@user@.txt]]]
@savefile@[Cooldown/@user@.txt,@unixtime@]!fight1
So here's where I couldn't get it to trigger !fightencounter, and check to see if they've chose a class or not. So to make it easier I just make it into a different command.I'm sorry @user@ but you can only fight every @readfile@[Cooldown/limit.txt] seconds. Prepare yourself and return in @calc@[-|@readfile@[Cooldown/limit.txt]|@target@] seconds.