-
Content Count
21 -
Joined
-
Last visited
-
Days Won
1
TonyCisseroni last won the day on January 26 2020
TonyCisseroni had the most liked content!
Community Reputation
14 GoodAbout TonyCisseroni
-
Rank
Beginner
Recent Profile Visitors
338 profile views
-
-
Will you release this theme on the forum marketplace?
-
It's definitely worth $20 for everything you put into this.
-
Best voting sites for advertising
TonyCisseroni replied to Andrew Washington's topic in Game Support
I'm interested in this too if anyone has this info. -
solved Best Way to Prevent Repetitive Attacks?
TonyCisseroni replied to TonyCisseroni's topic in Game Support
I'm not limiting them to mugging every 24 hours, I'm limiting them from mugging the same player over and over without restriction. -
I like your hustle. Way to make constant improvements! 😎
-
You want something like this... <table> <tr> <th>User</th> <th>Damage Done</th> </tr> <?php // code to loop rows $hits = count($action); while($x <= $hits) { echo "<tr>"; echo "<td>$action['user']</td>"; echo "<td>$action['damage']</td>"; echo "</tr>"; $x++; } ?> </table>
-
solved Best Way to Prevent Repetitive Attacks?
TonyCisseroni replied to TonyCisseroni's topic in Game Support
Thank you! Now I need to look into the regular timer function for crimes and theft. That way they can't mug everyone in the game all at once 😁 Here is my code to add one day to the current time for a timestamp in the db: $muggedtime = strtotime('+1 day', $time); -
I have added the attack and mug modules in GL2... What is the best way to prevent a user from repeating it over and over again? If I mug someone, I can mug them again and again until they are broke. How can I stop this and add a delay of at least 24 hours before I can mug that player again? I don't want to prevent the user from mugging anyone for 24 hours, just from mugging the same player again in a 24 hour period. Any suggestions? UPDATE: I found a solution and I don't think I can delete my post here. The solution I came up with was to use a timestamp in the db
-
Sorry for the confusion. I meant to format the value in the array as "From: [email protected]" instead of just the email. The mail function needs it that way. Also if you look at the mail function you have to call $headers['From'] or you will get an error because it's looking for a string value not an array. The code I posted is tested and working.
-
if (isset($user["U_id"])) { $url = $_SERVER["HTTP_ORIGIN"] . $_SERVER["SCRIPT_NAME"] . "?page=forgotPassword&action=resetPassword&auth=" . $user["U_password"] . "&id=" . $user["U_id"] . ""; $settings = new settings(); $headers["From"] = "From: "; $headers['From'] .= $settings->loadSetting('from_email'); $body = "To reset your password please follow the link below: \r\n " . $url; mail($user["U_email"], "Password Reset", $body, $headers['From']); } Made a small change so that the array value is formatted correctly. Tested and this solution is working!
-
Just curious. Why are you thinking about selling it before releasing it? And, what is left to finish or complete this project?
-
Need help with a coding question regarding mod development
TonyCisseroni replied to TonyCisseroni's topic in Game Support
Hi Dave, I'm starting to get the hang of it. 👍 I'm able to pass the variables from the controller to the view and they are now appearing. Now I have a bug with everything being repeated twice, it's probably something small I'm overlooking. -
Need help with a coding question regarding mod development
TonyCisseroni replied to TonyCisseroni's topic in Game Support
I see, building the element appears to be the part I was missing. I will look into that a little further. 😊 -
I've started building my own mod for GL2, it's a basic dice game. The game works and shows the dice totals in the error / success message. And I'm storing the results of each dice in session variables, which I also see is working. array(2) { ["userID"]=> string(1) "1" ["DICE_GAME"]=> array(2) { ["diceone"]=> int(2) ["dicetwo"]=> int(4) } } I'm looking at the BlackJack game MOD code as an example and I see they are reading session variables in the TPL file like this {card} {suite} etc. I tried this same method using {diceone} and {dic