-
Posts
2,921 -
Joined
-
Last visited
-
Days Won
48
Content Type
Profiles
Forums
Events
Everything posted by KyleMassacre
-
if you downloaded the user admin module I think its called, it grabs all the variables for the defined user already
-
that is actually a pretty nice idea
-
you mean like the user variable?
-
here is something i use: $subject = "Your Email Confirmation"; $headers = "From: no-reply@" .$_SERVER['SERVER_NAME']. "\r\n"; $headers .= "X-Mailer: PHP/" . phpversion() . "\r\n"; $headers .= "MIME-Version: 1.0 \r\n"; $headers .= "Content-Type: text/html; charset=UTF-8 \r\n"; $body = "<html><body>"; $body .= "Your email body can go here"; $body .= "</body></html>"; mail(filter_var($emailTo,FILTER_SANITIZE_EMAIL), $subject, $body, $headers); Hope this helps
-
just do something like adding a var for the price and if its set to 0 then it continues on, if its greater than 1 then they purchase it. just an idea
-
I would say buy it but take it with a grain of salt since its not my request but currency is a game ruiner in most aspects it may just help balance out
-
how about a Grand Prix where players can race their cars against all? Example not 1 v. 1 and go for a grand prize of an entrance fee and first 3 runners up get cash money. when I was running a game with mc codes I was always on the prowel for that ;)
-
I must give you credit MTG I think you are really doing this forum a service. I give you mad props
-
error in sql install on clan wars module
KyleMassacre replied to Sjobbe's topic in New Worlds Engine
Try this: DROP TABLE clan_wars; CREATE TABLE IF NOT EXISTS clan_wars ( id int(10) NOT NULL AUTO_INCREMENT, declareER int(10) NOT NULL, declaredON int(10) NOT NULL, reason varchar(255) COLLATE utf8_unicode_ci NOT NULL, time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, surrenderER int(10) NOT NULL, PRIMARY KEY (id) ) ENGINE InnoDB, CHARACTER SET utf8, COLLATE utf8_bin; -
Weekly Lottery [NWE]
KyleMassacre replied to KyleMassacre's topic in Free Modules (Requests or Offers)
Thank you Alain. This was my first mod I created but before submission originally I guess I changed somethings around and ruined the cron and for the life of me couldn't figure out how or why it stopped working. But a special shout out to illusions for helping me on this for the second time to fix the cron. The only difference between this and the one I uploaded originally is that for one, as far as my testing goes it works so I'm looking for a couple extra people to see for themselves, and second, I cleaned up the config keys and made them more appealing on the eyes -
Hello everyone, I have this weekly Lotto mod that I made a while back but pulled it off the market because it was buggy. I made some updates to it and it "seems" to be working fine but I want to see if some of you would mind testing it out for me before I submit it. As the title says its a weekly lottery where players can buy either up to a set amount of tickets that you decide or an unlimited amount of tickets and is configurable with a config key, 0 for infinite, # for the max. So some of the features include which is all done with config keys are The date it runs: Sunday through Saturday % of each ticket that goes into the weekly jackpot The default start jackpot for each week How many tickets a user can buy unless set to 0 then its unlimited The ticket price Also when a user is picked as the winner it sends a chat line (if enabled) of the winner and the amount and also a message letting them know they one. So if you can please try it out and let me know if it works and ill upload it to the market. Thanks a million weekly_lottery.nwp
-
I'm assuming its a time value?
-
Congrats on your first submission. And no problem, it was my pleasure. I hope to see what you come up with next Also what I would do is send some sort of notification to the player that you gave premium days to and let him/her know: if (function_exists("SendMessage")) SendMessage($_POST["user"],"Look What You Got",Translate("You have just been givin %s Premium Days for being so awesome",$_POST["Days"]),1); Something like that otherwise they have no idea what has happened
-
now that I think about it, I believe it doesn't really display right on the mafia theme
-
yeah there is. its in a weird spot ;) view your profile
-
not that I'm aware of. the player avatars should have nothing to do with clans
-
it should be pretty easy to take that little bit that I made and add on there. sure it requires heavy maintenance cause pretty much each time a module come out it may need to be updated cause of new tables that were added in and I'm sure any dev doesn't want to hold responsibility of that script.
-
Thank you Script. Are you or anyone else using it cause I would like to know if it is working properly or if I need to fix anything? Maybe if I get time I can create a page that will tell people about each class before signing up
-
error in sql install on clan wars module
KyleMassacre replied to Sjobbe's topic in New Worlds Engine
That is strange because the column does exists. Do you have a site up? If so you wanna pm me the domain so I can see for myself? -
error in sql install on clan wars module
KyleMassacre replied to Sjobbe's topic in New Worlds Engine
Change that last declareER to surrenderER. Ill look up my sql and fix it and submit the update. Here is the correct sql replace into clans_stats_types(name) values('Honor'); CREATE TABLE IF NOT EXISTS clan_wars ( id int(10) NOT NULL AUTO_INCREMENT, declareER int(10) NOT NULL, declaredON int(10) NOT NULL, reason varchar(255) COLLATE utf8_unicode_ci NOT NULL, time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, surrenderER int(10) NOT NULL, PRIMARY KEY (id) ) ENGINE InnoDB, CHARACTER SET utf8, COLLATE utf8_bin; -
It should be pretty good to go. The only thing really that you can do which I failed to do is maybe secure the get variable a little bit but it shouldnt be too much of a problem since im not really calling and Information from the db with the get and sniko did mention to me to use filter_input () instead of filter_var which in theory would be correct since it is an input but with filter_var, if it comes out false the value entered into the db is defaulted at 0 for that flag or whatever
-
@sniko: In a nutshell, yes. Good lookin out. You as the admin will make up player classes like peterisgb said he had polices and hackers for example. Now lets say you have these player classes and you know in movies police always kick the bad guys ass so they need to be stronger so you can give them like 100 strength boost and hackers are generally smarter (even a broken clock is right twice a day) so you can give them a 100 labor boost when they start. @scorpio: Thanks and let me know how it works out for ya
-
Thank you hedge. I figure this can be a start and people can build off of it like maybe add to the crons different things like faster regens etc. Hmmm, not a bad idea. Ill have to look into that, no promises though :p because when it comes to .js im lost lol
-
Due to the forum software change this got messed up so the fix is located here: http://makewebgames.io/forum/game-engines/mccode-development-support/free-modifications/24597-player-classes?p=377046#post377046
-
For one its easier to remember higher end tlds like .com .net .org etc