Jump to content
MakeWebGames

Recommended Posts

Posted

Well Since I wont be selling it here is my healing arua FREE!! and remember this is my first code that I made so Thanks and let me know how it works.

Make a file called heal.php and add

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Then add Heal

to your admin or Owner Panel Thanks for Useing my codes and tell me how it works for you

Posted

Well this is exactly why it was not worth what you asked for it.

The whole thing would be better as a staff file using the sglobals and perhaps using the define method used in 2.0.3 or another securing method.

user_level = 7 // ok you have changed the number but no explanation to those who wish to use the mod.

reduce the whole code by 14 lines by combining your sql query

$q=$db->query('UPDATE users SET brave=maxbrave,will=maxwill,hp=maxhp........ etc

No need for single lines. Points towards you have no real understanding of PHP and just cut and pasted the code from the cron_day.php file

Posted

<< COMMENT REMOVED >>

And appologise to both Robert and Alex...

The script above is true to form and does work correctly

My misadventure was i was testing on myelf and couldnt see any outcomes from it..

When the script itself updates users other than yourself...

So again apologise to both...

Posted

Not tested, may not work, who knows? You tell me.

Less lines of code needed, does the same thing...Enjoy

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Posted

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Add that to index.php then goto it and see it doesn't edit your staff notes (see them in profile if your staff) but it will edit everyone elses, Don't believe i actually had to explain this in this much detail... worrying sometimes.

Posted

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

The above would work on all users but the user

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

The above will work on just the user

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

The above should be how it's done FFS just pay attention to what people are suggesting or we could plainly not even try and help you...

Posted
man all I know is that it works for me and it updates who ever is using it so i'm sorry but your wrong here

Surely if more than one person is telling you somethings wrong, then it more than likely is. Especially when its someone like paul or equinox.

Posted

It does update everyone, but they are right that you don't need 13 queries to do the update. Also there seems to be a query extra for yourself? Unless I am missing something, and that's to do with allowing the member to use it?

Posted

Well like i said its my first mod and i'm still learning so I can see in making the codes smaller but them telling me it wont update the user using it well that grinds my gears and it will only let an Owner use it hence the user level 7

Posted
Well like i said its my first mod and i'm still learning so I can see in making the codes smaller but them telling me it wont update the user using it well that grinds my gears and it will only let an Owner use it hence the user level 7

V2 has no user_level as the owner – unless it's in the new patch – so user_level 7 does not exist. They made a small mistake, not a big deal. At least they are helping you improve in the long run by pointing out a better way to do it... :)

Posted

I have the new patch user_level 2 is still admin, i was only trying to help but when someone doesn't see their own mistakes it REALLY pisses me off you were wrong me and EQ pointed out the mistake if you couldn't understand that then i really suggest you RTFM

Posted

There are 2 sets of queries “ != $userid “ then “ = $userid “ So well they are right in helping him in the way he has done it, the mod itself does work as he has stated... :whistling:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...