gurpreet Posted December 31, 2008 Posted December 31, 2008 So I'm trying to learn coding again, here's something I came up with. Open to comments and stuff, please don't bash me too hard. This is so you can't attack people who are 15 levels or more below you. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. And for 15 levels or above. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
AlabamaHit Posted December 31, 2008 Posted December 31, 2008 Re: Small mod (getting back into coding) Thanks for sharing. I'm sure some will find this usefull but next time try to use the "code" tag. It makes it easier to read the code. Also. My opinion on mods like this...Not small...on blocking certain levels...I don't like them cause what if they are at war? Then they cant attack...Just don't seem far. Now if you add in there a if they are in war its ok...That would be cool. Quote
gurpreet Posted December 31, 2008 Author Posted December 31, 2008 Re: Small mod (getting back into coding) Thanks for sharing. I'm sure some will find this usefull but next time try to use the "code" tag. It makes it easier to read the code. Also. My opinion on mods like this...Not small...on blocking certain levels...I don't like them cause what if they are at war? Then they cant attack...Just don't seem far. Now if you add in there a if they are in war its ok...That would be cool. Not that experienced yet :) I'll give it a try though. Reading up on a few sites atm. Quote
MyGunWars Posted December 31, 2008 Posted December 31, 2008 Re: Small mod (getting back into coding) +1 I may use this but idk yet. Nice idea thow. :-D Quote
Zero-Affect Posted December 31, 2008 Posted December 31, 2008 Re: Small mod (getting back into coding) wouldn't it be easier to add a max exp gain and allow them to attack? You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. or something like that... Quote
Eternal Posted December 31, 2008 Posted December 31, 2008 Re: Small mod (getting back into coding) You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Neat as a slice of pie and You can add on to the errors to keep your coding clean :) Quote
radio_active Posted December 31, 2008 Posted December 31, 2008 Re: Small mod (getting back into coding) So I'm trying to learn coding again, here's something I came up with. I think its more, you trying to learn to code, not again! lol But thats where we all started so keep it up and you might start producing some quality work! Read code that has been posted by the "better" coders such as well, nyna, floydian, luke etc etc and try and familiarize with there style and work on it :wink: Quote
Lithium Posted December 31, 2008 Posted December 31, 2008 Re: Small mod (getting back into coding) So I'm trying to learn coding again, here's something I came up with. I think its more, you trying to learn to code, not again! lol But thats where we all started so keep it up and you might start producing some quality work! Read code that has been posted by the "better" coders such as well, nyna, floydian, luke etc etc and try and familiarize with there style and work on it :wink: that could be read like... "So I'm trying to learn coding, again..." meaning he started to learn and quit ;) but oh well, semantics is not my strong, atleast not in english :D Quote
Eternal Posted December 31, 2008 Posted December 31, 2008 Re: Small mod (getting back into coding) So I'm trying to learn coding again, here's something I came up with. I think its more, you trying to learn to code, not again! lol But thats where we all started so keep it up and you might start producing some quality work! Read code that has been posted by the "better" coders such as well, nyna, floydian, luke etc etc and try and familiarize with there style and work on it :wink: LAWL Hell i am only 4 months old in coding But i would say to people don't try to familiarize with others codes you see on a forum.. yes take some formula's and get the know how on what they do that is Ment to be correct. But i would actually take the time to read up on some of the ready avail sources That put forward on What each key feature Does. Then Write up Your own scripts Starting at ground zero and learn what the errors do and find ways using the Sources avail to Correct them... Making mods on here is nothing compared to the real Coding world.. Some of the scripts i have come across i have gone wow and Didn't think i could ever learn it.. but trial and error and something is formed.... Quote
gurpreet Posted December 31, 2008 Author Posted December 31, 2008 Re: Small mod (getting back into coding) So I'm trying to learn coding again, here's something I came up with. I think its more, you trying to learn to code, not again! lol But thats where we all started so keep it up and you might start producing some quality work! Read code that has been posted by the "better" coders such as well, nyna, floydian, luke etc etc and try and familiarize with there style and work on it :wink: that could be read like... "So I'm trying to learn coding, again..." meaning he started to learn and quit ;) but oh well, semantics is not my strong, atleast not in english :D No I mean learn again. I have short term memory loss and well...I just forgot how to code stuff and then I didn't try code until now. Thanks to everyone who is encouraging me, I'll TRY and produce some stuff. Need some ideas though...simple ones, not hard. Quote
radio_active Posted December 31, 2008 Posted December 31, 2008 Re: [mccode] Small mod (getting back into coding) Well its easy to forget, any language whether it be a programming language or a real speaking language such as english, german etc. However to forget entirely how to code means you wouldn't have looked at any scripting for over 2 years, and then again you wouldn't have been an amazing scripter 2 years ago if you forget everything, lol. How old are you? Quote
gurpreet Posted December 31, 2008 Author Posted December 31, 2008 Re: [mccode] Small mod (getting back into coding) 14, and I wasn't an AMAZING coder but I could make a few small mods. Quote
POG1 Posted December 31, 2008 Posted December 31, 2008 Re: Small mod (getting back into coding) You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Neat as a slice of pie and You can add on to the errors to keep your coding clean :) your using isset() but you have set the variable just above, you could probably use FALSE as the else. Quote
Zero-Affect Posted December 31, 2008 Posted December 31, 2008 Re: [mccode] Small mod (getting back into coding) wow alot of response.. Well its easy to forget, any language whether it be a programming language or a real speaking language such as english, german etc. However to forget entirely how to code means you wouldn't have looked at any scripting for over 2 years, and then again you wouldn't have been an amazing scripter 2 years ago if you forget everything, lol. How old are you? i forgot vb lol only been about a year... Quote
POG1 Posted December 31, 2008 Posted December 31, 2008 Re: [mccode] Small mod (getting back into coding) wow alot of response.. Well its easy to forget, any language whether it be a programming language or a real speaking language such as english, german etc. However to forget entirely how to code means you wouldn't have looked at any scripting for over 2 years, and then again you wouldn't have been an amazing scripter 2 years ago if you forget everything, lol. How old are you? i forgot vb lol only been about a year... its ok VB sucks anyway Quote
radio_active Posted December 31, 2008 Posted December 31, 2008 Re: [mccode] Small mod (getting back into coding) wow alot of response.. Well its easy to forget, any language whether it be a programming language or a real speaking language such as english, german etc. However to forget entirely how to code means you wouldn't have looked at any scripting for over 2 years, and then again you wouldn't have been an amazing scripter 2 years ago if you forget everything, lol. How old are you? i forgot vb lol only been about a year... Good for you!!! Quote
Eternal Posted December 31, 2008 Posted December 31, 2008 Re: Small mod (getting back into coding) You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Neat as a slice of pie and You can add on to the errors to keep your coding clean :) your using isset() but you have set the variable just above, you could probably use FALSE as the else. lol Do you know how to code at all ??? i have 6 error sections defining them.. if i changed that out and not put isset then it wouldn't do a thing when the error is there it would post the error and attack..? Quote
POG1 Posted January 1, 2009 Posted January 1, 2009 Re: [mccode] Small mod (getting back into coding) if you look at the statement though... $error = (blah... that is declaring and assigning a value to the error variable so a few lines down when it says isset it will have all ready been set. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.