Uridium Posted October 10, 2008 Share Posted October 10, 2008 This mod will allow you to upload an image for the sole use that it will be displayed when someone clicks on Attack. You will see your Image + that of your Opponents very small has no real purpose but it brings fun to the game. call this file attackimageuploader.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Now open up Preferences.php and add this line somewhere on the print preferences You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Now open up attack.php Scroll down to the bottom where the print"</table>"; and after it over write with this one You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Create a Folder on your FTP called attpics then add this to your MSQL You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. I'll post a screenie its not brilliant but i hate tables but the pics show up at least.. Quote Link to comment Share on other sites More sharing options...
88nismo Posted October 10, 2008 Share Posted October 10, 2008 Re: [MOD] V2 Add images when you attack nice illusions!! looks great on my site :-D Quote Link to comment Share on other sites More sharing options...
radio_active Posted October 10, 2008 Share Posted October 10, 2008 Re: [MOD] V2 Add images when you attack This is a very nice piece of work which im going to use for the time being when i have not many members signed up to my game... But suppose you have 1000 people who all upload an image, your DB is gonna fill up unless you have a large plan. Would be better to use a URL instead of uploading, thats how i see it but i like it... :-) Quote Link to comment Share on other sites More sharing options...
zbirc3 Posted October 11, 2008 Share Posted October 11, 2008 Re: [mccode v2] Add images when you attack My host: Disk Space: 750000 MB Monthly Bandwidth: 7500000 MB I'm definitely adding this. :D THANKS! :D Quote Link to comment Share on other sites More sharing options...
MrGi Posted October 11, 2008 Share Posted October 11, 2008 Re: [mccode v2] Add images when you attack Very Nice Illusions. And Note to all, It does work, Iv seen him test it, and iv tested it. Its a great mod to keep users into the game. Quote Link to comment Share on other sites More sharing options...
Karlos Posted October 11, 2008 Share Posted October 11, 2008 Re: [mccode v2] Add images when you attack or even better use their display pic :| Quote Link to comment Share on other sites More sharing options...
Uridium Posted October 11, 2008 Author Share Posted October 11, 2008 Re: [mccode v2] Add images when you attack if you would prefer to use the display_pic rather than the attpics then use the script below for the attack.php you will need the display pic uploader already installed for this to work however,,, You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
Karlos Posted October 11, 2008 Share Posted October 11, 2008 Re: [mccode v2] Add images when you attack if you would prefer to use the display_pic rather than the attpics then use the script below for the attack.php you will need the display pic uploader already installed for this to work however,,, You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Much Better :-P Quote Link to comment Share on other sites More sharing options...
Uridium Posted October 11, 2008 Author Share Posted October 11, 2008 Re: [mccode v2] Add images when you attack Just a small update for those using the attpics mod seeing as NPC's cant upload thier own image and it was driving me mental to find a cure.. Decepti0n kindly posted the fix for it Upload a default.jpg to your attpics folder this will be used by the NPCS goto your PHPMYADMIN and run this SQL update users set attpics = 'default.jpg' where user_level = 0 And if your just nistalling this it would be wise also to give members a pic so upload a pic call it nomemb.jpg or what ever.. and run this SQL update users set attpics = 'default.jpg' where user_level = 1 You can do the same for Staff if they dont have an image to share. Quote Link to comment Share on other sites More sharing options...
Paddy Posted October 11, 2008 Share Posted October 11, 2008 Re: [mccode v2] Add images when you attack if you would prefer to use the display_pic rather than the attpics then use the script below for the attack.php you will need the display pic uploader already installed for this to work however,,, You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. This didnt work for me i thought i would post the one that worked for me You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. All i did was removed the displaypic/ from You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. And it worked THanks guys Quote Link to comment Share on other sites More sharing options...
Uridium Posted October 11, 2008 Author Share Posted October 11, 2008 Re: [mccode v2] Add images when you attack Just to show what you can Achieve from adding the pics and a bit of sparkle.. Quote Link to comment Share on other sites More sharing options...
Dave Posted October 11, 2008 Share Posted October 11, 2008 Re: [mccode v2] Add images when you attack My host: Disk Space: 750000 MB Monthly Bandwidth: 7500000 MB I'm definitely adding this. :D THANKS! :D Put 750GB on your host. They will not be happy xD Quote Link to comment Share on other sites More sharing options...
tittlemouse Posted October 11, 2008 Share Posted October 11, 2008 Re: [mccode v2] Add images when you attack cool can you put the code on here illusions Quote Link to comment Share on other sites More sharing options...
Uridium Posted October 12, 2008 Author Share Posted October 12, 2008 Re: [mccode v2] Add images when you attack Littlemouse the code has been Posted if your referring to my Image above thats something you wll have to accomlish yourself im just merely showing you what can be donew ith it. Quote Link to comment Share on other sites More sharing options...
Uridium Posted October 14, 2008 Author Share Posted October 14, 2008 Re: [mccode v2] Add images when you attack Small update I noticed when Attacking that the wrong users health bar was depleating so heres the fix... find print "</table">; add below You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Again if your using your Profile images and not the attck images then alter accordingly . Quote Link to comment Share on other sites More sharing options...
Zero-Affect Posted October 14, 2008 Share Posted October 14, 2008 Re: [mccode v2] Add images when you attack Disk Space Usage 931.89/? MB Monthly Bandwidth Transfer 5147.15/1024000 MB i like your bandwidth lol nice mod illusion i've not worked with this type of coding so i may use this for learning some of the functions Quote Link to comment Share on other sites More sharing options...
Ishraq Posted October 14, 2008 Share Posted October 14, 2008 Re: [mccode v2] Add images when you attack this will be wicked but its hard to add in my preferences because it is a differrent design too the normal preferences. Quote Link to comment Share on other sites More sharing options...
HITMAN 17 Posted November 4, 2008 Share Posted November 4, 2008 Re: [mccode v2] Add images when you attack nice mod but it dosnt seem to work the uploader dont believe me got to www.criminal-soldier.com/attackimageuploader.php upload an image and it will tell you it did but it hasnt and then disapears Quote Link to comment Share on other sites More sharing options...
Uridium Posted November 4, 2008 Author Share Posted November 4, 2008 Re: [mccode v2] Add images when you attack try this one... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
HITMAN 17 Posted November 4, 2008 Share Posted November 4, 2008 Re: [mccode v2] Add images when you attack still no its not showing the pic and dosnt add it to cpanel files Quote Link to comment Share on other sites More sharing options...
Uridium Posted November 4, 2008 Author Share Posted November 4, 2008 Re: [mccode v2] Add images when you attack set me up a dummy account on your website matey and make me admin PM me the username and pass and i'll have a look for you Quote Link to comment Share on other sites More sharing options...
Uridium Posted November 4, 2008 Author Share Posted November 4, 2008 Re: [mccode v2] Add images when you attack run this SQL ALTER TABLE users ADD `attpics` VARCHAR(255) NOT NULL default ='default.jpg'; Quote Link to comment Share on other sites More sharing options...
HITMAN 17 Posted November 4, 2008 Share Posted November 4, 2008 Re: [mccode v2] Add images when you attack #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '='default.jpg'' at line 1 Quote Link to comment Share on other sites More sharing options...
Uridium Posted November 4, 2008 Author Share Posted November 4, 2008 Re: [mccode v2] Add images when you attack ok maybe my SQL is wrong lol i placed mine in manually click on your USERS table and add an extra field call it attpics varchar 255 not null and leave default blank Quote Link to comment Share on other sites More sharing options...
HITMAN 17 Posted November 4, 2008 Share Posted November 4, 2008 Re: [mccode v2] Add images when you attack ok how do i add it manually as i never done it before Quote Link to comment Share on other sites More sharing options...
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.