Hi, There are times that the list of commands from runcmd: are being skipped. For example:
runcmd: - $Script$%PlayerData%MinigameTokens>4999 - $Script$%PlayerData%MinigameTokens-5000 - /eco give $player 10000 - '/broadcast 10000 eco give' - /record $player received 10000 coins`There are times that the player tokens are not being removed. The command is only checking the tokens but didn't remove it.Is there any option to improve this?
this should work:
runcmd:- '$Script$%if%$PlayerData%MinigameTokens%>=5000'- '$Script$%PlayerData%MinigameTokens-5000'- '/eco give $player 10000'- '/bc 10000 eco give'- '/record $player received 10000 coins'
- '$test$&cYou don't have enough coins.'
if you put %if% everything under it will be executed. Cmd stops executing lines if you put another %elseif% or %else% under. No idea why it skips the second line but this should work, I do it like this always.
Thank you. It's not really always. But there are times that the second line is being skipped. I can't confirm if the third and fourth are being skipped as well. Let me try this and provide you the details after.
Hi, just an update. It seems here that this is not about skipping a line. But instead, on the part where '$Script$%PlayerData%MinigameTokens-5000' is, if you purchase the item twice simultaneously, the second one won't deduct anymore. Making it free item for the second item.
I think the best way to fix this is to wait for the first process to finish and then proceed to the next process. I noticed as well that if I spam the command which deducts the Playerdata points, there's a scenario that it won't deduct.
Just an update. Even tho we wait for a minute to pass for the next deduction to happen, sometimes, the `- $Script$%PlayerData%MinigameTokens-5000` or the `/mycmd-playerdata add` skips. What I meant was if I type that command, there are some scenarios that the playerdata is not being updated. By the way, we are currently using mysql.
To post a comment, please
or register a new account.